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
If I get the large stack array lint, I expect to get the offending span
Instead, this happened:
error: allocating a local array larger than 16384 bytes
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_stack_arrays
= note: `-D clippy::large-stack-arrays` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::large_stack_arrays)]`
error: could not compile `tfhe` (lib test) due to 1 previous error
Summary
As asked here: https://rust-lang.zulipchat.com/#narrow/channel/257328-clippy/topic/Large.20stack.20array.20without.20code.20span.20clippy.3A.3Alarge_stack_arra/near/485664087
I am posting an issue regarding the clippy::large_stack_arrays lint appearing without a span.
Reproducer
https://github.com/zama-ai/tfhe-rs/tree/am/chore/clippy-bug (permalink for commit zama-ai/tfhe-rs@8378ce7)
Run
RUSTFLAGS="-C target-cpu=native" cargo "+nightly-2024-11-29" clippy --all-targets --features=x86_64-unix,boolean,shortint,integer -p tfhe -- --no-deps -D warnings
I expected to see this happen:
If I get the large stack array lint, I expect to get the offending span
Instead, this happened:
no span is provided
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: