@@ -998,7 +998,7 @@ impl<'tcx> ty::TyS<'tcx> {
998
998
999
999
fn is_copy_raw < ' tcx > ( tcx : TyCtxt < ' tcx > , query : ty:: ParamEnvAnd < ' tcx , Ty < ' tcx > > ) -> bool {
1000
1000
let ( param_env, ty) = query. into_parts ( ) ;
1001
- let trait_def_id = tcx. require_lang_item ( lang_items:: CopyTraitLangItem ) ;
1001
+ let trait_def_id = tcx. require_lang_item ( lang_items:: CopyTraitLangItem , None ) ;
1002
1002
tcx. infer_ctxt ( )
1003
1003
. enter ( |infcx| traits:: type_known_to_meet_bound_modulo_regions (
1004
1004
& infcx,
@@ -1011,7 +1011,7 @@ fn is_copy_raw<'tcx>(tcx: TyCtxt<'tcx>, query: ty::ParamEnvAnd<'tcx, Ty<'tcx>>)
1011
1011
1012
1012
fn is_sized_raw < ' tcx > ( tcx : TyCtxt < ' tcx > , query : ty:: ParamEnvAnd < ' tcx , Ty < ' tcx > > ) -> bool {
1013
1013
let ( param_env, ty) = query. into_parts ( ) ;
1014
- let trait_def_id = tcx. require_lang_item ( lang_items:: SizedTraitLangItem ) ;
1014
+ let trait_def_id = tcx. require_lang_item ( lang_items:: SizedTraitLangItem , None ) ;
1015
1015
tcx. infer_ctxt ( )
1016
1016
. enter ( |infcx| traits:: type_known_to_meet_bound_modulo_regions (
1017
1017
& infcx,
@@ -1024,7 +1024,7 @@ fn is_sized_raw<'tcx>(tcx: TyCtxt<'tcx>, query: ty::ParamEnvAnd<'tcx, Ty<'tcx>>)
1024
1024
1025
1025
fn is_freeze_raw < ' tcx > ( tcx : TyCtxt < ' tcx > , query : ty:: ParamEnvAnd < ' tcx , Ty < ' tcx > > ) -> bool {
1026
1026
let ( param_env, ty) = query. into_parts ( ) ;
1027
- let trait_def_id = tcx. require_lang_item ( lang_items:: FreezeTraitLangItem ) ;
1027
+ let trait_def_id = tcx. require_lang_item ( lang_items:: FreezeTraitLangItem , None ) ;
1028
1028
tcx. infer_ctxt ( )
1029
1029
. enter ( |infcx| traits:: type_known_to_meet_bound_modulo_regions (
1030
1030
& infcx,
0 commit comments