diff --git a/compiler/rustc_metadata/src/creader.rs b/compiler/rustc_metadata/src/creader.rs index 784fd4b3a3b..1dbfba7e504 100644 --- a/compiler/rustc_metadata/src/creader.rs +++ b/compiler/rustc_metadata/src/creader.rs @@ -167,7 +167,6 @@ pub fn from_tcx_mut(tcx: TyCtxt<'_>) -> FreezeWriteGuard<'_, CStore> { fn intern_stable_crate_id(&mut self, root: &CrateRoot) -> Result { assert_eq!(self.metas.len(), self.stable_crate_ids.len()); - let num = CrateNum::new(self.stable_crate_ids.len()); if let Some(&existing) = self.stable_crate_ids.get(&root.stable_crate_id()) { // Check for (potential) conflicts with the local crate if existing == LOCAL_CRATE { @@ -181,6 +180,7 @@ fn intern_stable_crate_id(&mut self, root: &CrateRoot) -> Result