diff options
| author | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-05-03 11:41:03 -0700 |
|---|---|---|
| committer | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-05-03 11:41:03 -0700 |
| commit | 21c72b6979a990436e271503916f003148c4ce02 (patch) | |
| tree | eb9e4af4c024e7648420a1c75785f5890f654cc9 /src | |
| parent | 1e701e5b8e7534686483c024a052d37a6b75cc15 (diff) | |
Update clippy lint
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/clippy/clippy_lints/src/redundant_clone.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/clippy/clippy_lints/src/redundant_clone.rs b/src/tools/clippy/clippy_lints/src/redundant_clone.rs index d5cace0c647..d563eb886ae 100644 --- a/src/tools/clippy/clippy_lints/src/redundant_clone.rs +++ b/src/tools/clippy/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; |
