about summary refs log tree commit diff
path: root/clippy_utils/src/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-06-14 08:59:40 +0000
committerbors <bors@rust-lang.org>2022-06-14 08:59:40 +0000
commitc07cbb9ea65bb4ed4c78fa4b664474ea234bbc46 (patch)
tree7c8f2f3206d3f48b446daea2b5c46e45d7caa6c6 /clippy_utils/src/lib.rs
parentc80ca2c1d6c798334807b610a58d0dbfd95c6a75 (diff)
parent7975d41a915b7e2c0b5ce2e2ca47ab31b96d978a (diff)
downloadrust-c07cbb9ea65bb4ed4c78fa4b664474ea234bbc46.tar.gz
rust-c07cbb9ea65bb4ed4c78fa4b664474ea234bbc46.zip
Auto merge of #8901 - Jarcho:sharing_code, r=dswij
Rework `branches_sharing_code`

fixes #7378

This changes the lint from checking pairs of blocks, to checking all the blocks at the same time. As such there's almost none of the original code left.

changelog: Don't lint `branches_sharing_code` when using different binding names
Diffstat (limited to 'clippy_utils/src/lib.rs')
-rw-r--r--clippy_utils/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/clippy_utils/src/lib.rs b/clippy_utils/src/lib.rs
index 5f051e3f444..0a95809381b 100644
--- a/clippy_utils/src/lib.rs
+++ b/clippy_utils/src/lib.rs
@@ -58,7 +58,9 @@ pub mod usage;
 pub mod visitors;
 
 pub use self::attrs::*;
-pub use self::hir_utils::{both, count_eq, eq_expr_value, over, SpanlessEq, SpanlessHash};
+pub use self::hir_utils::{
+    both, count_eq, eq_expr_value, hash_expr, hash_stmt, over, HirEqInterExpr, SpanlessEq, SpanlessHash,
+};
 
 use std::collections::hash_map::Entry;
 use std::hash::BuildHasherDefault;