ICE when trying to compile code with contracts: No HirId for DefId #136683
Labels
C-bug
Category: This is a bug.
F-contracts
`#![feature(contracts)]`
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.
This is from the CI run over at #136578:
Code
See the diff over at #136578 (the ICE can be found in the CI logs). The problem, however, appears to arise with any contract that I attempt to add to the library. Even the requires clause that involves no function calls like
#[cfg_attr(not(bootstrap), core::contracts::requires(align > 0 && (align & (align - 1)) == 0))]
triggers this ICE.
Meta
rustc --version --verbose
:Error output
Backtrace
@rustbot label: +F-contracts
The text was updated successfully, but these errors were encountered: