Skip to content

ICE: build cache corruption #49663

Closed
@elinorbgr

Description

@elinorbgr

Sorry, the testcase is not exactly simple, but:

diff --git a/wayland-server/src/lib.rs b/wayland-server/src/lib.rs
index 8685ab04..f83909dd 100644
--- a/wayland-server/src/lib.rs
+++ b/wayland-server/src/lib.rs
@@ -1,3 +1,5 @@
+#![warn(missing_docs)]
+
 #[macro_use]
 extern crate bitflags;
 extern crate libc;
  • re-run cargo +beta test --all --all-features
  • ICE :
error: internal compiler error: librustc/ty/context.rs:998: tried to cache DefId(20/0:393 ~ wayland_server[52b1]::generated[0]::c_interfaces[0]::wl_surface_interface[0]), but was already existing as AllocId(
    451
)
  • run cargo clean
  • re-run cargo +beta test --all --all-features
  • builds and run fine
$ rustc +beta --version
rustc 1.26.0-beta.1 (18aaa1d2c 2018-04-03)
$cargo +beta --version
cargo 1.26.0-beta (d63299b6e 2018-03-28)

Does not reproduce on stable 1.25, reproduces on nightly as well.

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions