Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Introduce tcx.mk()
  • Loading branch information
WaffleLapkin committed Mar 15, 2023
commit e21f6c8678b7e3178de15a04ea05db337b733953
3 changes: 3 additions & 0 deletions compiler/rustc_middle/src/ty/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#![allow(rustc::usage_of_ty_tykind)]

pub mod mk;
pub mod tls;

use crate::arena::Arena;
Expand Down Expand Up @@ -1561,6 +1562,8 @@ macro_rules! direct_interners {
// Functions with a `mk_` prefix are intended for use outside this file and
// crate. Functions with an `intern_` prefix are intended for use within this
// file only, and have a corresponding `mk_` function.
//
// FIXME(waffle): move `mk_region`, `mk_const_internal` to `.mk()`
direct_interners! {
region: intern_region(RegionKind<'tcx>): Region -> Region<'tcx>,
const_: intern_const(ConstData<'tcx>): Const -> Const<'tcx>,
Expand Down
Loading