diff options
| author | Rémy Rakic <remy.rakic+github@gmail.com> | 2024-06-06 20:39:54 +0000 |
|---|---|---|
| committer | Rémy Rakic <remy.rakic+github@gmail.com> | 2024-06-06 20:39:54 +0000 |
| commit | 783a411f671e1c9aa580b33b0288d9c16e094a22 (patch) | |
| tree | 3f6a7eb2f4a39e4a8c59027809fec5ccfee633a0 | |
| parent | c1ea87876f7f36bc219589a86e8643c2485a2d10 (diff) | |
| download | rust-783a411f671e1c9aa580b33b0288d9c16e094a22.tar.gz rust-783a411f671e1c9aa580b33b0288d9c16e094a22.zip | |
Revert "Rollup merge of #124099 - voidc:disallow-ambiguous-expr-attrs, r=davidtwco"
This reverts commit 57dad1d75e562ff73051c1c43b07eaf65c7dbd74, reversing changes made to 36316df9fe6c3e246153fe6e78967643cf08c148.
| -rw-r--r-- | tests/source/attrib.rs | 4 | ||||
| -rw-r--r-- | tests/target/attrib.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/source/attrib.rs b/tests/source/attrib.rs index fc13cd02b03..d45fba55224 100644 --- a/tests/source/attrib.rs +++ b/tests/source/attrib.rs @@ -214,8 +214,8 @@ type Os = NoSource; // #3313 fn stmt_expr_attributes() { let foo ; - (#[must_use] - foo) = false ; + #[must_use] + foo = false ; } // #3509 diff --git a/tests/target/attrib.rs b/tests/target/attrib.rs index 7b3309676de..7e61f68d76a 100644 --- a/tests/target/attrib.rs +++ b/tests/target/attrib.rs @@ -248,8 +248,8 @@ type Os = NoSource; // #3313 fn stmt_expr_attributes() { let foo; - (#[must_use] - foo) = false; + #[must_use] + foo = false; } // #3509 |
