Skip to content

Commit 58f1a49

Browse files
committed
remove unnecessary use of indexed_set::Indexed trait.
1 parent 25f37fd commit 58f1a49

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/librustc_borrowck/borrowck/mir/gather_moves.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use std::iter;
2020
use std::ops::Index;
2121

2222
use super::abs_domain::{AbstractElem, Lift};
23-
use indexed_set::{Idx, Indexed};
23+
use indexed_set::{Idx};
2424

2525
// This submodule holds some newtype'd Index wrappers that are using
2626
// NonZero to ensure that Option<Index> occupies only a single word.
@@ -60,14 +60,6 @@ mod indexes {
6060
pub use self::indexes::MovePathIndex;
6161
pub use self::indexes::MoveOutIndex;
6262

63-
impl<'tcx> Indexed for MovePath<'tcx> {
64-
type Idx = MovePathIndex;
65-
}
66-
67-
impl Indexed for MoveOut {
68-
type Idx = MoveOutIndex;
69-
}
70-
7163
impl self::indexes::MoveOutIndex {
7264
pub fn move_path_index(&self, move_data: &MoveData) -> MovePathIndex {
7365
move_data.moves[self.idx()].path

0 commit comments

Comments
 (0)