Skip to content

Commit e21f6c8

Browse files
committed
Introduce tcx.mk()
1 parent e4b9f86 commit e21f6c8

File tree

2 files changed

+754
-0
lines changed

2 files changed

+754
-0
lines changed

compiler/rustc_middle/src/ty/context.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
33
#![allow(rustc::usage_of_ty_tykind)]
44

5+
pub mod mk;
56
pub mod tls;
67

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

0 commit comments

Comments
 (0)