about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2023-04-25 17:48:19 +0000
committerMaybe Waffle <waffle.lapkin@gmail.com>2023-04-25 17:48:19 +0000
commitd9f842a4dca03b33403b3bdd31c13c892a123e70 (patch)
tree14af509ed5b260975ce23220c5cf803c6ed221e5
parentc727edc0b73a78622409bbb15c8375280829f0a5 (diff)
downloadrust-d9f842a4dca03b33403b3bdd31c13c892a123e70.tar.gz
rust-d9f842a4dca03b33403b3bdd31c13c892a123e70.zip
Rename `TraitRef::{_use_mk_trait_ref_instead => _use_trait_ref_new_instead}`
-rw-r--r--compiler/rustc_middle/src/ty/sty.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_middle/src/ty/sty.rs b/compiler/rustc_middle/src/ty/sty.rs
index 8e17c143068..149fb3609aa 100644
--- a/compiler/rustc_middle/src/ty/sty.rs
+++ b/compiler/rustc_middle/src/ty/sty.rs
@@ -821,8 +821,8 @@ pub struct TraitRef<'tcx> {
     pub def_id: DefId,
     pub substs: SubstsRef<'tcx>,
     /// This field exists to prevent the creation of `TraitRef` without
-    /// calling [TyCtxt::mk_trait_ref].
-    pub(super) _use_mk_trait_ref_instead: (),
+    /// calling [`TraitRef::new`].
+    pub(super) _use_trait_ref_new_instead: (),
 }
 
 impl<'tcx> TraitRef<'tcx> {
@@ -832,7 +832,7 @@ impl<'tcx> TraitRef<'tcx> {
         substs: impl IntoIterator<Item: Into<GenericArg<'tcx>>>,
     ) -> Self {
         let substs = tcx.check_and_mk_substs(trait_def_id, substs);
-        Self { def_id: trait_def_id, substs, _use_mk_trait_ref_instead: () }
+        Self { def_id: trait_def_id, substs, _use_trait_ref_new_instead: () }
     }
 
     pub fn from_lang_item(