summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoload/ale/handlers/rust.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/autoload/ale/handlers/rust.vim b/autoload/ale/handlers/rust.vim
index 895c7878..60656577 100644
--- a/autoload/ale/handlers/rust.vim
+++ b/autoload/ale/handlers/rust.vim
@@ -28,6 +28,9 @@ endfunction
function! ale#handlers#rust#HandleRustErrors(buffer, lines) abort
let l:output = []
+ " Format of JSON
+ " rustc: https://doc.rust-lang.org/rustc/json.html
+ " cargo: https://doc.rust-lang.org/cargo/reference/external-tools.html#json-messages
for l:errorline in a:lines
" ignore everything that is not JSON
if l:errorline !~# '^{'
@@ -60,6 +63,7 @@ function! ale#handlers#rust#HandleRustErrors(buffer, lines) abort
endif
if !empty(l:span)
+ " :help ale-loclist-format
let l:output_line = {
\ 'filename': l:span.file_name,
\ 'lnum': l:span.line_start,