1
Fork 0
rust/compiler/rustc_span/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
..
analyze_source_file remove redundant closures (clippy::redundant_closure) 2021-01-03 13:34:24 +01:00
lev_distance remove redundant closures (clippy::redundant_closure) 2021-01-03 13:34:24 +01:00
source_map Print -Ztime-passes (and misc stats/logs) on stderr, not stdout. 2021-02-18 14:13:38 +02:00
symbol mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
analyze_source_file.rs Fix some clippy lints 2020-12-03 17:08:19 -05:00
caching_source_map_view.rs rustc_span: add span_data_to_lines_and_cols to caching source map view 2020-12-03 18:36:34 -08:00
def_id.rs Only store a LocalDefId in hir::Item. 2021-02-15 19:32:10 +01:00
edition.rs Add edition 2021. 2020-12-31 19:06:09 +01:00
fatal_error.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
hygiene.rs Use debug log level for developer oriented logs 2021-02-13 00:00:00 +00:00
lev_distance.rs Edit rustc_span documentation 2020-12-25 14:02:52 -08:00
lib.rs Rollup merge of #81940 - jhpratt:stabilize-str_split_once, r=m-ou-se 2021-02-26 15:52:29 +01:00
source_map.rs Rollup merge of #81860 - osa1:issue81800, r=estebank 2021-02-17 23:51:14 +01:00
span_encoding.rs Edit rustc_span documentation 2020-12-25 14:02:52 -08:00
symbol.rs Rollup merge of #82516 - PoignardAzur:inherent-impl-ty, r=oli-obk 2021-03-02 21:23:15 +09:00
tests.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00