]> git.lizzy.rs Git - rust.git/commitdiff
Update clippy lint
authorDylan MacKenzie <ecstaticmorse@gmail.com>
Sun, 3 May 2020 18:41:03 +0000 (11:41 -0700)
committerDylan MacKenzie <ecstaticmorse@gmail.com>
Sun, 3 May 2020 18:41:03 +0000 (11:41 -0700)
src/tools/clippy/clippy_lints/src/redundant_clone.rs

index d5cace0c647461b4b1440f99b969366e51b464dc..d563eb886ae7e6618dc4832ef3a91572c02c0029 100644 (file)
@@ -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;