about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/tests.rs
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-08-31 16:23:00 +0000
committerGitHub <noreply@github.com>2025-08-31 16:23:00 +0000
commit1b21661c41bcfb77f7311b7995ca64e7921d1693 (patch)
tree41249e2f302bad2f1f8b42b7356cd8b0be59a253 /compiler/rustc_mir_transform/src/coverage/tests.rs
parentc98ce1887c2670520056f532aa1feee1fc107796 (diff)
parentfc3959044f628745e4c6899cb0fed6452e63905c (diff)
downloadrust-1b21661c41bcfb77f7311b7995ca64e7921d1693.tar.gz
rust-1b21661c41bcfb77f7311b7995ca64e7921d1693.zip
Supress `excessive_precision` when constants are overly precise (#15193)
Suppress the `excessive_precision` lint when the literal is the
initializer of a `const` item and overly precise (over 40 digits).
If an overly precise literal is used in a let initialization it produces
a note suggesting the change.

changelog: [`excessive_precision`]: suppress the lint when `const` items
are overly precise, configurable through the new
`const_literal_digits_threshold` option

Fixes rust-lang/rust-clippy#13855
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/tests.rs')
0 files changed, 0 insertions, 0 deletions