Constrain Interners to be Sized
This commit is contained in:
parent
38c522c693
commit
0b7dda9afd
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ pub use ty_info::*;
|
|||
/// Needed so we can use #[derive(HashStable_Generic)]
|
||||
pub trait HashStableContext {}
|
||||
|
||||
pub trait Interner {
|
||||
pub trait Interner: Sized {
|
||||
type AdtDef: 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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue