You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't lint `large_stack_array` inside static items
We now check if the linted `Expr` is inside an `ItemKind::Static`, which can't take the suggested `Box<[...]`. I _think_ this is the correct fix for rust-lang#9460
I removed `if_chain` while I was at it.
changelog: Don't lint `large_stack_array` inside static items
Right now any function signature of the form
is valid, but only if the thing returned has the static lifetime.
I think it would be less confusing if we would just always forbid that, requiring to write out the
'static
explicitly in those cases:The text was updated successfully, but these errors were encountered: