From ab42b1699c114dc5ff4adaed1472ca6dbe0ca323 Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Thu, 12 Jun 2014 16:34:27 -0400 Subject: [PATCH] Use --parse-only by default with rustc. This reverts a previous change to use --no-trans by default when calling the Rust compiler. --no-trans is a more useful mode, but doesn't quite fit with Syntastic's model. Instead, --parse-only will check that the syntax of a Rust file is valid and it will always work. --parse-only is a more useful *default* mode. --- syntax_checkers/rust/rustc.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax_checkers/rust/rustc.vim b/syntax_checkers/rust/rustc.vim index ae378cb19..8f510bdb6 100644 --- a/syntax_checkers/rust/rustc.vim +++ b/syntax_checkers/rust/rustc.vim @@ -19,7 +19,7 @@ let s:save_cpo = &cpo set cpo&vim function! SyntaxCheckers_rust_rustc_GetLocList() dict - let makeprg = self.makeprgBuild({ 'args': '--no-trans' }) + let makeprg = self.makeprgBuild({ 'args': '--parse-only' }) let errorformat = \ '%E%f:%l:%c: %\d%#:%\d%# %.%\{-}error:%.%\{-} %m,' .