-
-
Notifications
You must be signed in to change notification settings - Fork 15.6k
rustc_splat is not feature gated in functions without bodies #162639
Copy link
Copy link
Open
Labels
A-attributesArea: Attributes (`#[…]`, `#![…]`)Area: Attributes (`#[…]`, `#![…]`)C-bugCategory: This is a bug.Category: This is a bug.F-splat`#![feature(splat)]` https://github.com/rust-lang/rust/issues/153629`#![feature(splat)]` https://github.com/rust-lang/rust/issues/153629I-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.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Description
Activity
Metadata
Metadata
Assignees
Labels
A-attributesArea: Attributes (`#[…]`, `#![…]`)Area: Attributes (`#[…]`, `#![…]`)C-bugCategory: This is a bug.Category: This is a bug.F-splat`#![feature(splat)]` https://github.com/rust-lang/rust/issues/153629`#![feature(splat)]` https://github.com/rust-lang/rust/issues/153629I-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.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
I tried this code:
I expected to see this happen: compilation fails because
rustc_splatis unstableInstead, this happened: the code compiles
Meta
rustc --version --verbose: