rust/compiler/rustc_parse/src/parser
bors dac91a82e1 Auto merge of #115677 - matthewjasper:let-expr-recovery, r=b-naber
Improve invalid let expression handling

- Move all of the checks for valid let expression positions to parsing.
- Add a field to ExprKind::Let in AST/HIR to mark whether it's in a valid location.
- Suppress some later errors and MIR construction for invalid let expressions.
- Fix a (drop) scope issue that was also responsible for #104172.

Fixes #104172
Fixes #104868
2023-09-14 19:56:55 +00:00
..
attr.rs Avoid too many expected symbols and reduce Nones 2023-08-03 08:56:31 +00:00
attr_wrapper.rs Adjust to_attr_token_stream. 2023-09-06 17:12:07 +10:00
diagnostics.rs inlined kind 2023-08-08 10:59:15 +08:00
expr.rs Address review comments 2023-09-13 15:00:31 +00:00
generics.rs fix couple of clippy findings: 2023-07-23 10:50:14 +02:00
item.rs Add explanatory note to 'expected item' error 2023-09-06 09:05:07 +05:30
mod.rs Move let expression checking to parsing 2023-09-11 15:51:18 +00:00
nonterminal.rs Rename NtOrTt as ParseNtResult. 2023-08-18 16:50:41 +10:00
pat.rs Only suggest turbofish in patterns if we may recover 2023-09-12 16:38:59 +02:00
path.rs Avoid too many expected symbols and reduce Nones 2023-08-03 08:56:31 +00:00
stmt.rs Avoid too many expected symbols and reduce Nones 2023-08-03 08:56:31 +00:00
ty.rs suggest removing impl in generic trait bound position 2023-08-29 20:27:38 +02:00