File tree 1 file changed +3
-3
lines changed
compiler/rustc_middle/src/ty
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> {
821
821
pub def_id : DefId ,
822
822
pub substs : SubstsRef < ' tcx > ,
823
823
/// 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 : ( ) ,
826
826
}
827
827
828
828
impl < ' tcx > TraitRef < ' tcx > {
@@ -832,7 +832,7 @@ impl<'tcx> TraitRef<'tcx> {
832
832
substs : impl IntoIterator < Item : Into < GenericArg < ' tcx > > > ,
833
833
) -> Self {
834
834
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 : ( ) }
836
836
}
837
837
838
838
pub fn from_lang_item (
You can’t perform that action at this time.
0 commit comments