Skip to content

Commit e24ed3d

Browse files
committed
rewrite region constraints to smaller universes
1 parent 9517863 commit e24ed3d

2 files changed

Lines changed: 834 additions & 1 deletion

File tree

compiler/rustc_type_ir/src/inherent.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,15 @@ pub trait GenericArg<I: Interner<GenericArg = Self>>:
400400

401401
#[rust_analyzer::prefer_underscore_import]
402402
pub trait Term<I: Interner<Term = Self>>:
403-
Copy + Debug + Hash + Eq + IntoKind<Kind = ty::TermKind<I>> + TypeFoldable<I> + Relate<I>
403+
Copy
404+
+ Debug
405+
+ Hash
406+
+ Eq
407+
+ IntoKind<Kind = ty::TermKind<I>>
408+
+ TypeFoldable<I>
409+
+ Relate<I>
410+
+ From<I::Ty>
411+
+ From<I::Const>
404412
{
405413
fn as_type(&self) -> Option<I::Ty> {
406414
if let ty::TermKind::Ty(ty) = self.kind() { Some(ty) } else { None }

0 commit comments

Comments
 (0)