File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 88if exists (" g:loaded_syntastic_rust_cargo_checker" )
99 finish
1010endif
11+
1112let g: loaded_syntastic_rust_cargo_checker = 1
1213
14+ " Force syntastic to call cargo without a specific file name
1315let g: syntastic_rust_cargo_fname = " "
1416
1517let s: save_cpo = &cpo
1618set cpo &vim
1719
1820function ! SyntaxCheckers_rust_cargo_IsAvailable () dict
19- return executable (self .getExec ())
21+ return executable (self .getExec ()) &&
22+ \ syntastic#util#versionIsAtLeast (self .getVersion (), [0 , 16 , 0 ])
2023endfunction
2124
2225function ! SyntaxCheckers_rust_cargo_GetLocList () dict
@@ -26,8 +29,7 @@ function! SyntaxCheckers_rust_cargo_GetLocList() dict
2629 let errorformat =
2730 \ ' %-G,' .
2831 \ ' %-Gerror: aborting %.%#,' .
29- \ ' %-Gerror: Could not compile %.%#,' .
30- \ ' %-Gwarning: the option `Z` is unstable %.%#,'
32+ \ ' %-Gerror: Could not compile %.%#,'
3133
3234 " Meaningful lines (errors, notes, warnings, contextual information)
3335 let errorformat .=
You can’t perform that action at this time.
0 commit comments