Skip to content

Commit 6eddff4

Browse files
Uplift BoundVar
1 parent 543d9d3 commit 6eddff4

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

compiler/rustc_middle/src/ty/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ pub use self::parameterized::ParameterizedOverTcx;
9696
pub use self::rvalue_scopes::RvalueScopes;
9797
pub use self::sty::BoundRegionKind::*;
9898
pub use self::sty::{
99-
AliasTy, Article, Binder, BoundRegion, BoundRegionKind, BoundTy, BoundTyKind, BoundVar,
99+
AliasTy, Article, Binder, BoundRegion, BoundRegionKind, BoundTy, BoundTyKind,
100100
BoundVariableKind, CanonicalPolyFnSig, ClauseKind, ClosureArgs, ClosureArgsParts, ConstKind,
101101
ConstVid, CoroutineArgs, CoroutineArgsParts, EarlyParamRegion, EffectVid, ExistentialPredicate,
102102
ExistentialProjection, ExistentialTraitRef, FnSig, GenSig, InlineConstArgs,

compiler/rustc_middle/src/ty/sty.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ use std::fmt;
3232
use std::ops::{ControlFlow, Deref, Range};
3333
use ty::util::IntTypeExt;
3434

35+
use rustc_type_ir::BoundVar;
3536
use rustc_type_ir::ClauseKind as IrClauseKind;
3637
use rustc_type_ir::CollectAndApply;
3738
use rustc_type_ir::ConstKind as IrConstKind;
@@ -1639,12 +1640,6 @@ impl Atom for RegionVid {
16391640
}
16401641
}
16411642

1642-
rustc_index::newtype_index! {
1643-
#[derive(HashStable)]
1644-
#[debug_format = "{}"]
1645-
pub struct BoundVar {}
1646-
}
1647-
16481643
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, TyEncodable, TyDecodable)]
16491644
#[derive(HashStable)]
16501645
pub struct BoundTy {

compiler/rustc_type_ir/src/lib.rs

+6
Original file line numberDiff line numberDiff line change
@@ -325,3 +325,9 @@ impl UniverseIndex {
325325
self.private < other.private
326326
}
327327
}
328+
329+
rustc_index::newtype_index! {
330+
#[derive(HashStable_NoContext)]
331+
#[debug_format = "{}"]
332+
pub struct BoundVar {}
333+
}

0 commit comments

Comments
 (0)