Skip to content

Commit 4af4b37

Browse files
committed
Rollup merge of rust-lang#21624 - emanueLczirai:vim_syntastic_fix, r=sanxiyn
when saving .rs files under vim do not fail to run the syntax checker error: Unrecognized option: 'parse-only'. due to this commit 953f294 which removed the deprecated flag --parse-only
2 parents 36d0e90 + 59c2de1 commit 4af4b37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/etc/vim/syntax_checkers/rust/rustc.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ let s:save_cpo = &cpo
1414
set cpo&vim
1515

1616
function! SyntaxCheckers_rust_rustc_GetLocList() dict
17-
let makeprg = self.makeprgBuild({ 'args': '--parse-only' })
17+
let makeprg = self.makeprgBuild({ 'args': '-Zparse-only' })
1818

1919
let errorformat =
2020
\ '%E%f:%l:%c: %\d%#:%\d%# %.%\{-}error:%.%\{-} %m,' .

0 commit comments

Comments
 (0)