Expand description
This module provides the functionality needed to convert diagnostics from
cargo check json format to the LSP diagnostic format.
StructsΒ§
- Mapped
Rust πDiagnostic - SubDiagnostic π
EnumsΒ§
FunctionsΒ§
- clippy_
code_ πdescription - diagnostic_
related_ πinformation - Converts a secondary Rust span to a LSP related information
- diagnostic_
severity π - Determines the LSP severity from a diagnostic
- is_
dummy_ πmacro_ file - Checks whether a file name is from macro invocation and does not refer to an actual file.
- location π
- Converts a Rust span to a LSP location
- map_
rust_ πchild_ diagnostic - map_
rust_ πdiagnostic_ to_ lsp - Converts a Rust root diagnostic to LSP form
- position π
- primary_
location π - Extracts a suitable βprimaryβ location from a rustc diagnostic.
- resolve_
path π - Resolves paths applying any matching path prefix remappings, and then joining the path to the workspace root.
- rustc_
code_ πdescription