rust/compiler/rustc_hir/src
Matthias Krüger 69ebe39cea
Rollup merge of #141876 - compiler-errors:missing-let-ty, r=SparrowLii
Don't declare variables in `ExprKind::Let` in invalid positions

Handle `let` expressions in invalid positions specially during resolve in order to avoid making destructuring-assignment expressions that reference (invalid) variables that have not yet been delcared yet.

See further explanation in test and comment in the source.

Fixes rust-lang/rust#141844
2025-06-03 07:03:44 +02:00
..
hir Remove Ident::empty. 2025-05-09 13:57:49 +10:00
arena.rs Overhaul UsePath. 2025-06-03 08:23:21 +10:00
def.rs Overhaul UsePath. 2025-06-03 08:23:21 +10:00
def_path_hash_map.rs Move hashes from rustc_data_structure to rustc_hashes so they can be shared with rust-analyzer 2025-02-16 16:18:30 -05:00
definitions.rs Add DefPathData::OpaqueLifetime to avoid conflicts for remapped opaque lifetimes 2025-05-07 22:17:29 +02:00
diagnostic_items.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
hir.rs Rollup merge of #141876 - compiler-errors:missing-let-ty, r=SparrowLii 2025-06-03 07:03:44 +02:00
hir_id.rs impl !PartialOrd for HirId 2025-04-03 09:22:21 +00:00
intravisit.rs Overhaul UsePath. 2025-06-03 08:23:21 +10:00
lang_items.rs AsyncDrop implementation using shim codegen of async_drop_in_place::{closure}, scoped async drop added. 2025-04-28 16:23:13 +07:00
lib.rs update cfg(bootstrap) 2025-05-12 15:33:37 +02:00
pat_util.rs Eliminate PatKind::Path 2025-01-29 15:45:13 +00:00
stable_hash_impls.rs Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
target.rs Implment #[cfg] and #[cfg_attr] in where clauses 2025-03-01 22:02:46 +08:00
tests.rs Allow drivers to supply a list of extra symbols to intern 2025-04-10 13:39:23 +00:00
weak_lang_items.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00