rust/compiler/rustc_resolve/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
..
diagnostics Implement the unused_macro_rules lint 2022-05-05 19:13:00 +02:00
late Update file description. 2022-07-25 19:19:23 +02:00
access_levels.rs Make ResolverAstLowering a struct. 2022-06-14 22:44:27 +02:00
build_reduced_graph.rs Auto merge of #98106 - cjgillot:split-definitions, r=michaelwoerister 2022-06-17 10:00:11 +00:00
check_unused.rs Make ResolverAstLowering a struct. 2022-06-14 22:44:27 +02:00
def_collector.rs Parse closure binders 2022-07-12 16:25:16 +04:00
diagnostics.rs Rollup merge of #99528 - matthiaskrgr:2022_07_perf, r=estebank 2022-07-21 18:42:07 +02:00
ident.rs Provide a segment res in more cases 2022-06-20 21:27:42 -07:00
imports.rs Avoid unnecessary work in finalize_resolutions_in. 2022-06-29 09:20:32 +10:00
late.rs Auto merge of #97313 - cjgillot:ast-lifetimes-anon, r=petrochenkov 2022-07-25 20:02:55 +00:00
lib.rs Report elision failures on the AST. 2022-07-25 19:19:23 +02:00
macros.rs avoid embedding StabilityLevel::Unstable reason string into metadata multiple times 2022-07-21 22:53:02 +03:00