Skip to content

Commit 8f7fe4a

Browse files
committed
Remove tcx.mk_trait_ref
1 parent 46b01ab commit 8f7fe4a

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

compiler/rustc_middle/src/ty/context.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)