Change comment on TyCtxt::mk_ty_from_kind

This commit is contained in:
Michael Goulet 2023-07-05 13:58:04 -07:00 committed by GitHub
parent 12138b8e5e
commit 6ce1c89d64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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> {