Reject dangling attributes in where clauses#155078
Reject dangling attributes in where clauses#155078rust-bors[bot] merged 1 commit intorust-lang:mainfrom
Conversation
|
The parser was modified, potentially altering the grammar of (stable) Rust cc @fmease |
|
rustbot has assigned @petrochenkov. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
r=me after adding a test case for |
|
Reminder, once the PR becomes ready for a review, use |
|
Could you merge the test cases into the same test file, and squash commits? |
409a902 to
3c6cf27
Compare
Done |
|
@rustbot ready |
|
@bors r+ |
…ng-attrs, r=petrochenkov Reject dangling attributes in where clauses Report `attribute without where predicates` for trailing outer attributes in where clauses. Closes rust-lang#155073 .
…uwer Rollup of 6 pull requests Successful merges: - #152901 (Introduce a `#[diagnostic::on_unknown]` attribute) - #155078 (Reject dangling attributes in where clauses) - #154449 (Invert dependency between `rustc_errors` and `rustc_abi`.) - #154646 (Add suggestion to `.to_owned()` used on `Cow` when borrowing) - #154993 (compiletest: pass -Zunstable-options for unpretty and no-codegen paths) - #155097 (Make `rustc_attr_parsing::SharedContext::emit_lint` take a `MultiSpan` instead of a `Span`)
|
@rust-timer build 3e4669e |
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (3e4669e): comparison URL. Overall result: ❌ regressions - no action neededBenchmarking means the PR may be perf-sensitive. It's automatically marked not fit for rolling up. Overriding is possible but disadvised: it risks changing compiler perf. @bors rollup=never Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 8.8%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -4.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary -0.1%, secondary -0.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 491.232s -> 489.372s (-0.38%) |
…uwer Rollup of 6 pull requests Successful merges: - rust-lang/rust#152901 (Introduce a `#[diagnostic::on_unknown]` attribute) - rust-lang/rust#155078 (Reject dangling attributes in where clauses) - rust-lang/rust#154449 (Invert dependency between `rustc_errors` and `rustc_abi`.) - rust-lang/rust#154646 (Add suggestion to `.to_owned()` used on `Cow` when borrowing) - rust-lang/rust#154993 (compiletest: pass -Zunstable-options for unpretty and no-codegen paths) - rust-lang/rust#155097 (Make `rustc_attr_parsing::SharedContext::emit_lint` take a `MultiSpan` instead of a `Span`)
…uwer Rollup of 6 pull requests Successful merges: - rust-lang/rust#152901 (Introduce a `#[diagnostic::on_unknown]` attribute) - rust-lang/rust#155078 (Reject dangling attributes in where clauses) - rust-lang/rust#154449 (Invert dependency between `rustc_errors` and `rustc_abi`.) - rust-lang/rust#154646 (Add suggestion to `.to_owned()` used on `Cow` when borrowing) - rust-lang/rust#154993 (compiletest: pass -Zunstable-options for unpretty and no-codegen paths) - rust-lang/rust#155097 (Make `rustc_attr_parsing::SharedContext::emit_lint` take a `MultiSpan` instead of a `Span`)
Report
attribute without where predicatesfor trailing outer attributes in where clauses.Closes #155073 .