Skip to content

Commit 7af694d

Browse files
Merge pull request #22019 from rust-lang/ci/gen-lints
Update generated lints
2 parents 71138f2 + d085563 commit 7af694d

1 file changed

Lines changed: 23 additions & 6 deletions

File tree

crates/ide-db/src/generated/lints.rs

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,7 @@ pub const DEFAULT_LINTS: &[Lint] = &[
13451345
Lint {
13461346
label: "uninhabited_static",
13471347
description: r##"uninhabited static"##,
1348-
default_severity: Severity::Warning,
1348+
default_severity: Severity::Error,
13491349
warn_since: None,
13501350
deny_since: None,
13511351
},
@@ -6927,6 +6927,22 @@ The tracking issue for this feature is: [#154181]
69276927

69286928
[#154181]: https://github.com/rust-lang/rust/issues/154181
69296929

6930+
------------------------
6931+
"##,
6932+
default_severity: Severity::Allow,
6933+
warn_since: None,
6934+
deny_since: None,
6935+
},
6936+
Lint {
6937+
label: "diagnostic_on_unknown",
6938+
description: r##"# `diagnostic_on_unknown`
6939+
6940+
Allows giving unresolved imports a custom diagnostic message
6941+
6942+
The tracking issue for this feature is: [#152900]
6943+
6944+
[#152900]: https://github.com/rust-lang/rust/issues/152900
6945+
69306946
------------------------
69316947
"##,
69326948
default_severity: Severity::Allow,
@@ -12989,19 +13005,20 @@ only discuss a few of them.
1298913005
------------------------
1299013006

1299113007
The `rustc_attrs` feature allows debugging rustc type layouts by using
12992-
`#[rustc_layout(...)]` to debug layout at compile time (it even works
13008+
`#[rustc_dump_layout(...)]` to debug layout at compile time (it even works
1299313009
with `cargo check`) as an alternative to `rustc -Z print-type-sizes`
1299413010
that is way more verbose.
1299513011

12996-
Options provided by `#[rustc_layout(...)]` are `debug`, `size`, `align`,
12997-
`abi`. Note that it only works on sized types without generics.
13012+
Options provided by `#[rustc_dump_layout(...)]` are `backend_repr`, `align`,
13013+
`debug`, `homogeneous_aggregate` and `size`.
13014+
Note that it only works on sized types without generics.
1299813015

1299913016
## Examples
1300013017

1300113018
```rust,compile_fail
1300213019
#![feature(rustc_attrs)]
1300313020

13004-
#[rustc_layout(abi, size)]
13021+
#[rustc_dump_layout(backend_repr, size)]
1300513022
pub enum X {
1300613023
Y(u8, u8, u8),
1300713024
Z(isize),
@@ -13011,7 +13028,7 @@ pub enum X {
1301113028
When that is compiled, the compiler will error with something like
1301213029

1301313030
```text
13014-
error: abi: Aggregate { sized: true }
13031+
error: backend_repr: Aggregate { sized: true }
1301513032
--> src/lib.rs:4:1
1301613033
|
1301713034
4 | / pub enum T {

0 commit comments

Comments
 (0)