File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
compiler/rustc_middle/src/ty Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -2261,15 +2261,6 @@ impl<'tcx> TyCtxt<'tcx> {
2261
2261
self . mk_substs_from_iter ( iter:: once ( self_ty. into ( ) ) . chain ( rest) )
2262
2262
}
2263
2263
2264
- pub fn mk_trait_ref (
2265
- self ,
2266
- trait_def_id : DefId ,
2267
- substs : impl IntoIterator < Item : Into < GenericArg < ' tcx > > > ,
2268
- ) -> ty:: TraitRef < ' tcx > {
2269
- let substs = self . check_and_mk_substs ( trait_def_id, substs) ;
2270
- ty:: TraitRef { def_id : trait_def_id, substs, _use_mk_trait_ref_instead : ( ) }
2271
- }
2272
-
2273
2264
pub fn mk_alias_ty (
2274
2265
self ,
2275
2266
def_id : DefId ,
@@ -2473,15 +2464,6 @@ impl<'tcx> TyCtxtAt<'tcx> {
2473
2464
pub fn ty_error_with_message ( self , msg : & str ) -> Ty < ' tcx > {
2474
2465
self . tcx . ty_error_with_message ( self . span , msg)
2475
2466
}
2476
-
2477
- pub fn mk_trait_ref (
2478
- self ,
2479
- trait_lang_item : LangItem ,
2480
- substs : impl IntoIterator < Item : Into < ty:: GenericArg < ' tcx > > > ,
2481
- ) -> ty:: TraitRef < ' tcx > {
2482
- let trait_def_id = self . require_lang_item ( trait_lang_item, Some ( self . span ) ) ;
2483
- self . tcx . mk_trait_ref ( trait_def_id, substs)
2484
- }
2485
2467
}
2486
2468
2487
2469
/// Parameter attributes that can only be determined by examining the body of a function instead
You can’t perform that action at this time.
0 commit comments