Unactionable clippy error

โš“ rust    ๐Ÿ“… 2025-07-03    ๐Ÿ‘ค surdeus    ๐Ÿ‘๏ธ 1      

surdeus

Info

This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Unactionable clippy error

Hi,

I'm working on a project which stores several large arrays in consts. Running cargo clippy shows errors of this kind:

error: maximum number of nodes exceeded in constant params::ENC_EMB_GRU_GRU_WEIGHT_HH_L0
   --> /path/to/project/target/debug/build/<hash>/out/model_parameters.rs:192:1
    |
192 | pub const ENC_EMB_GRU_GRU_WEIGHT_HH_L0: Tensor<f32> = Tensor::from_slice_const([768, 256], ENC_EMB_GRU_GRU_WEIGHT_HH_L0_DATA);
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The project builds fine, the problem is with clippy. I opened Unactionable error: maximum number of nodes exceeded in constant ยท Issue #14970 ยท rust-lang/rust-clippy ยท GitHub to ask about this but so far I've received no feedback so here I am.

Has anybody run into this too? This is causing issues mostly with CI in my project.

3 posts - 2 participants

Read full topic

๐Ÿท๏ธ rust_feed