Skip to content

Commit 5a52355

Browse files
Uplift BoundVar
1 parent adda05f commit 5a52355

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

compiler/rustc_middle/src/ty/mod.rs

Lines changed: 1 addition & 1 deletion
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, EarlyBoundRegion, EffectVid, ExistentialPredicate,
102102
ExistentialProjection, ExistentialTraitRef, FnSig, FreeRegion, GenSig, InlineConstArgs,

compiler/rustc_middle/src/ty/sty.rs

Lines changed: 1 addition & 6 deletions
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;
@@ -1617,12 +1618,6 @@ impl Atom for RegionVid {
16171618
}
16181619
}
16191620

1620-
rustc_index::newtype_index! {
1621-
#[derive(HashStable)]
1622-
#[debug_format = "{}"]
1623-
pub struct BoundVar {}
1624-
}
1625-
16261621
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, TyEncodable, TyDecodable)]
16271622
#[derive(HashStable)]
16281623
pub struct BoundTy {

compiler/rustc_type_ir/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,3 +326,9 @@ impl UniverseIndex {
326326
self.private < other.private
327327
}
328328
}
329+
330+
rustc_index::newtype_index! {
331+
#[derive(HashStable_Generic)]
332+
#[debug_format = "{}"]
333+
pub struct BoundVar {}
334+
}

0 commit comments

Comments
 (0)