}
}
}
+
+impl<'tcx> Repr<'tcx> for WfConstraint<'tcx> {
+ fn repr(&self, tcx: &ty::ctxt) -> String {
+ match *self {
+ RegionSubRegionConstraint(_, r_a, r_b) => {
+ format!("RegionSubRegionConstraint({}, {})",
+ r_a.repr(tcx),
+ r_b.repr(tcx))
+ }
+
+ RegionSubParamConstraint(_, r, p) => {
+ format!("RegionSubParamConstraint({}, {})",
+ r.repr(tcx),
+ p.repr(tcx))
+ }
+ }
+ }
+}
+
use middle::ty::{ty_unboxed_closure};
use middle::ty::{ty_uniq, ty_trait, ty_int, ty_uint, ty_infer};
use middle::ty;
-use middle::typeck::check::regionmanip;
use std::rc::Rc;
use syntax::abi;
}
}
-impl<'tcx> Repr<'tcx> for regionmanip::WfConstraint<'tcx> {
- fn repr(&self, tcx: &ctxt) -> String {
- match *self {
- regionmanip::RegionSubRegionConstraint(_, r_a, r_b) => {
- format!("RegionSubRegionConstraint({}, {})",
- r_a.repr(tcx),
- r_b.repr(tcx))
- }
-
- regionmanip::RegionSubParamConstraint(_, r, p) => {
- format!("RegionSubParamConstraint({}, {})",
- r.repr(tcx),
- p.repr(tcx))
- }
- }
- }
-}
-
impl<'tcx> UserString<'tcx> for ParamTy {
fn user_string(&self, tcx: &ctxt) -> String {
let id = self.idx;