// #![warn(deprecated_mode)]
+use middle::def_id::DefId;
use middle::infer::{InferCtxt, GenericKind};
use middle::subst::Substs;
use middle::traits;
-use middle::ty::{self, RegionEscape, ToPolyTraitRef, ToPredicate, Ty};
-use middle::ty_fold::{TypeFoldable, TypeFolder};
+use middle::ty::{self, ToPredicate, Ty};
+use middle::ty::fold::{TypeFoldable, TypeFolder};
use syntax::ast;
use syntax::codemap::Span;
pub enum Implication<'tcx> {
RegionSubRegion(Option<Ty<'tcx>>, ty::Region, ty::Region),
RegionSubGeneric(Option<Ty<'tcx>>, ty::Region, GenericKind<'tcx>),
- Predicate(ast::DefId, ty::Predicate<'tcx>),
+ Predicate(DefId, ty::Predicate<'tcx>),
}
struct Implicator<'a, 'tcx: 'a> {
fn accumulate_from_adt(&mut self,
ty: Ty<'tcx>,
- def_id: ast::DefId,
+ def_id: DefId,
_generics: &ty::Generics<'tcx>,
substs: &Substs<'tcx>)
{
}
}
}
+ ty::Predicate::ObjectSafe(_) |
+ ty::Predicate::WellFormed(_) => {
+ }
}
}
}
fn fully_normalize<T>(&self, value: &T) -> Result<T,ErrorReported>
- where T : TypeFoldable<'tcx> + ty::HasTypeFlags
+ where T : TypeFoldable<'tcx>
{
let value =
traits::fully_normalize(self.infcx,