Derive HashStable for PanicStrategy.
This commit is contained in:
parent
375a761303
commit
79bde05b45
3 changed files with 3 additions and 9 deletions
|
@ -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 hcx;
|
||||||
|
|
||||||
mod impls_hir;
|
mod impls_hir;
|
||||||
mod impls_misc;
|
|
||||||
mod impls_ty;
|
mod impls_ty;
|
||||||
mod impls_syntax;
|
mod impls_syntax;
|
||||||
|
|
||||||
|
|
|
@ -42,6 +42,8 @@ use std::path::{Path, PathBuf};
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
use crate::spec::abi::{Abi, lookup as lookup_abi};
|
use crate::spec::abi::{Abi, lookup as lookup_abi};
|
||||||
|
|
||||||
|
use rustc_macros::HashStable_Generic;
|
||||||
|
|
||||||
pub mod abi;
|
pub mod abi;
|
||||||
mod android_base;
|
mod android_base;
|
||||||
mod apple_base;
|
mod apple_base;
|
||||||
|
@ -153,7 +155,7 @@ flavor_mappings! {
|
||||||
((LinkerFlavor::Lld(LldFlavor::Link)), "lld-link"),
|
((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 {
|
pub enum PanicStrategy {
|
||||||
Unwind,
|
Unwind,
|
||||||
Abort,
|
Abort,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue