Repository navigation
None in rustc_mir_build/src/builder/matches/mod.rs #136852
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-never_patterns`#![feature(never_patterns)]``#![feature(never_patterns)]`I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Activity
- addedC-bugCategory: This is a bug.Category: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
on Feb 11, 2025 - addedneeds-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triagingThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triagingF-never_patterns`#![feature(never_patterns)]``#![feature(never_patterns)]`
on Feb 11, 2025 ICE is also found with other type definitions, such as struct:
#![feature(never_patterns)] #![allow(incomplete_features)] struct S; fn by_value(s: S) { || { let ! = s; }; } fn main() {}
This even crashes in cases with no type error:
#![feature(never_patterns)] #![allow(incomplete_features)] enum Void {} fn by_value(s: Void) { || { let ! = s; }; } fn main() {}
- removedneeds-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triagingThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
on Feb 12, 2025 - added 2 commits that reference this issue
on Feb 13, 2025 - added a commit that references this issue
on Feb 13, 2025
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-never_patterns`#![feature(never_patterns)]``#![feature(never_patterns)]`I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Meta
rustc --version --verbose:Error output
Command:
rustc --edition=2021This also ICEs with
--edition=2024Backtrace
Notes
compiler/rustc_mir_build/src/builder/matches/mod.rs Line-2099rust/compiler/rustc_mir_build/src/builder/matches/mod.rs
Lines 2094 to 2103 in 6171d94
@rustbot label +F-never_patterns