rust/compiler
Matthias Krüger e70818983b
Rollup merge of #110013 - compiler-errors:non-exhaustive-privacy-reason, r=WaffleLapkin
Label `non_exhaustive` attribute on privacy errors from non-local items

Label when an ADT is `non_exhaustive` and we get a privacy error, help with confusion in a case like this:

```rust
#[non_exhaustive]
pub struct Foo;

// other crate
let x = Foo;
//~^ ERROR unit struct `Foo` is private
```
2023-04-07 00:00:25 +02:00
..
2023-04-04 12:38:06 -07:00
2023-03-27 18:58:07 +00:00
2023-04-03 15:59:21 +00:00
2023-03-28 01:14:28 +00:00
2023-04-06 08:25:53 +02:00
2023-04-01 23:44:16 +02:00