@@ -14,7 +14,7 @@ use super::util;
14
14
15
15
use crate :: hir:: def_id:: DefId ;
16
16
use crate :: infer:: { InferCtxt , InferOk , LateBoundRegionConversionTime } ;
17
- use crate :: infer:: type_variable:: TypeVariableOrigin ;
17
+ use crate :: infer:: type_variable:: { TypeVariableOrigin , TypeVariableOriginKind } ;
18
18
use crate :: mir:: interpret:: { GlobalId , ConstValue } ;
19
19
use rustc_data_structures:: snapshot_map:: { Snapshot , SnapshotMap } ;
20
20
use rustc_macros:: HashStable ;
@@ -475,7 +475,11 @@ pub fn normalize_projection_type<'a, 'b, 'gcx, 'tcx>(
475
475
let tcx = selcx. infcx ( ) . tcx ;
476
476
let def_id = projection_ty. item_def_id ;
477
477
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
+ ) ;
479
483
let projection = ty:: Binder :: dummy ( ty:: ProjectionPredicate {
480
484
projection_ty,
481
485
ty : ty_var
@@ -810,7 +814,11 @@ fn normalize_to_error<'a, 'gcx, 'tcx>(selcx: &mut SelectionContext<'a, 'gcx, 'tc
810
814
let tcx = selcx. infcx ( ) . tcx ;
811
815
let def_id = projection_ty. item_def_id ;
812
816
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
+ ) ;
814
822
Normalized {
815
823
value : new_value,
816
824
obligations : vec ! [ trait_obligation]
0 commit comments