about summary refs log tree commit diff
path: root/compiler/rustc_query_system
diff options
context:
space:
mode:
authorFolkert de Vries <folkert@folkertdev.nl>2025-07-05 08:26:32 +0200
committerFolkert de Vries <folkert@folkertdev.nl>2025-07-05 10:55:35 +0200
commit226b0fbe11812c71c8002b10a40063571cf52b3f (patch)
tree20deaf0bfa759fbeeb59a7ea782790d84af63b80 /compiler/rustc_query_system
parent733b47ea4b1b86216f14ef56e49440c33933f230 (diff)
downloadrust-226b0fbe11812c71c8002b10a40063571cf52b3f.tar.gz
rust-226b0fbe11812c71c8002b10a40063571cf52b3f.zip
use `is_multiple_of` instead of manual modulo
Diffstat (limited to 'compiler/rustc_query_system')
-rw-r--r--compiler/rustc_query_system/src/query/plumbing.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_query_system/src/query/plumbing.rs b/compiler/rustc_query_system/src/query/plumbing.rs
index 3c1fc731784..06e59eb4ccc 100644
--- a/compiler/rustc_query_system/src/query/plumbing.rs
+++ b/compiler/rustc_query_system/src/query/plumbing.rs
@@ -597,7 +597,7 @@ where
         // from disk. Re-hashing results is fairly expensive, so we can't
         // currently afford to verify every hash. This subset should still
         // give us some coverage of potential bugs though.
-        let try_verify = prev_fingerprint.split().1.as_u64() % 32 == 0;
+        let try_verify = prev_fingerprint.split().1.as_u64().is_multiple_of(32);
         if std::intrinsics::unlikely(
             try_verify || qcx.dep_context().sess().opts.unstable_opts.incremental_verify_ich,
         ) {