use rustc::ty::fold::{TypeFoldable, TypeVisitor};
use rustc::ty::{self, Ty, TyCtxt};
-use rustc::util::nodemap::FxHashSet;
-use syntax::source_map::Span;
+use rustc_data_structures::fx::FxHashSet;
+use rustc_span::source_map::Span;
#[derive(Clone, PartialEq, Eq, Hash, Debug)]
pub struct Parameter(pub u32);
// to project out an associated type defined by this very
// trait.
let unbound_trait_ref = projection.projection_ty.trait_ref(tcx);
- if Some(unbound_trait_ref.clone()) == impl_trait_ref {
+ if Some(unbound_trait_ref) == impl_trait_ref {
continue;
}