From d809d6ee899154a0ba99e6159ba9d54330ebf0ac Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sat, 10 Aug 2019 16:47:27 +0200 Subject: [PATCH 1/2] Derive Debug for CrateInfo --- src/librustc_codegen_ssa/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/librustc_codegen_ssa/lib.rs b/src/librustc_codegen_ssa/lib.rs index 0e3c3a77b28f4..68640abb0433e 100644 --- a/src/librustc_codegen_ssa/lib.rs +++ b/src/librustc_codegen_ssa/lib.rs @@ -128,6 +128,7 @@ bitflags::bitflags! { } /// Misc info we load from metadata to persist beyond the tcx. +#[derive(Debug)] pub struct CrateInfo { pub panic_runtime: Option, pub compiler_builtins: Option, From b204232fd35ff021b4c71fb4d307731014e0345b Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sun, 11 Aug 2019 16:51:36 +0200 Subject: [PATCH 2/2] Derive Debug for NativeLibrary and NativeLibraryKind --- src/librustc/middle/cstore.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc/middle/cstore.rs b/src/librustc/middle/cstore.rs index 5a580dfa420b3..d37b2367ae77e 100644 --- a/src/librustc/middle/cstore.rs +++ b/src/librustc/middle/cstore.rs @@ -87,7 +87,7 @@ pub enum LinkagePreference { RequireStatic, } -#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, +#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, RustcEncodable, RustcDecodable, HashStable)] pub enum NativeLibraryKind { /// native static library (.a archive) @@ -100,7 +100,7 @@ pub enum NativeLibraryKind { NativeUnknown, } -#[derive(Clone, RustcEncodable, RustcDecodable, HashStable)] +#[derive(Clone, Debug, RustcEncodable, RustcDecodable, HashStable)] pub struct NativeLibrary { pub kind: NativeLibraryKind, pub name: Option,