about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorAlan Egerton <eggyal@gmail.com>2023-02-09 19:16:38 +0000
committerAlan Egerton <eggyal@gmail.com>2023-02-13 10:24:48 +0000
commit0b7dda9afd0dcf85d6b2ccdc864eb9f73596efcc (patch)
tree8a6609f4e025c9e798b360230354389586d3b82f /compiler
parent38c522c693db60df3f4b474061a7a93ffe1cd9ad (diff)
downloadrust-0b7dda9afd0dcf85d6b2ccdc864eb9f73596efcc.tar.gz
rust-0b7dda9afd0dcf85d6b2ccdc864eb9f73596efcc.zip
Constrain Interners to be Sized
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_type_ir/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_type_ir/src/lib.rs b/compiler/rustc_type_ir/src/lib.rs
index 2922c4af948..0dc813b75f6 100644
--- a/compiler/rustc_type_ir/src/lib.rs
+++ b/compiler/rustc_type_ir/src/lib.rs
@@ -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;