1
Fork 0
rust/compiler/rustc_ast/src
Matthew Jasper 333388fd3c Move let expression checking to parsing
There was an incomplete version of the check in parsing and a second
version in AST validation. This meant that some, but not all, invalid
uses were allowed inside macros/disabled cfgs. It also means that later
passes have a hard time knowing when the let expression is in a valid
location, sometimes causing ICEs.

- Add a field to ExprKind::Let in AST/HIR to mark whether it's in a
  valid location.
- Suppress later errors and MIR construction for invalid let
  expressions.
2023-09-11 15:51:18 +00:00
..
attr Remove MacDelimiter. 2023-08-03 09:03:30 +10:00
expand Generate better function argument names in global_allocator expansion 2023-08-06 07:36:05 -07:00
util Move let expression checking to parsing 2023-09-11 15:51:18 +00:00
ast.rs Move let expression checking to parsing 2023-09-11 15:51:18 +00:00
ast_traits.rs Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
entry.rs Fixup missing renames from #[main] to #[rustc_main] 2022-06-22 18:24:09 +02:00
format.rs get auto traits for parallel rustc 2023-08-02 16:21:45 +08:00
lib.rs make rustc compilable 2023-04-16 07:25:13 +00:00
mut_visit.rs Move let expression checking to parsing 2023-09-11 15:51:18 +00:00
node_id.rs Various minor Idx-related tweaks 2023-04-16 02:42:50 -07:00
ptr.rs make rustc compilable 2023-04-16 07:25:13 +00:00
token.rs Parse unnamed fields and anonymous structs or unions 2023-08-24 11:17:54 +08:00
tokenstream.rs improve AttrTokenStream 2023-09-04 20:07:28 +08:00
visit.rs Move let expression checking to parsing 2023-09-11 15:51:18 +00:00