@@ -14,7 +14,7 @@ use super::util;
1414
1515use crate :: hir:: def_id:: DefId ;
1616use crate :: infer:: { InferCtxt , InferOk , LateBoundRegionConversionTime } ;
17- use crate :: infer:: type_variable:: TypeVariableOrigin ;
17+ use crate :: infer:: type_variable:: { TypeVariableOrigin , TypeVariableOriginKind } ;
1818use crate :: mir:: interpret:: { GlobalId , ConstValue } ;
1919use rustc_data_structures:: snapshot_map:: { Snapshot , SnapshotMap } ;
2020use rustc_macros:: HashStable ;
@@ -475,7 +475,11 @@ pub fn normalize_projection_type<'a, 'b, 'gcx, 'tcx>(
475475 let tcx = selcx. infcx ( ) . tcx ;
476476 let def_id = projection_ty. item_def_id ;
477477 let ty_var = selcx. infcx ( ) . next_ty_var (
478- TypeVariableOrigin :: NormalizeProjectionType ( tcx. def_span ( def_id) ) ) ;
478+ TypeVariableOrigin {
479+ kind : TypeVariableOriginKind :: NormalizeProjectionType ,
480+ span : tcx. def_span ( def_id) ,
481+ } ,
482+ ) ;
479483 let projection = ty:: Binder :: dummy ( ty:: ProjectionPredicate {
480484 projection_ty,
481485 ty : ty_var
@@ -810,7 +814,11 @@ fn normalize_to_error<'a, 'gcx, 'tcx>(selcx: &mut SelectionContext<'a, 'gcx, 'tc
810814 let tcx = selcx. infcx ( ) . tcx ;
811815 let def_id = projection_ty. item_def_id ;
812816 let new_value = selcx. infcx ( ) . next_ty_var (
813- TypeVariableOrigin :: NormalizeProjectionType ( tcx. def_span ( def_id) ) ) ;
817+ TypeVariableOrigin {
818+ kind : TypeVariableOriginKind :: NormalizeProjectionType ,
819+ span : tcx. def_span ( def_id) ,
820+ } ,
821+ ) ;
814822 Normalized {
815823 value : new_value,
816824 obligations : vec ! [ trait_obligation]
0 commit comments