Always invoke statement attributes on the statement itself#79326
Always invoke statement attributes on the statement itself#79326bors merged 3 commits intorust-lang:masterfrom
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
There was a problem hiding this comment.
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.