-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ICE when using const evaluation #71202
Comments
Assigning |
Not sure how useful this is to you, but we're working on a private project and we managed to reduce the reproducer to: impl<T> DataHolder {
const ITEM_IS_COPY: [(); {
trait NotCopy {
const VALUE: bool;
}
impl<__Type: ?Sized> NotCopy for __Type {}
T::VALUE
} as usize] = [];
} This too fails with ICE. It shouldn't compile, but as long as it's raising ICEs, we believe the issue is caused by the same underlying bug. /cc @chengniansun @e45lee |
Triage: |
…as-schievink Rollup of 11 pull requests Successful merges: - rust-lang#80092 (2229: Fix issues with move closures and mutability) - rust-lang#80404 (Remove const_in_array_repeat) - rust-lang#81255 (Don't link with --export-dynamic on wasm32-wasi) - rust-lang#81480 (Add suggestion for nested fields) - rust-lang#81549 (Misc ip documentation fixes) - rust-lang#81566 (Add a test for rust-lang#71202) - rust-lang#81568 (Fix an old FIXME in redundant paren lint) - rust-lang#81571 (Fix typo in E0759) - rust-lang#81572 (Edit multiple error code Markdown files) - rust-lang#81589 (Fix small typo in string.rs) - rust-lang#81590 (Stabilize int_bits_const) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Code
Playground link
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: