@@ -9,7 +9,7 @@ use rustc_middle::ty::{self, ParamEnvAnd, Ty, TyCtxt};
99use rustc_span:: source_map:: { Span , DUMMY_SP } ;
1010use rustc_trait_selection:: traits:: query:: dropck_outlives:: trivial_dropck_outlives;
1111use rustc_trait_selection:: traits:: query:: dropck_outlives:: {
12- DropckOutlivesResult , DtorckConstraint ,
12+ DropckConstraint , DropckOutlivesResult ,
1313} ;
1414use rustc_trait_selection:: traits:: query:: normalize:: AtExt ;
1515use rustc_trait_selection:: traits:: query:: { CanonicalTyGoal , NoSolution } ;
@@ -78,7 +78,7 @@ fn dropck_outlives<'tcx>(
7878 let mut fulfill_cx = <dyn TraitEngine < ' _ > >:: new ( infcx. tcx ) ;
7979
8080 let cause = ObligationCause :: dummy ( ) ;
81- let mut constraints = DtorckConstraint :: empty ( ) ;
81+ let mut constraints = DropckConstraint :: empty ( ) ;
8282 while let Some ( ( ty, depth) ) = ty_stack. pop ( ) {
8383 debug ! (
8484 "{} kinds, {} overflows, {} ty_stack" ,
@@ -159,7 +159,7 @@ fn dtorck_constraint_for_ty<'tcx>(
159159 for_ty : Ty < ' tcx > ,
160160 depth : usize ,
161161 ty : Ty < ' tcx > ,
162- constraints : & mut DtorckConstraint < ' tcx > ,
162+ constraints : & mut DropckConstraint < ' tcx > ,
163163) -> Result < ( ) , NoSolution > {
164164 debug ! ( "dtorck_constraint_for_ty({:?}, {:?}, {:?}, {:?})" , span, for_ty, depth, ty) ;
165165
@@ -267,7 +267,7 @@ fn dtorck_constraint_for_ty<'tcx>(
267267 }
268268
269269 ty:: Adt ( def, substs) => {
270- let DtorckConstraint { dtorck_types, outlives, overflows } =
270+ let DropckConstraint { dtorck_types, outlives, overflows } =
271271 tcx. at ( span) . adt_dtorck_constraint ( def. did ( ) ) ?;
272272 // FIXME: we can try to recursively `dtorck_constraint_on_ty`
273273 // there, but that needs some way to handle cycles.
@@ -301,7 +301,7 @@ fn dtorck_constraint_for_ty<'tcx>(
301301crate fn adt_dtorck_constraint (
302302 tcx : TyCtxt < ' _ > ,
303303 def_id : DefId ,
304- ) -> Result < & DtorckConstraint < ' _ > , NoSolution > {
304+ ) -> Result < & DropckConstraint < ' _ > , NoSolution > {
305305 let def = tcx. adt_def ( def_id) ;
306306 let span = tcx. def_span ( def_id) ;
307307 debug ! ( "dtorck_constraint: {:?}" , def) ;
@@ -311,7 +311,7 @@ crate fn adt_dtorck_constraint(
311311 // `PhantomData`.
312312 let substs = InternalSubsts :: identity_for_item ( tcx, def_id) ;
313313 assert_eq ! ( substs. len( ) , 1 ) ;
314- let result = DtorckConstraint {
314+ let result = DropckConstraint {
315315 outlives : vec ! [ ] ,
316316 dtorck_types : vec ! [ substs. type_at( 0 ) ] ,
317317 overflows : vec ! [ ] ,
@@ -320,7 +320,7 @@ crate fn adt_dtorck_constraint(
320320 return Ok ( tcx. arena . alloc ( result) ) ;
321321 }
322322
323- let mut result = DtorckConstraint :: empty ( ) ;
323+ let mut result = DropckConstraint :: empty ( ) ;
324324 for field in def. all_fields ( ) {
325325 let fty = tcx. type_of ( field. did ) ;
326326 dtorck_constraint_for_ty ( tcx, span, fty, 0 , fty, & mut result) ?;
@@ -333,7 +333,7 @@ crate fn adt_dtorck_constraint(
333333 Ok ( tcx. arena . alloc ( result) )
334334}
335335
336- fn dedup_dtorck_constraint ( c : & mut DtorckConstraint < ' _ > ) {
336+ fn dedup_dtorck_constraint ( c : & mut DropckConstraint < ' _ > ) {
337337 let mut outlives = FxHashSet :: default ( ) ;
338338 let mut dtorck_types = FxHashSet :: default ( ) ;
339339
0 commit comments