Skip to content

Commit f1abff0

Browse files
committed
Check that Syntastic is new enough
Closes #280.
1 parent 7e1e2d2 commit f1abff0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

syntax_checkers/rust/cargo.vim

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ let s:save_cpo = &cpo
1818
set cpo&vim
1919

2020
function! SyntaxCheckers_rust_cargo_IsAvailable() dict
21+
if exists("*syntastic#util#getVersion")
22+
echom "rust.vim: version of Syntastic is too old. Needs to be at least 3.7.0."
23+
return v:false
24+
endif
25+
2126
return executable(self.getExec()) &&
2227
\ syntastic#util#versionIsAtLeast(self.getVersion(), [0, 16, 0])
2328
endfunction

0 commit comments

Comments
 (0)