Drop metadata_encoding_version.
This commit is contained in:
parent
d8d6a5aee0
commit
f4eb0170aa
@ -14,6 +14,7 @@ extern crate rustc_fs_util;
|
|||||||
extern crate rustc_hir;
|
extern crate rustc_hir;
|
||||||
extern crate rustc_incremental;
|
extern crate rustc_incremental;
|
||||||
extern crate rustc_index;
|
extern crate rustc_index;
|
||||||
|
extern crate rustc_metadata;
|
||||||
extern crate rustc_session;
|
extern crate rustc_session;
|
||||||
extern crate rustc_span;
|
extern crate rustc_span;
|
||||||
extern crate rustc_target;
|
extern crate rustc_target;
|
||||||
|
@ -10,7 +10,7 @@ pub(crate) fn write_metadata<O: WriteMetadata>(tcx: TyCtxt<'_>, object: &mut O)
|
|||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
|
|
||||||
let metadata = tcx.encode_metadata();
|
let metadata = tcx.encode_metadata();
|
||||||
let mut compressed = tcx.metadata_encoding_version();
|
let mut compressed = rustc_metadata::METADATA_HEADER.to_vec();
|
||||||
FrameEncoder::new(&mut compressed).write_all(&metadata.raw_data).unwrap();
|
FrameEncoder::new(&mut compressed).write_all(&metadata.raw_data).unwrap();
|
||||||
|
|
||||||
object.add_rustc_section(
|
object.add_rustc_section(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user