Skip to content

Value exceeds limit error in data.rs #97

@ct-clmsn

Description

@ct-clmsn

I'm attempting to compile serde_json and managed to get an integer error in encoding_rs. The compilation error is below. Thanks in advance.

rustc --crate-name build_script_build --edition=2021 $HOME/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde_json-1.0.108/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="std"' --cfg 'feature="unbounded_depth"' -C metadata=76e87aa6da0e6b18 -C extra-filename=-76e87aa6da0e6b18 --out-dir /tmp/pip-install-80qhzsuy/maturin_056ca7e370304556aac4017d498b7958/target/release/build/serde_json-76e87aa6da0e6b18 -L dependency=/tmp/pip-install-80qhzsuy/maturin_056ca7e370304556aac4017d498b7958/target/release/deps --cap-lints allow`
        error: integer literal is too large
             --> $HOME/.cargo/registry/src/index.crates.io-6f17d22bba15001f/encoding_rs-0.8.33/src/data.rs:87451:5
              |
        87451 |     0x00DF, 0x00E0, 0x00E1, 0x00E2, 0x00E4, 0x00E5, 0x00E7, 0x00E8, 0x00E9, 0x00ED, 0x00EE, 0x00F1,
              |     ^^^^^^
              |
              = note: value exceeds limit of `340282366920938463463374607431768211455`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions