about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-07-05 13:58:04 -0700
committerGitHub <noreply@github.com>2023-07-05 13:58:04 -0700
commit6ce1c89d64f2f997fc030cf33fcabf8960d012a2 (patch)
tree6ab8b9d645fedb47a13eb43b90c2743614084a4b
parent12138b8e5e840b7446a0893e3cb02a9c05095930 (diff)
downloadrust-6ce1c89d64f2f997fc030cf33fcabf8960d012a2.tar.gz
rust-6ce1c89d64f2f997fc030cf33fcabf8960d012a2.zip
Change comment on `TyCtxt::mk_ty_from_kind`
-rw-r--r--compiler/rustc_middle/src/ty/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs
index a9a255badee..035e978f64c 100644
--- a/compiler/rustc_middle/src/ty/context.rs
+++ b/compiler/rustc_middle/src/ty/context.rs
@@ -1649,7 +1649,7 @@ impl<'tcx> TyCtxt<'tcx> {
         self.intern_const(ty::ConstData { kind, ty })
     }
 
-    // Avoid this in favour of more specific `mk_*` methods, where possible.
+    // Avoid this in favour of more specific `Ty::new_*` methods, where possible.
     #[allow(rustc::usage_of_ty_tykind)]
     #[inline]
     pub fn mk_ty_from_kind(self, st: TyKind<'tcx>) -> Ty<'tcx> {