We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
tcx.mk()
1 parent e4b9f86 commit e21f6c8Copy full SHA for e21f6c8
compiler/rustc_middle/src/ty/context.rs
@@ -2,6 +2,7 @@
2
3
#![allow(rustc::usage_of_ty_tykind)]
4
5
+pub mod mk;
6
pub mod tls;
7
8
use crate::arena::Arena;
@@ -1561,6 +1562,8 @@ macro_rules! direct_interners {
1561
1562
// Functions with a `mk_` prefix are intended for use outside this file and
1563
// crate. Functions with an `intern_` prefix are intended for use within this
1564
// file only, and have a corresponding `mk_` function.
1565
+//
1566
+// FIXME(waffle): move `mk_region`, `mk_const_internal` to `.mk()`
1567
direct_interners! {
1568
region: intern_region(RegionKind<'tcx>): Region -> Region<'tcx>,
1569
const_: intern_const(ConstData<'tcx>): Const -> Const<'tcx>,
0 commit comments