Jason Newcomb 373df5265e
Post non_std_lazy_statics type warnings onto the right node (#14740)
When a `non_std_lazy_statics` warning is generated about an item type
which can be replaced by a standard library one, ensure that the lint
happens on the item HIR node so that it can be expected.

changelog: [`non_std_lazy_statics`]: generate the warning onto the right
node

Fixes rust-lang/rust-clippy#14729

Note that this doesn't change anything on lints generated for the
`lazy_static::lazy_static` macro because the `expect` attribute cannot
be applied to a macro.
2025-05-14 05:49:50 +00:00
..
2025-05-10 22:10:28 +02:00
2025-04-25 01:39:35 +05:00
2025-04-25 01:39:35 +05:00
2025-04-25 01:39:35 +05:00
2025-05-06 14:07:39 +00:00
2025-05-09 19:25:55 +07:00
2025-05-09 19:25:55 +07:00
2025-05-09 19:25:55 +07:00
2025-05-09 19:25:55 +07:00
2025-05-09 19:25:55 +07:00