rust/compiler/rustc_ast_passes/src
Matthias Krüger 574a8ba6af
Rollup merge of #132214 - fmease:mv-impl-trait-val-paths, r=compiler-errors
Cleanup: Move an impl-Trait check from AST validation to AST lowering

Namely the one that rejects `impl Trait` in qself types and non-final path segments.
There's no good reason to perform this during AST validation.
We have better infrastructure in place in the AST lowerer (`ImplTraitContext`).
This shaves off a lot of code.
We now lower `impl Trait` in bad positions to `{type error}` which allows us to
remove a special case from HIR ty lowering.

Coincidentally fixes #126725. Well, it only *masks* it by passing `{type error}` to HIR analysis instead of a "bad" opaque. I was able to find a new reproducer for it. See the issue.
2024-10-27 19:49:07 +01:00
..
ast_validation.rs Rollup merge of #132214 - fmease:mv-impl-trait-val-paths, r=compiler-errors 2024-10-27 19:49:07 +01:00
errors.rs Move an impl-Trait check from AST validation to AST lowering 2024-10-27 07:41:52 +01:00
feature_gate.rs Introduce Enabled{Lang,Lib}Feature 2024-10-25 10:30:37 +08:00
lib.rs Add warn(unreachable_pub) to rustc_ast_passes. 2024-08-16 08:46:41 +10:00
node_count.rs Pass Ident by reference in ast Visitor 2024-10-24 11:10:49 -03:00
show_span.rs Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00