X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_metadata%2Fsrc%2Frmeta%2Fencoder.rs;h=9336add96929c236682647fc8d71362aa2bdfa80;hb=76c500ec6c36fa8287317d6dc342a64c079301de;hp=61265d7204c0b2773814a709f72fa4272597c8f4;hpb=cc07061190713059dc533f68a450799dbfb70c5e;p=rust.git diff --git a/compiler/rustc_metadata/src/rmeta/encoder.rs b/compiler/rustc_metadata/src/rmeta/encoder.rs index 61265d7204c..9336add9692 100644 --- a/compiler/rustc_metadata/src/rmeta/encoder.rs +++ b/compiler/rustc_metadata/src/rmeta/encoder.rs @@ -653,6 +653,7 @@ fn encode_crate_root(&mut self) -> Lazy> { triple: tcx.sess.opts.target_triple.clone(), hash: tcx.crate_hash(LOCAL_CRATE), disambiguator: tcx.sess.local_crate_disambiguator(), + stable_crate_id: tcx.def_path_hash(LOCAL_CRATE.as_def_id()).stable_crate_id(), panic_strategy: tcx.sess.panic_strategy(), edition: tcx.sess.edition(), has_global_allocator: tcx.has_global_allocator(LOCAL_CRATE),