From 6ce1c89d64f2f997fc030cf33fcabf8960d012a2 Mon Sep 17 00:00:00 2001 From: Michael Goulet Date: Wed, 5 Jul 2023 13:58:04 -0700 Subject: [PATCH] Change comment on `TyCtxt::mk_ty_from_kind` --- compiler/rustc_middle/src/ty/context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs index a9a255badee4..035e978f64cc 100644 --- a/compiler/rustc_middle/src/ty/context.rs +++ b/compiler/rustc_middle/src/ty/context.rs @@ -1649,7 +1649,7 @@ pub fn mk_ct_from_kind(self, kind: ty::ConstKind<'tcx>, ty: Ty<'tcx>) -> Const<' 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> {