Derive HashStable for PanicStrategy.
This commit is contained in:
parent
375a761303
commit
79bde05b45
@ -1,7 +0,0 @@
|
||||
//! This module contains `HashStable` implementations for various data types
|
||||
//! that don't fit into any of the other impls_xxx modules.
|
||||
|
||||
impl_stable_hash_for!(enum ::rustc_target::spec::PanicStrategy {
|
||||
Abort,
|
||||
Unwind
|
||||
});
|
@ -10,7 +10,6 @@ mod caching_source_map_view;
|
||||
mod hcx;
|
||||
|
||||
mod impls_hir;
|
||||
mod impls_misc;
|
||||
mod impls_ty;
|
||||
mod impls_syntax;
|
||||
|
||||
|
@ -42,6 +42,8 @@ use std::path::{Path, PathBuf};
|
||||
use std::str::FromStr;
|
||||
use crate::spec::abi::{Abi, lookup as lookup_abi};
|
||||
|
||||
use rustc_macros::HashStable_Generic;
|
||||
|
||||
pub mod abi;
|
||||
mod android_base;
|
||||
mod apple_base;
|
||||
@ -153,7 +155,7 @@ flavor_mappings! {
|
||||
((LinkerFlavor::Lld(LldFlavor::Link)), "lld-link"),
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Hash, RustcEncodable, RustcDecodable)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Hash, RustcEncodable, RustcDecodable, HashStable_Generic)]
|
||||
pub enum PanicStrategy {
|
||||
Unwind,
|
||||
Abort,
|
||||
|
Loading…
x
Reference in New Issue
Block a user