From 2590331c09c7b07b5befd2ab666020e752ad85a1 Mon Sep 17 00:00:00 2001 From: Tim Brooks Date: Thu, 12 Jun 2014 02:34:22 +0100 Subject: [PATCH] Add syntastic_rustc_config_file handling Add args from g:syntastic_rustc_config_file to rustc command. --- syntax_checkers/rust/rustc.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/syntax_checkers/rust/rustc.vim b/syntax_checkers/rust/rustc.vim index 97ef66a04..23f2ca257 100644 --- a/syntax_checkers/rust/rustc.vim +++ b/syntax_checkers/rust/rustc.vim @@ -18,8 +18,14 @@ let g:loaded_syntastic_rust_rustc_checker = 1 let s:save_cpo = &cpo set cpo&vim +if !exists('g:syntastic_rustc_config_file') + let g:syntastic_rustc_config_file = '.syntastic_rustc_config' +endif + function! SyntaxCheckers_rust_rustc_GetLocList() dict - let makeprg = self.makeprgBuild({ 'args_after': '--no-trans' }) + let makeprg = self.makeprgBuild({ + \ 'args': syntastic#c#ReadConfig(g:syntastic_rustc_config_file), + \ 'args_after': '--no-trans' }) let errorformat = \ '%E%f:%l:%c: %\d%#:%\d%# %.%\{-}error:%.%\{-} %m,' .