mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Remove unused panic_runtime field from CrateInfo
This commit is contained in:
parent
323a74779f
commit
5aaa953dcc
@ -774,7 +774,6 @@ impl CrateInfo {
|
|||||||
let mut info = CrateInfo {
|
let mut info = CrateInfo {
|
||||||
linker_info,
|
linker_info,
|
||||||
local_crate_name,
|
local_crate_name,
|
||||||
panic_runtime: None,
|
|
||||||
compiler_builtins: None,
|
compiler_builtins: None,
|
||||||
profiler_runtime: None,
|
profiler_runtime: None,
|
||||||
is_no_builtins: Default::default(),
|
is_no_builtins: Default::default(),
|
||||||
@ -803,9 +802,6 @@ impl CrateInfo {
|
|||||||
.insert(cnum, tcx.native_libraries(cnum).iter().map(Into::into).collect());
|
.insert(cnum, tcx.native_libraries(cnum).iter().map(Into::into).collect());
|
||||||
info.crate_name.insert(cnum, tcx.crate_name(cnum).to_string());
|
info.crate_name.insert(cnum, tcx.crate_name(cnum).to_string());
|
||||||
info.used_crate_source.insert(cnum, tcx.used_crate_source(cnum));
|
info.used_crate_source.insert(cnum, tcx.used_crate_source(cnum));
|
||||||
if tcx.is_panic_runtime(cnum) {
|
|
||||||
info.panic_runtime = Some(cnum);
|
|
||||||
}
|
|
||||||
if tcx.is_compiler_builtins(cnum) {
|
if tcx.is_compiler_builtins(cnum) {
|
||||||
info.compiler_builtins = Some(cnum);
|
info.compiler_builtins = Some(cnum);
|
||||||
}
|
}
|
||||||
|
@ -137,7 +137,6 @@ impl From<&cstore::NativeLib> for NativeLib {
|
|||||||
pub struct CrateInfo {
|
pub struct CrateInfo {
|
||||||
pub linker_info: back::linker::LinkerInfo,
|
pub linker_info: back::linker::LinkerInfo,
|
||||||
pub local_crate_name: Symbol,
|
pub local_crate_name: Symbol,
|
||||||
pub panic_runtime: Option<CrateNum>,
|
|
||||||
pub compiler_builtins: Option<CrateNum>,
|
pub compiler_builtins: Option<CrateNum>,
|
||||||
pub profiler_runtime: Option<CrateNum>,
|
pub profiler_runtime: Option<CrateNum>,
|
||||||
pub is_no_builtins: FxHashSet<CrateNum>,
|
pub is_no_builtins: FxHashSet<CrateNum>,
|
||||||
|
Loading…
Reference in New Issue
Block a user