diff options
| author | clubby789 <jamie@hill-daniel.co.uk> | 2024-01-28 20:53:28 +0000 |
|---|---|---|
| committer | clubby789 <jamie@hill-daniel.co.uk> | 2024-02-13 21:03:34 +0000 |
| commit | 4de3a3af4afd30fc86ba1c5a1681f571d530d16a (patch) | |
| tree | dd6ab7065879f59c7518c1248f0aa4b99965ab71 /compiler/rustc_resolve/src | |
| parent | a84bb95a1f65bfe25038f188763a18e096a86ab2 (diff) | |
| download | rust-4de3a3af4afd30fc86ba1c5a1681f571d530d16a.tar.gz rust-4de3a3af4afd30fc86ba1c5a1681f571d530d16a.zip | |
Bump `indexmap`
`swap` has been deprecated in favour of `swap_remove` - the behaviour is the same though.
Diffstat (limited to 'compiler/rustc_resolve/src')
| -rw-r--r-- | compiler/rustc_resolve/src/check_unused.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/check_unused.rs b/compiler/rustc_resolve/src/check_unused.rs index fc72d76c3a7..c14788b841d 100644 --- a/compiler/rustc_resolve/src/check_unused.rs +++ b/compiler/rustc_resolve/src/check_unused.rs @@ -92,7 +92,8 @@ impl<'a, 'b, 'tcx> UnusedImportCheckVisitor<'a, 'b, 'tcx> { } else { // This trait import is definitely used, in a way other than // method resolution. - self.r.maybe_unused_trait_imports.remove(&def_id); + // FIXME(#120456) - is `swap_remove` correct? + self.r.maybe_unused_trait_imports.swap_remove(&def_id); if let Some(i) = self.unused_imports.get_mut(&self.base_id) { i.unused.remove(&id); } |
