diff options
author | Ryan Cumming <[email protected]> | 2019-06-30 03:13:56 +0100 |
---|---|---|
committer | Ryan Cumming <[email protected]> | 2019-06-30 03:13:56 +0100 |
commit | 067ca38ecb737734404e9d778f76d116e00d955d (patch) | |
tree | f72dab64a69a1fe10dfe6e227853fd26a3cd8292 /editors/code/src | |
parent | 27df89f47d5f0a6e8e62d517d98dda854efabc34 (diff) |
Consider unreachable code to be unnecessary in VSC
This adds `unreachable_code` to the list of diagnostic codes we map to
`Unnecessary` in Visual Studio Code. This is consistent with what the
TypeScript language server does.
Diffstat (limited to 'editors/code/src')
-rw-r--r-- | editors/code/src/utils/diagnostics/rust.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editors/code/src/utils/diagnostics/rust.ts b/editors/code/src/utils/diagnostics/rust.ts index d16576eb1..5e2d6b6ff 100644 --- a/editors/code/src/utils/diagnostics/rust.ts +++ b/editors/code/src/utils/diagnostics/rust.ts | |||
@@ -103,6 +103,7 @@ function isUnusedOrUnnecessary(rd: RustDiagnostic): boolean { | |||
103 | return [ | 103 | return [ |
104 | 'dead_code', | 104 | 'dead_code', |
105 | 'unknown_lints', | 105 | 'unknown_lints', |
106 | 'unreachable_code', | ||
106 | 'unused_attributes', | 107 | 'unused_attributes', |
107 | 'unused_imports', | 108 | 'unused_imports', |
108 | 'unused_macros', | 109 | 'unused_macros', |