Skip to content

Commit

Permalink
remove unnecessary use of indexed_set::Indexed trait.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed May 25, 2016
1 parent 25f37fd commit 58f1a49
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/librustc_borrowck/borrowck/mir/gather_moves.rs
Expand Up @@ -20,7 +20,7 @@ use std::iter;
use std::ops::Index;

use super::abs_domain::{AbstractElem, Lift};
use indexed_set::{Idx, Indexed};
use indexed_set::{Idx};

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

impl<'tcx> Indexed for MovePath<'tcx> {
type Idx = MovePathIndex;
}

impl Indexed for MoveOut {
type Idx = MoveOutIndex;
}

impl self::indexes::MoveOutIndex {
pub fn move_path_index(&self, move_data: &MoveData) -> MovePathIndex {
move_data.moves[self.idx()].path
Expand Down

0 comments on commit 58f1a49

Please sign in to comment.