diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2023-05-17 10:30:14 +0000 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2023-06-01 14:45:18 +0000 |
| commit | 4f83717cf768adb0b0dfe23b8eecf2b259eec354 (patch) | |
| tree | bac79441d2e21eda2a702697484bba96d7cacf7e /compiler/rustc_middle/src/mir/syntax.rs | |
| parent | 642c92e63008ffb49f6ad8344e07bfa7d5b0d9bb (diff) | |
| download | rust-4f83717cf768adb0b0dfe23b8eecf2b259eec354.tar.gz rust-4f83717cf768adb0b0dfe23b8eecf2b259eec354.zip | |
Use translatable diagnostics in `rustc_const_eval`
Diffstat (limited to 'compiler/rustc_middle/src/mir/syntax.rs')
| -rw-r--r-- | compiler/rustc_middle/src/mir/syntax.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/mir/syntax.rs b/compiler/rustc_middle/src/mir/syntax.rs index 3e474c1d377..83f8f00d72c 100644 --- a/compiler/rustc_middle/src/mir/syntax.rs +++ b/compiler/rustc_middle/src/mir/syntax.rs @@ -801,7 +801,8 @@ pub enum UnwindAction { } /// Information about an assertion failure. -#[derive(Clone, TyEncodable, TyDecodable, Hash, HashStable, PartialEq, TypeFoldable, TypeVisitable)] +#[derive(Clone, Hash, HashStable, PartialEq, Debug)] +#[derive(TyEncodable, TyDecodable, TypeFoldable, TypeVisitable)] pub enum AssertKind<O> { BoundsCheck { len: O, index: O }, Overflow(BinOp, O, O), |
