about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWeihang Lo <weihanglo@users.noreply.github.com>2023-08-24 22:54:00 +0100
committerGitHub <noreply@github.com>2023-08-24 22:54:00 +0100
commiteee76d955502b65d243551a4904aa2db531bba78 (patch)
tree2b76ba8ebc75447b62099dd168c32eaac544e1db
parent0c1f9c8c4f725aad9705dcad6c3b1c92cbddc680 (diff)
parentc6ba5d9806565f6ddeb731df9eb3d218a51be4e8 (diff)
downloadrust-eee76d955502b65d243551a4904aa2db531bba78.tar.gz
rust-eee76d955502b65d243551a4904aa2db531bba78.zip
Rollup merge of #115177 - c410-f3r:symbols, r=compiler-errors
Add symbols for Clippy usage

The `arithmetic_side_effects` lint is always "interning" these non-existing symbols related to math operations causing a bit of a slowdown.
-rw-r--r--compiler/rustc_span/src/symbol.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs
index c0eff6dfd8f..40eadaaa820 100644
--- a/compiler/rustc_span/src/symbol.rs
+++ b/compiler/rustc_span/src/symbol.rs
@@ -232,11 +232,13 @@ symbols! {
         NonZeroI32,
         NonZeroI64,
         NonZeroI8,
+        NonZeroIsize,
         NonZeroU128,
         NonZeroU16,
         NonZeroU32,
         NonZeroU64,
         NonZeroU8,
+        NonZeroUsize,
         None,
         Ok,
         Option,
@@ -278,6 +280,7 @@ symbols! {
         RwLock,
         RwLockReadGuard,
         RwLockWriteGuard,
+        Saturating,
         Send,
         SeqCst,
         SliceIndex,
@@ -305,6 +308,7 @@ symbols! {
         Vec,
         VecDeque,
         Wrapper,
+        Wrapping,
         Yield,
         _DECLS,
         _Self,
@@ -1373,6 +1377,7 @@ symbols! {
         sanitizer_cfi_normalize_integers,
         sanitizer_runtime,
         saturating_add,
+        saturating_div,
         saturating_sub,
         self_in_typedefs,
         self_struct_ctor,
@@ -1691,7 +1696,10 @@ symbols! {
         windows_subsystem,
         with_negative_coherence,
         wrapping_add,
+        wrapping_div,
         wrapping_mul,
+        wrapping_rem,
+        wrapping_rem_euclid,
         wrapping_sub,
         wreg,
         write_bytes,