summary refs log tree commit diff
path: root/compiler/rustc_span/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-04-01 23:16:33 +0200
committerMatthias Krüger <matthias.krueger@famsik.de>2023-04-01 23:16:33 +0200
commit8ef3bf29fe47f770a52090212e3a50a0e2bc87f5 (patch)
treeeb51f82937153f4cc732ed77aa86f9db6c20f94f /compiler/rustc_span/src
parent0196c2bd274dd5bb01c77b5a9b1da9623571b0f8 (diff)
downloadrust-8ef3bf29fe47f770a52090212e3a50a0e2bc87f5.tar.gz
rust-8ef3bf29fe47f770a52090212e3a50a0e2bc87f5.zip
a couple clippy::complexity fixes
map_identity
filter_next
option_as_ref_deref
unnecessary_find_map
redundant_slicing
unnecessary_unwrap
bool_comparison
derivable_impls
manual_flatten
needless_borrowed_reference
Diffstat (limited to 'compiler/rustc_span/src')
-rw-r--r--compiler/rustc_span/src/hygiene.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_span/src/hygiene.rs b/compiler/rustc_span/src/hygiene.rs
index d727aba6de5..0bb42a3a71f 100644
--- a/compiler/rustc_span/src/hygiene.rs
+++ b/compiler/rustc_span/src/hygiene.rs
@@ -109,7 +109,7 @@ fn assert_default_hashing_controls<CTX: HashStableContext>(ctx: &CTX, msg: &str)
         // This is the case for instance when building a hash for name mangling.
         // Such configuration must not be used for metadata.
         HashingControls { hash_spans }
-            if hash_spans == !ctx.unstable_opts_incremental_ignore_spans() => {}
+            if hash_spans != ctx.unstable_opts_incremental_ignore_spans() => {}
         other => panic!("Attempted hashing of {msg} with non-default HashingControls: {other:?}"),
     }
 }