rust/compiler/rustc_ast_lowering/src
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
..
asm.rs lower impl const to bind to host effect param 2023-08-06 13:34:53 +00:00
block.rs rustc_ast_lowering: remove ref patterns 2022-11-22 18:49:29 +00:00
errors.rs feat: riscv-interrupt-{m,s} calling conventions 2023-08-08 18:09:56 -07:00
expr.rs Move let expression checking to parsing 2023-09-11 15:51:18 +00:00
format.rs Limit lifetime of format_args!() with inlined args. 2023-05-09 16:08:40 +02:00
index.rs Don't hold the definitions' lock across index_hir 2023-09-02 08:13:07 +02:00
item.rs feat: riscv-interrupt-{m,s} calling conventions 2023-08-08 18:09:56 -07:00
lib.rs Enable incremental-relative-spans by default. 2023-09-07 20:21:13 +00:00
lifetime_collector.rs Record binder for bare trait object in LifetimeCollectVisitor 2023-08-11 03:15:41 +00:00
pat.rs lower impl const to bind to host effect param 2023-08-06 13:34:53 +00:00
path.rs lower impl const to bind to host effect param 2023-08-06 13:34:53 +00:00