mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 04:55:22 +03:00
Change comment on TyCtxt::mk_ty_from_kind
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user