Constrain Interners to be Sized
This commit is contained in:
parent
38c522c693
commit
0b7dda9afd
@ -28,7 +28,7 @@
|
|||||||
/// Needed so we can use #[derive(HashStable_Generic)]
|
/// Needed so we can use #[derive(HashStable_Generic)]
|
||||||
pub trait HashStableContext {}
|
pub trait HashStableContext {}
|
||||||
|
|
||||||
pub trait Interner {
|
pub trait Interner: Sized {
|
||||||
type AdtDef: Clone + Debug + Hash + PartialEq + Eq + PartialOrd + Ord;
|
type AdtDef: Clone + Debug + Hash + PartialEq + Eq + PartialOrd + Ord;
|
||||||
type SubstsRef: Clone + Debug + Hash + PartialEq + Eq + PartialOrd + Ord;
|
type SubstsRef: Clone + Debug + Hash + PartialEq + Eq + PartialOrd + Ord;
|
||||||
type DefId: Clone + Debug + Hash + PartialEq + Eq + PartialOrd + Ord;
|
type DefId: Clone + Debug + Hash + PartialEq + Eq + PartialOrd + Ord;
|
||||||
|
Loading…
Reference in New Issue
Block a user