@@ -572,7 +572,7 @@ impl<'a, 'b, 'tcx> TypeVerifier<'a, 'b, 'tcx> {
572572 let tcx = self . tcx ( ) ;
573573 let trait_ref = ty:: TraitRef {
574574 def_id : tcx. require_lang_item ( LangItem :: Copy , Some ( self . last_span ) ) ,
575- substs : tcx. mk_substs_trait ( place_ty. ty , & [ ] , ty :: ConstnessArg :: Not ) ,
575+ substs : tcx. mk_substs_trait ( place_ty. ty , & [ ] ) ,
576576 } ;
577577
578578 // To have a `Copy` operand, the type `T` of the
@@ -1304,7 +1304,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
13041304 if !self . unsized_feature_enabled ( ) {
13051305 let trait_ref = ty:: TraitRef {
13061306 def_id : tcx. require_lang_item ( LangItem :: Sized , Some ( self . last_span ) ) ,
1307- substs : tcx. mk_substs_trait ( place_ty, & [ ] , ty :: ConstnessArg :: Not ) ,
1307+ substs : tcx. mk_substs_trait ( place_ty, & [ ] ) ,
13081308 } ;
13091309 self . prove_trait_ref (
13101310 trait_ref,
@@ -1894,7 +1894,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
18941894 let ty = place. ty ( body, tcx) . ty ;
18951895 let trait_ref = ty:: TraitRef :: new (
18961896 tcx. require_lang_item ( LangItem :: Copy , Some ( span) ) ,
1897- tcx. mk_substs_trait ( ty, & [ ] , ty :: ConstnessArg :: Not ) ,
1897+ tcx. mk_substs_trait ( ty, & [ ] ) ,
18981898 ) ;
18991899
19001900 self . prove_trait_ref (
@@ -1910,7 +1910,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
19101910 & Rvalue :: NullaryOp ( _, ty) => {
19111911 let trait_ref = ty:: TraitRef {
19121912 def_id : tcx. require_lang_item ( LangItem :: Sized , Some ( self . last_span ) ) ,
1913- substs : tcx. mk_substs_trait ( ty, & [ ] , ty :: ConstnessArg :: Not ) ,
1913+ substs : tcx. mk_substs_trait ( ty, & [ ] ) ,
19141914 } ;
19151915
19161916 self . prove_trait_ref (
@@ -1925,7 +1925,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
19251925
19261926 let trait_ref = ty:: TraitRef {
19271927 def_id : tcx. require_lang_item ( LangItem :: Sized , Some ( self . last_span ) ) ,
1928- substs : tcx. mk_substs_trait ( * ty, & [ ] , ty :: ConstnessArg :: Not ) ,
1928+ substs : tcx. mk_substs_trait ( * ty, & [ ] ) ,
19291929 } ;
19301930
19311931 self . prove_trait_ref (
@@ -2027,11 +2027,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
20272027 def_id : tcx
20282028 . require_lang_item ( LangItem :: CoerceUnsized , Some ( self . last_span ) ) ,
20292029 // TODO: pick constness arg from context
2030- substs : tcx. mk_substs_trait (
2031- op. ty ( body, tcx) ,
2032- & [ ty. into ( ) ] ,
2033- ty:: ConstnessArg :: Not ,
2034- ) ,
2030+ substs : tcx. mk_substs_trait ( op. ty ( body, tcx) , & [ ty. into ( ) ] ) ,
20352031 } ;
20362032
20372033 self . prove_trait_ref (
0 commit comments