-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
WCA: We permit outer attributes that don't annotate anything at the end of where clauses #155073
Copy link
Copy link
Closed
Labels
A-attributesArea: Attributes (`#[…]`, `#![…]`)Area: Attributes (`#[…]`, `#![…]`)A-parserArea: The lexing & parsing of Rust source code to an ASTArea: The lexing & parsing of Rust source code to an ASTC-bugCategory: This is a bug.Category: This is a bug.F-where_clause_attrs`#![feature(where_clause_attrs)]``#![feature(where_clause_attrs)]`S-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issueT-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.
Metadata
Metadata
Assignees
Labels
A-attributesArea: Attributes (`#[…]`, `#![…]`)Area: Attributes (`#[…]`, `#![…]`)A-parserArea: The lexing & parsing of Rust source code to an ASTArea: The lexing & parsing of Rust source code to an ASTC-bugCategory: This is a bug.Category: This is a bug.F-where_clause_attrs`#![feature(where_clause_attrs)]``#![feature(where_clause_attrs)]`S-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issueT-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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Note
Similar to #152820, this was found thanks to @matthiaskrgr fuzzing fmease/rasur versus rustc.
Downstream report: fmease/rasur#33.
We currently erroneously accept programs like the following:
Compare this with e.g.,
fn f(#[allow()]) {}where we emit expected parameter name, found)orstruct X<#[allow()]>;which we reject with attribute without generic parameters orfn f() { #[allow()] }for which we report expected statement after outer attribute and so on.