Skip to main content

DEPRECATED_DIAGNOSTIC_CODE

Constant DEPRECATED_DIAGNOSTIC_CODE 

Source
pub const DEPRECATED_DIAGNOSTIC_CODE: &str = "deprecated-package";
Expand description

Stable [Diagnostic::code] set on the package-level deprecation diagnostic (issue #205).

Mirrors UNSATISFIABLE_DIAGNOSTIC_CODE — lets build_replacement_action’s stashed CodeAction::data name it so the deps-lsp handler’s diagnostic-binding step can attach the “Replace with X” quickfix to the diagnostic it resolves.