Skip to content

Commit

Permalink
Change comment on TyCtxt::mk_ty_from_kind
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors authored Jul 5, 2023
1 parent 12138b8 commit 6ce1c89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_middle/src/ty/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit 6ce1c89

Please sign in to comment.