about summary refs log tree commit diff
path: root/compiler/rustc_middle/src
diff options
context:
space:
mode:
authorAnton Golov <jesyspa@gmail.com>2021-08-20 16:25:52 +0200
committerAnton Golov <jesyspa@gmail.com>2021-08-20 16:25:52 +0200
commitb8fff9596158911ad37b60ee89ea2e2c326e1ce6 (patch)
tree7c78db734f6c5b043b281d54072321e707d4fc9a /compiler/rustc_middle/src
parentba83b39d4e53f412339f1af8c4f7cbe80eb1ee6e (diff)
Require a box expression's type to be Sized
Diffstat (limited to 'compiler/rustc_middle/src')
-rw-r--r--compiler/rustc_middle/src/traits/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/traits/mod.rs b/compiler/rustc_middle/src/traits/mod.rs
index a4a2e824637..d8d98bba3fb 100644
--- a/compiler/rustc_middle/src/traits/mod.rs
+++ b/compiler/rustc_middle/src/traits/mod.rs
@@ -225,6 +225,8 @@ pub enum ObligationCauseCode<'tcx> {
     SizedReturnType,
     /// Yield type must be `Sized`.
     SizedYieldType,
+    /// Box expression result type must be `Sized`.
+    SizedBoxType,
     /// Inline asm operand type must be `Sized`.
     InlineAsmSized,
     /// `[T, ..n]` implies that `T` must be `Copy`.