Derive HashStable for PanicStrategy.

This commit is contained in:
Camille GILLOT 2019-11-09 23:32:17 +01:00
parent 375a761303
commit 79bde05b45
3 changed files with 3 additions and 9 deletions

View File

@ -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
});

View File

@ -10,7 +10,6 @@ mod caching_source_map_view;
mod hcx;
mod impls_hir;
mod impls_misc;
mod impls_ty;
mod impls_syntax;

View File

@ -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,