File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/rustc_middle/src/ty Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -821,8 +821,8 @@ pub struct TraitRef<'tcx> {
821821 pub def_id : DefId ,
822822 pub substs : SubstsRef < ' tcx > ,
823823 /// This field exists to prevent the creation of `TraitRef` without
824- /// calling [TyCtxt::mk_trait_ref ].
825- pub ( super ) _use_mk_trait_ref_instead : ( ) ,
824+ /// calling [`TraitRef::new` ].
825+ pub ( super ) _use_trait_ref_new_instead : ( ) ,
826826}
827827
828828impl < ' tcx > TraitRef < ' tcx > {
@@ -832,7 +832,7 @@ impl<'tcx> TraitRef<'tcx> {
832832 substs : impl IntoIterator < Item : Into < GenericArg < ' tcx > > > ,
833833 ) -> Self {
834834 let substs = tcx. check_and_mk_substs ( trait_def_id, substs) ;
835- Self { def_id : trait_def_id, substs, _use_mk_trait_ref_instead : ( ) }
835+ Self { def_id : trait_def_id, substs, _use_trait_ref_new_instead : ( ) }
836836 }
837837
838838 pub fn from_lang_item (
You can’t perform that action at this time.
0 commit comments