We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dafc57 commit 6e575d8Copy full SHA for 6e575d8
docs/dev/style.md
@@ -159,7 +159,7 @@ More than one mark per test / code branch doesn't add significantly to understan
159
Do not use `#[should_panic]` tests.
160
Instead, explicitly check for `None`, `Err`, etc.
161
162
-**Rationale:**a `#[should_panic]` is a tool for library authors, to makes sure that API does not fail silently, when misused.
+**Rationale:** `#[should_panic]` is a tool for library authors, to makes sure that API does not fail silently, when misused.
163
`rust-analyzer` is not a library, we don't need to test for API misuse, and we have to handle any user input without panics.
164
Panic messages in the logs from the `#[should_panic]` tests are confusing.
165
0 commit comments