Skip to content

Commit d8d6a5a

Browse files
authored
Revert "Reduce the amount of untracked state in TyCtxt"
1 parent 228f1c5 commit d8d6a5a

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/allocator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub(crate) fn codegen(
1919
});
2020
if any_dynamic_crate {
2121
false
22-
} else if let Some(kind) = tcx.allocator_kind(()) {
22+
} else if let Some(kind) = tcx.allocator_kind() {
2323
codegen_inner(module, unwind_context, kind);
2424
true
2525
} else {

src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ extern crate rustc_fs_util;
1414
extern crate rustc_hir;
1515
extern crate rustc_incremental;
1616
extern crate rustc_index;
17-
extern crate rustc_metadata;
1817
extern crate rustc_session;
1918
extern crate rustc_span;
2019
extern crate rustc_target;

src/metadata.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub(crate) fn write_metadata<O: WriteMetadata>(tcx: TyCtxt<'_>, object: &mut O)
1010
use std::io::Write;
1111

1212
let metadata = tcx.encode_metadata();
13-
let mut compressed = rustc_metadata::METADATA_HEADER.to_vec();
13+
let mut compressed = tcx.metadata_encoding_version();
1414
FrameEncoder::new(&mut compressed).write_all(&metadata.raw_data).unwrap();
1515

1616
object.add_rustc_section(

0 commit comments

Comments
 (0)