rustc panics with &'static [u8] and ouroboros self_referencing #113997
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
While trying to check my code with miri, I had to replace occurrences of
std::fs::File
with&'static [u8]
(and useinclude_bytes!
).The following code triggers a rustc panic. The same code with
std::fs::File
compiles fine.stderr/stdout combined (was too long for GitHub, so attaching): output.txt
The same error occurs with stable:
note: rustc 1.71.0 (8ede3aae2 2023-07-12) running on x86_64-apple-darwin
Cargo.toml:
Cargo.lock is attached.
The text was updated successfully, but these errors were encountered: