Closed
Description
Code
This happened when I ran
rustdoc src/lib.rs
in bevy/crates/bevy_ecs
, that can be found here: https://github.com/bevyengine/bevy/blob/aefe1f0739bb395d2454e05a1a812acab767892c/crates/bevy_ecs/src/lib.rs
In order to attempt to narrow it down, I ran rustdoc
on every source file in bevy_ecs
.
Only other file that caused the ICE is: src/system/mod.rs
, which can be found here: https://github.com/bevyengine/bevy/blob/daa1b0209ae4c46cdda61b2263e2cfab88625937/crates/bevy_ecs/src/system/mod.rs
Meta
rustc --version --verbose
:
rustc 1.68.0 (2c8cc3432 2023-03-06)
binary: rustc
commit-hash: 2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74
commit-date: 2023-03-06
host: x86_64-pc-windows-msvc
release: 1.68.0
LLVM version: 15.0.6
Note that this happens on nightly
as well, but the location of the panic is different.
Error output
thread 'rustc' panicked at 'internal error: entered unreachable code', compiler\rustc_resolve\src\lib.rs:1958:67
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
note: rustc 1.68.0 (2c8cc3432 2023-03-06) running on x86_64-pc-windows-msvc
query stack during panic:
end of query stack
error: aborting due to 55 previous errors
Some errors have detailed explanations: E0412, E0432, E0433, E0603.
For more information about an error, try `rustc --explain E0412`.
Here's a backtrace with RUST_BACKTRACE=full
.
Backtrace
stack backtrace:
0: 0x7ffc60899d02 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h792a027c2747e99d
1: 0x7ffc608d570b - core::fmt::write::h5d1fd4698cef7a98
2: 0x7ffc6088cdfa - <std::io::IoSlice as core::fmt::Debug>::fmt::hba64fac32bc54252
3: 0x7ffc60899a4b - std::sys::common::alloc::realloc_fallback::hfe62d187ace61bcd
4: 0x7ffc6089d3f9 - std::panicking::default_hook::hc7b7ee9dc8a166a2
5: 0x7ffc6089d07b - std::panicking::default_hook::hc7b7ee9dc8a166a2
6: 0x7ffc4f37ec34 - rustc_driver[6fce53b951639747]::describe_lints
7: 0x7ffc6089dd5f - std::panicking::rust_panic_with_hook::h80ad08272951bba3
8: 0x7ffc6089da7b - <std::panicking::begin_panic_handler::StrPanicPayload as core::panic::BoxMeUp>::get::h87fe0efc42413a8e
9: 0x7ffc6089a9ff - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h792a027c2747e99d
10: 0x7ffc6089d770 - rust_begin_unwind
11: 0x7ffc6090b3d5 - core::panicking::panic_fmt::hce24276b766fe029
12: 0x7ffc6090b48c - core::panicking::panic::h2f164b064a86475f
13: 0x7ffc4fdf4066 - <rustc_resolve[a6df4b0daa4644d]::Resolver>::resolve_rustdoc_path
14: 0x7ff7070c044a - <unknown>
15: 0x7ff70717730e - <unknown>
16: 0x7ff707176aac - <unknown>
17: 0x7ff7070c17a4 - <unknown>
18: 0x7ff707173bac - <unknown>
19: 0x7ff7070be423 - <unknown>
20: 0x7ff707171d87 - <unknown>
21: 0x7ff706f50aa8 - <unknown>
22: 0x7ff706e03182 - <unknown>
23: 0x7ff706f65c06 - <unknown>
24: 0x7ff706ebb4fb - <unknown>
25: 0x7ffc608b021c - std::sys::windows::thread::Thread::new::he1a8155b1a8cc29c
26: 0x7ffcf77b26bd - BaseThreadInitThunk
27: 0x7ffcf8aaa9f8 - RtlUserThreadStart
Recreate steps
gh repo clone bevyengine/bevy
cd bevy/crates/bevy_ecs
rustdoc src/lib.rs
Metadata
Metadata
Assignees
Labels
Area: Name/path resolution done by `rustc_resolve` specificallyCategory: This is a bug.Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Relevant to the compiler team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.