Skip to content

Commit 6ce1c89

Browse files
authoredJul 5, 2023
Change comment on TyCtxt::mk_ty_from_kind
1 parent 12138b8 commit 6ce1c89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎compiler/rustc_middle/src/ty/context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1649,7 +1649,7 @@ impl<'tcx> TyCtxt<'tcx> {
16491649
self.intern_const(ty::ConstData { kind, ty })
16501650
}
16511651

1652-
// Avoid this in favour of more specific `mk_*` methods, where possible.
1652+
// Avoid this in favour of more specific `Ty::new_*` methods, where possible.
16531653
#[allow(rustc::usage_of_ty_tykind)]
16541654
#[inline]
16551655
pub fn mk_ty_from_kind(self, st: TyKind<'tcx>) -> Ty<'tcx> {

0 commit comments

Comments
 (0)