Closed
Description
#![deny(warnings)]
pub struct Struct;
impl Struct {
#[allow(non_upper_case_globals)]
pub const Const: () = ();
}
$ cargo +nightly-2023-04-19 check
Finished dev [unoptimized + debuginfo] target(s) in 0.01s
$ cargo +nightly-2023-04-20 check
error: associated constant `Const` should have an upper case name
--> src/main.rs:7:15
|
7 | pub const Const: () = ();
| ^^^^^ help: convert the identifier to upper case: `CONST`
|
note: the lint level is defined here
--> src/main.rs:1:9
|
1 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(non_upper_case_globals)]` implied by `#[deny(warnings)]`
I believe the old behavior from nightly-2023-04-19 is correct.
The repro has nothing to do with trait impls so I believe #110513 was not supposed to have affected it.