Remove unused panic_runtime field from CrateInfo

This commit is contained in:
bjorn3 2021-07-06 17:38:27 +02:00
parent 323a74779f
commit 5aaa953dcc
2 changed files with 0 additions and 5 deletions

View File

@ -774,7 +774,6 @@ pub fn new(tcx: TyCtxt<'_>, target_cpu: String) -> CrateInfo {
let mut info = CrateInfo {
linker_info,
local_crate_name,
panic_runtime: None,
compiler_builtins: None,
profiler_runtime: None,
is_no_builtins: Default::default(),
@ -803,9 +802,6 @@ pub fn new(tcx: TyCtxt<'_>, target_cpu: String) -> CrateInfo {
.insert(cnum, tcx.native_libraries(cnum).iter().map(Into::into).collect());
info.crate_name.insert(cnum, tcx.crate_name(cnum).to_string());
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) {
info.compiler_builtins = Some(cnum);
}

View File

@ -137,7 +137,6 @@ fn from(lib: &cstore::NativeLib) -> Self {
pub struct CrateInfo {
pub linker_info: back::linker::LinkerInfo,
pub local_crate_name: Symbol,
pub panic_runtime: Option<CrateNum>,
pub compiler_builtins: Option<CrateNum>,
pub profiler_runtime: Option<CrateNum>,
pub is_no_builtins: FxHashSet<CrateNum>,