array_into_iter does not fire for lazy_static arrays #88099
Labels
A-edition-2021
Area: The 2021 edition
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-bug
Category: This is a bug.
I tried this code:
I expected to see this happen:
array_into_iter
should fire for this. Or, maybe this shouldn't fail in 2021?Instead, this happened: Lint does not fire. When migrating to 2021, this fails to compile:
lazy_static
uses a Deref to access the underlying value. The expanded code looks like this:I don't know if it is feasible to have a fix suggestion for this, or why exactly the existing lint doesn't fire.
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: