Skip to content

Commit 9b6bf76

Browse files
authored
Merge pull request #1955 from rust-lang/TC/strict-should_panic
Remove note on accepted invalid `should_panic` syntax
2 parents b50aeb1 + 0f2dc1a commit 9b6bf76

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/attributes/testing.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,6 @@ The `should_panic` attribute has one of the following forms:
161161
> fn mytest() { panic!("error: some message, and more"); }
162162
> ```
163163
164-
> [!NOTE]
165-
> `rustc` currently accepts the [MetaListNameValueStr] form with invalid syntax between the parentheses and emits a future-compatibility warning. This may become a hard error in the future.
166-
167164
r[attributes.testing.should_panic.allowed-positions]
168165
The `should_panic` attribute may only be applied to functions annotated with the `test` attribute.
169166

0 commit comments

Comments
 (0)