about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2020-05-04 15:13:07 +0200
committerOliver Scherer <github35764891676564198441@oli-obk.de>2020-05-04 15:13:07 +0200
commit7744cf4e53c4e19e5753e2063be420b9d0c0d38a (patch)
treef4431b9d14847906a2f6003e5bfb9506959f1658
parent76ddac5e8e9f588fda939cf8ec116e5926419758 (diff)
downloadrust-7744cf4e53c4e19e5753e2063be420b9d0c0d38a.tar.gz
rust-7744cf4e53c4e19e5753e2063be420b9d0c0d38a.zip
Update to rustc changes
-rw-r--r--clippy_lints/src/redundant_clone.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/redundant_clone.rs b/clippy_lints/src/redundant_clone.rs
index d5cace0c647..d563eb886ae 100644
--- a/clippy_lints/src/redundant_clone.rs
+++ b/clippy_lints/src/redundant_clone.rs
@@ -591,7 +591,7 @@ struct PossibleBorrowerMap<'a, 'tcx> {
 impl PossibleBorrowerMap<'_, '_> {
     /// Returns true if the set of borrowers of `borrowed` living at `at` matches with `borrowers`.
     fn only_borrowers(&mut self, borrowers: &[mir::Local], borrowed: mir::Local, at: mir::Location) -> bool {
-        self.maybe_live.seek_after(at);
+        self.maybe_live.seek_after_primary_effect(at);
 
         self.bitset.0.clear();
         let maybe_live = &mut self.maybe_live;