Skip to content

Commit 79bde05

Browse files
committed
Derive HashStable for PanicStrategy.
1 parent 375a761 commit 79bde05

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

src/librustc/ich/impls_misc.rs

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/librustc/ich/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ mod caching_source_map_view;
1010
mod hcx;
1111

1212
mod impls_hir;
13-
mod impls_misc;
1413
mod impls_ty;
1514
mod impls_syntax;
1615

src/librustc_target/spec/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ use std::path::{Path, PathBuf};
4242
use std::str::FromStr;
4343
use crate::spec::abi::{Abi, lookup as lookup_abi};
4444

45+
use rustc_macros::HashStable_Generic;
46+
4547
pub mod abi;
4648
mod android_base;
4749
mod apple_base;
@@ -153,7 +155,7 @@ flavor_mappings! {
153155
((LinkerFlavor::Lld(LldFlavor::Link)), "lld-link"),
154156
}
155157

156-
#[derive(Clone, Copy, Debug, PartialEq, Hash, RustcEncodable, RustcDecodable)]
158+
#[derive(Clone, Copy, Debug, PartialEq, Hash, RustcEncodable, RustcDecodable, HashStable_Generic)]
157159
pub enum PanicStrategy {
158160
Unwind,
159161
Abort,

0 commit comments

Comments
 (0)