Rollup merge of #63441 - bjorn3:patch-1, r=Mark-Simulacrum
Derive Debug for CrateInfo
This commit is contained in:
@@ -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>,
|
||||||
|
|||||||
@@ -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>,
|
||||||
|
|||||||
Reference in New Issue
Block a user