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.
This commit is contained in:
Ryan Cumming 2019-06-30 12:13:56 +10:00
parent 27df89f47d
commit 067ca38ecb

View File

@ -103,6 +103,7 @@ function isUnusedOrUnnecessary(rd: RustDiagnostic): boolean {
return [
'dead_code',
'unknown_lints',
'unreachable_code',
'unused_attributes',
'unused_imports',
'unused_macros',