Files
rust/tests/ui/impl-trait
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
..
2024-08-17 12:43:25 -04:00
2024-02-26 10:57:46 +01:00
2024-06-13 10:41:52 +00:00
2024-06-13 10:41:52 +00:00
2024-02-07 10:42:01 +08:00
2024-08-17 12:43:25 -04:00
2024-06-13 10:41:52 +00:00
2024-04-08 15:00:03 +00:00
2024-08-17 12:43:25 -04:00
2024-02-07 10:42:01 +08:00
2024-06-19 08:28:31 +00:00
2024-06-19 08:28:31 +00:00
2024-06-19 08:40:29 +00:00
2024-10-04 23:38:41 +00:00