File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 8
8
if exists (" g:loaded_syntastic_rust_cargo_checker" )
9
9
finish
10
10
endif
11
+
11
12
let g: loaded_syntastic_rust_cargo_checker = 1
12
13
14
+ " Force syntastic to call cargo without a specific file name
13
15
let g: syntastic_rust_cargo_fname = " "
14
16
15
17
let s: save_cpo = &cpo
16
18
set cpo &vim
17
19
18
20
function ! SyntaxCheckers_rust_cargo_IsAvailable () dict
19
- return executable (self .getExec ())
21
+ return executable (self .getExec ()) &&
22
+ \ syntastic#util#versionIsAtLeast (self .getVersion (), [0 , 16 , 0 ])
20
23
endfunction
21
24
22
25
function ! SyntaxCheckers_rust_cargo_GetLocList () dict
@@ -26,8 +29,7 @@ function! SyntaxCheckers_rust_cargo_GetLocList() dict
26
29
let errorformat =
27
30
\ ' %-G,' .
28
31
\ ' %-Gerror: aborting %.%#,' .
29
- \ ' %-Gerror: Could not compile %.%#,' .
30
- \ ' %-Gwarning: the option `Z` is unstable %.%#,'
32
+ \ ' %-Gerror: Could not compile %.%#,'
31
33
32
34
" Meaningful lines (errors, notes, warnings, contextual information)
33
35
let errorformat .=
You can’t perform that action at this time.
0 commit comments