Skip to content

Commit c805a38

Browse files
Rollup merge of rust-lang#63441 - bjorn3:patch-1, r=Mark-Simulacrum
Derive Debug for CrateInfo
2 parents 8122a01 + b204232 commit c805a38

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/librustc/middle/cstore.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pub enum LinkagePreference {
8787
RequireStatic,
8888
}
8989

90-
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
90+
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash,
9191
RustcEncodable, RustcDecodable, HashStable)]
9292
pub enum NativeLibraryKind {
9393
/// native static library (.a archive)
@@ -100,7 +100,7 @@ pub enum NativeLibraryKind {
100100
NativeUnknown,
101101
}
102102

103-
#[derive(Clone, RustcEncodable, RustcDecodable, HashStable)]
103+
#[derive(Clone, Debug, RustcEncodable, RustcDecodable, HashStable)]
104104
pub struct NativeLibrary {
105105
pub kind: NativeLibraryKind,
106106
pub name: Option<Symbol>,

src/librustc_codegen_ssa/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ bitflags::bitflags! {
128128
}
129129

130130
/// Misc info we load from metadata to persist beyond the tcx.
131+
#[derive(Debug)]
131132
pub struct CrateInfo {
132133
pub panic_runtime: Option<CrateNum>,
133134
pub compiler_builtins: Option<CrateNum>,

0 commit comments

Comments
 (0)