-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Always invoke statement attributes on the statement itself #79326
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
In #78296 (comment) I meant including the
I think they should parse if the |
This is preparation for PR rust-lang#78296, which will require us to handle statement items in addition to normal items.
@petrochenkov: Splitting out just the I could try to add a workaround, but it would be immediately reverted by #78296 |
49c980b
to
0850c65
Compare
@petrochenkov: I've added the |
0850c65
to
75d3673
Compare
span: $DIR/allowed-attr-stmt-expr.rs:1:1: 1:1 (#0), | ||
}, | ||
] | ||
PRINT-ATTR INPUT (DISPLAY): #[rustc_dummy] struct Other { } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the behavior that we want - the trailing semicolon is not considered part of the statement. I'll make sure that this behavior is preserved in #78296
75d3673
to
fc5ed09
Compare
I see, I assumed that you could use tokens from the item (and looks like that's what the updated PR does). |
r=me with #79326 (comment) addressed. |
Annotatable::Stmt
in some builtin macros
I updated the PR description to better reflect the changes |
fc5ed09
to
9c9f406
Compare
@bors r=petrochenkov |
📌 Commit 9c9f406 has been approved by |
⌛ Testing commit 9c9f406 with merge 22f0c711908e699e465a9a34980861cbce4902dd... |
💔 Test failed - checks-actions |
Failed due an old version of We need to bump to a version of |
@SimonSapin: It looks like |
The easiest is probably to use a more recent diff --git src/tools/cargotest/main.rs src/tools/cargotest/main.rs
index 8aabe077cf1..dc09e7ffc1d 100644
--- src/tools/cargotest/main.rs
+++ src/tools/cargotest/main.rs
@@ -43,7 +43,7 @@ struct Test {
Test {
name: "servo",
repo: "https://github.com/servo/servo",
- sha: "caac107ae8145ef2fd20365e2b8fadaf09c2eb3b",
+ sha: "90e8e19f5e53fe35ab15e372c359ba681c8bc843",
lock: None,
// Only test Stylo a.k.a. Quantum CSS, the parts of Servo going into Firefox.
// This takes much less time to build than all of Servo and supports stable Rust. |
@petrochenkov: I've adjusted the pretty-print hack, which makes |
@bors r+ |
📌 Commit baefba8 has been approved by |
☀️ Test successful - checks-actions |
This is preparation for PR #78296, which will require us to handle
statement items in addition to normal items.