rust/compiler/rustc_feature/src
Yuki Okushi 5e68c60406
Rollup merge of #82516 - PoignardAzur:inherent-impl-ty, r=oli-obk
Add incomplete feature gate for inherent associate types.

Mentored by ``````@oli-obk``````

So far the only change is that instead of giving an automatic error, the following code compiles:

```rust
struct Foo;

impl Foo {
    type Bar = isize;
}
```

The backend work to make it actually usable isn't there yet. In particular, this:

```rust
let x : Foo::Bar;
```

will give you:

```sh
error[E0223]: ambiguous associated type
  --> /$RUSTC_DIR/src/test/ui/assoc-inherent.rs:15:13
   |
LL |     let x : Foo::Bar;
   |             ^^^^^^^^ help: use fully-qualified syntax: `<Foo as Trait>::Bar`
```
2021-03-02 21:23:15 +09:00
..
accepted.rs stabilize min_const_generics 2020-12-26 18:24:10 +01:00
active.rs Rollup merge of #82516 - PoignardAzur:inherent-impl-ty, r=oli-obk 2021-03-02 21:23:15 +09:00
builtin_attrs.rs Add #[rustc_legacy_const_generics] 2021-02-23 17:25:55 +00:00
lib.rs tidy: Re-enable check for inline unit tests 2020-12-12 19:18:44 +03:00
removed.rs Remove const_in_array_rep_expr 2021-01-30 23:20:24 +00:00
tests.rs tidy: Re-enable check for inline unit tests 2020-12-12 19:18:44 +03:00