Skip to content

Commit 0b7dda9

Browse files
committed
Constrain Interners to be Sized
1 parent 38c522c commit 0b7dda9

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_type_ir/src

1 file changed

+1
-1
lines changed

compiler/rustc_type_ir/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub use ty_info::*;
2828
/// Needed so we can use #[derive(HashStable_Generic)]
2929
pub trait HashStableContext {}
3030

31-
pub trait Interner {
31+
pub trait Interner: Sized {
3232
type AdtDef: Clone + Debug + Hash + PartialEq + Eq + PartialOrd + Ord;
3333
type SubstsRef: Clone + Debug + Hash + PartialEq + Eq + PartialOrd + Ord;
3434
type DefId: Clone + Debug + Hash + PartialEq + Eq + PartialOrd + Ord;

0 commit comments

Comments
 (0)