rust/compiler/rustc_ast_passes/src
Matthias Krüger 214e4ef4ef
Rollup merge of #110237 - oli-obk:impl_trait_in_assoc_tys, r=jackh726
Split out a separate feature gate for impl trait in associated types

in https://github.com/rust-lang/rust/issues/107645 it was decided that we'll take a new route for type alias impl trait. The exact route isn't clear yet, so while I'm working on implementing some of these proposed changes (e.g. in https://github.com/rust-lang/rust/pull/110010) to be able to experiment with them, I will also work on stabilizing another sugar version first: impl trait in associated types. Similarly I'll look into creating feature gates for impl trait in const/static types.

This PR does nothing but split the feature gate, so that you need to enable a different feature gate for

```rust
impl Trait for Type {
    type Assoc = impl SomeTrait;
}
```

than what you need for `type Foo = impl SomeTrait;`
2023-04-12 20:56:24 +02:00
..
ast_validation.rs Rollup merge of #110203 - compiler-errors:rtn-dots, r=eholk 2023-04-12 20:56:22 +02:00
errors.rs Make "unneccesary visibility qualifier" error much more clear 2023-04-03 21:52:27 -05:00
feature_gate.rs Rollup merge of #110237 - oli-obk:impl_trait_in_assoc_tys, r=jackh726 2023-04-12 20:56:24 +02:00
lib.rs Simplify message paths 2023-03-11 22:51:57 +01:00
node_count.rs Remove unused span argument from walk_fn. 2022-09-12 13:24:27 +10:00
show_span.rs Complete migrating ast_passes to derive diagnostics 2023-02-25 15:19:13 +00:00