Skip to content

Commit

Permalink
BE: remove DiagnosticCode::UnusedIncludeDeprecated
Browse files Browse the repository at this point in the history
Summary: Fully remove this diagnostic code, as it is not relevant any more.

Reviewed By: robertoaloi

Differential Revision: D55186599

fbshipit-source-id: c7612e2c1efc88063bedc1a37d6e2045191fed19
  • Loading branch information
alanz authored and facebook-github-bot committed Mar 27, 2024
1 parent fcbef7f commit 141baa4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions crates/ide_db/src/diagnostic_code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ pub enum DiagnosticCode {
MissingModule,
ModuleMismatch,
UnusedInclude,
UnusedIncludeDeprecated,
BoundVarInPattern,
UnusedMacro,
UnusedRecordField,
Expand Down Expand Up @@ -118,7 +117,6 @@ impl DiagnosticCode {
DiagnosticCode::Unexpected(_) => "W0018".to_string(), // unexpected_semi, unexpected_dot
DiagnosticCode::ExpressionCanBeSimplified => "W0019".to_string(), // expression-can-be-simplified
DiagnosticCode::UnusedInclude => "W0020".to_string(), // Unused include (previously known as L1500 due to a bug)
DiagnosticCode::UnusedIncludeDeprecated => "L1500".to_string(), // Unused include (deprecated, replaced by W0020)
DiagnosticCode::CannotEvaluateCTCallbacks => "W0021".to_string(),
DiagnosticCode::MeckMissingNoLinkInInitPerSuite => "W0022".to_string(),
DiagnosticCode::AtomsExhaustion => "W0023".to_string(),
Expand All @@ -134,7 +132,6 @@ impl DiagnosticCode {
DiagnosticCode::DefaultCodeForEnumIter => "DEFAULT-UNUSED-CONSTRUCTOR".to_string(),
DiagnosticCode::MissingModule => "missing_module".to_string(),
DiagnosticCode::UnusedInclude => "unused_include".to_string(),
DiagnosticCode::UnusedIncludeDeprecated => "unused_include_deprecated".to_string(),
DiagnosticCode::HeadMismatch => "head_mismatch".to_string(),
DiagnosticCode::SyntaxError => "syntax_error".to_string(),
DiagnosticCode::BoundVarInPattern => "bound_var_in_pattern".to_string(),
Expand Down

0 comments on commit 141baa4

Please sign in to comment.