diff options
| author | Alan Egerton <eggyal@gmail.com> | 2023-02-09 19:16:38 +0000 | 
|---|---|---|
| committer | Alan Egerton <eggyal@gmail.com> | 2023-02-13 10:24:48 +0000 | 
| commit | 0b7dda9afd0dcf85d6b2ccdc864eb9f73596efcc (patch) | |
| tree | 8a6609f4e025c9e798b360230354389586d3b82f /compiler | |
| parent | 38c522c693db60df3f4b474061a7a93ffe1cd9ad (diff) | |
| download | rust-0b7dda9afd0dcf85d6b2ccdc864eb9f73596efcc.tar.gz rust-0b7dda9afd0dcf85d6b2ccdc864eb9f73596efcc.zip | |
Constrain Interners to be Sized
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_type_ir/src/lib.rs | 2 | 
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; | 
