We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
TyCtxt::mk_ty_from_kind
1 parent 12138b8 commit 6ce1c89Copy full SHA for 6ce1c89
compiler/rustc_middle/src/ty/context.rs
@@ -1649,7 +1649,7 @@ impl<'tcx> TyCtxt<'tcx> {
1649
self.intern_const(ty::ConstData { kind, ty })
1650
}
1651
1652
- // Avoid this in favour of more specific `mk_*` methods, where possible.
+ // Avoid this in favour of more specific `Ty::new_*` methods, where possible.
1653
#[allow(rustc::usage_of_ty_tykind)]
1654
#[inline]
1655
pub fn mk_ty_from_kind(self, st: TyKind<'tcx>) -> Ty<'tcx> {
0 commit comments