Skip to content

Commit 233b213

Browse files
Move predicate, region, and const stuff into their own modules in middle
1 parent 5ad7454 commit 233b213

File tree

5 files changed

+1491
-1456
lines changed

5 files changed

+1491
-1456
lines changed

compiler/rustc_middle/src/ty/consts.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use rustc_hir as hir;
77
use rustc_hir::def::{DefKind, Res};
88
use rustc_hir::def_id::LocalDefId;
99
use rustc_macros::HashStable;
10+
use rustc_type_ir::ConstKind as IrConstKind;
1011
use rustc_type_ir::{ConstTy, IntoKind, TypeFlags, WithCachedTypeInfo};
1112

1213
mod int;
@@ -19,7 +20,7 @@ use rustc_span::Span;
1920
use rustc_span::DUMMY_SP;
2021
pub use valtree::*;
2122

22-
use super::sty::ConstKind;
23+
pub type ConstKind<'tcx> = IrConstKind<TyCtxt<'tcx>>;
2324

2425
/// Use this rather than `ConstData`, whenever possible.
2526
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, HashStable)]

0 commit comments

Comments
 (0)