diff options
Diffstat (limited to 'docs/dev/style.md')
-rw-r--r-- | docs/dev/style.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/dev/style.md b/docs/dev/style.md index 7c47c26b2..078c478d4 100644 --- a/docs/dev/style.md +++ b/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. | 159 | Do not use `#[should_panic]` tests. |
160 | Instead, explicitly check for `None`, `Err`, etc. | 160 | Instead, explicitly check for `None`, `Err`, etc. |
161 | 161 | ||
162 | **Rationale:**a `#[should_panic]` is a tool for library authors, to makes sure that API does not fail silently, when misused. | 162 | **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. | 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. | 164 | Panic messages in the logs from the `#[should_panic]` tests are confusing. |
165 | 165 | ||