This repository was archived by the owner on May 28, 2025. It is now read-only.
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> {
22612261 self . mk_substs_from_iter ( iter:: once ( self_ty. into ( ) ) . chain ( rest) )
22622262 }
22632263
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-
22732264 pub fn mk_alias_ty (
22742265 self ,
22752266 def_id : DefId ,
@@ -2473,15 +2464,6 @@ impl<'tcx> TyCtxtAt<'tcx> {
24732464 pub fn ty_error_with_message ( self , msg : & str ) -> Ty < ' tcx > {
24742465 self . tcx . ty_error_with_message ( self . span , msg)
24752466 }
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- }
24852467}
24862468
24872469/// 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