Rollup merge of #63441 - bjorn3:patch-1, r=Mark-Simulacrum

Derive Debug for CrateInfo
This commit is contained in:
Mark Rousskov
2019-08-11 15:18:44 -04:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -87,7 +87,7 @@ pub enum LinkagePreference {
RequireStatic, RequireStatic,
} }
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash,
RustcEncodable, RustcDecodable, HashStable)] RustcEncodable, RustcDecodable, HashStable)]
pub enum NativeLibraryKind { pub enum NativeLibraryKind {
/// native static library (.a archive) /// native static library (.a archive)
@@ -100,7 +100,7 @@ pub enum NativeLibraryKind {
NativeUnknown, NativeUnknown,
} }
#[derive(Clone, RustcEncodable, RustcDecodable, HashStable)] #[derive(Clone, Debug, RustcEncodable, RustcDecodable, HashStable)]
pub struct NativeLibrary { pub struct NativeLibrary {
pub kind: NativeLibraryKind, pub kind: NativeLibraryKind,
pub name: Option<Symbol>, pub name: Option<Symbol>,

View File

@@ -128,6 +128,7 @@ bitflags::bitflags! {
} }
/// Misc info we load from metadata to persist beyond the tcx. /// Misc info we load from metadata to persist beyond the tcx.
#[derive(Debug)]
pub struct CrateInfo { pub struct CrateInfo {
pub panic_runtime: Option<CrateNum>, pub panic_runtime: Option<CrateNum>,
pub compiler_builtins: Option<CrateNum>, pub compiler_builtins: Option<CrateNum>,