From 0f2dc1aa4c295ba5d03890a1ba328c97872a2255 Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Thu, 7 Aug 2025 03:18:36 +0000 Subject: [PATCH] Remove note on accepted invalid `should_panic` syntax We had left a note about the fact that we accepted syntax for the `should_panic` attribute that was invalid. We no longer do, so let's remove that note. --- src/attributes/testing.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/attributes/testing.md b/src/attributes/testing.md index 93fd7de05..8fbceddab 100644 --- a/src/attributes/testing.md +++ b/src/attributes/testing.md @@ -161,9 +161,6 @@ The `should_panic` attribute has one of the following forms: > fn mytest() { panic!("error: some message, and more"); } > ``` - > [!NOTE] - > `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. - r[attributes.testing.should_panic.allowed-positions] The `should_panic` attribute may only be applied to functions annotated with the `test` attribute.