@@ -9,10 +9,8 @@ use rustc_errors::Diag;
99use rustc_hir:: def_id:: CRATE_DEF_ID ;
1010use rustc_index:: IndexVec ;
1111use rustc_infer:: infer:: outlives:: test_type_match;
12- use rustc_infer:: infer:: region_constraints:: {
13- GenericKind , RegionVariableInfo , VerifyBound , VerifyIfEq ,
14- } ;
15- use rustc_infer:: infer:: { InferCtxt , NllRegionVariableOrigin , RegionVariableOrigin } ;
12+ use rustc_infer:: infer:: region_constraints:: { GenericKind , VerifyBound , VerifyIfEq } ;
13+ use rustc_infer:: infer:: { InferCtxt , NllRegionVariableOrigin } ;
1614use rustc_middle:: bug;
1715use rustc_middle:: mir:: {
1816 AnnotationSource , BasicBlock , Body , ConstraintCategory , Local , Location , ReturnConstraint ,
@@ -2143,21 +2141,6 @@ impl<'tcx> RegionInferenceContext<'tcx> {
21432141 }
21442142}
21452143
2146- impl < ' tcx > RegionDefinition < ' tcx > {
2147- pub ( crate ) fn new ( rv_info : & RegionVariableInfo ) -> Self {
2148- // Create a new region definition. Note that, for free
2149- // regions, the `external_name` field gets updated later in
2150- // [[crate::eliminate_placeholders]].
2151-
2152- let origin = match rv_info. origin {
2153- RegionVariableOrigin :: Nll ( origin) => origin,
2154- _ => NllRegionVariableOrigin :: Existential { from_forall : false } ,
2155- } ;
2156-
2157- Self { origin, universe : rv_info. universe , external_name : None }
2158- }
2159- }
2160-
21612144#[ derive( Clone , Debug ) ]
21622145pub ( crate ) struct BlameConstraint < ' tcx > {
21632146 pub category : ConstraintCategory < ' tcx > ,
0 commit comments