rust/compiler/rustc_ast_lowering/src
bors 6dbae3ad19 Auto merge of #97313 - cjgillot:ast-lifetimes-anon, r=petrochenkov
Resolve function lifetime elision on the AST

~Based on https://github.com/rust-lang/rust/pull/97720~

Lifetime elision for functions is purely syntactic in nature, so can be resolved on the AST.
This PR replicates the elision logic and diagnostics on the AST, and replaces HIR-based resolution by a `delay_span_bug`.

This refactor allows for more consistent diagnostics, which don't have to guess the original code from HIR.

r? `@petrochenkov`
2022-07-25 20:02:55 +00:00
..
asm.rs Remove unused StableMap and StableSet types from rustc_data_structures 2022-07-20 13:11:39 +02:00
block.rs extract method to read scrutinee conditionally 2022-07-11 23:20:38 +02:00
expr.rs Add an indirection for closures in hir::ExprKind 2022-07-12 21:00:13 +04:00
index.rs move else block into the Local struct 2022-07-11 23:20:37 +02:00
item.rs Auto merge of #95573 - cjgillot:lower-query, r=michaelwoerister 2022-07-07 18:14:44 +00:00
lib.rs Report elision failures on the AST. 2022-07-25 19:19:23 +02:00
pat.rs Make ResolverAstLowering a struct. 2022-06-14 22:44:27 +02:00
path.rs Remove sess field from LoweringContext. 2022-07-06 23:15:57 +02:00