summaryrefslogtreecommitdiffstats
path: root/compiler/rustc.vim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc.vim')
-rw-r--r--compiler/rustc.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/compiler/rustc.vim b/compiler/rustc.vim
index e6a53cda..5c02dd28 100644
--- a/compiler/rustc.vim
+++ b/compiler/rustc.vim
@@ -23,6 +23,7 @@ else
CompilerSet makeprg=rustc\ \%
endif
+" Old errorformat (before nightly 2016/08/10)
CompilerSet errorformat=
\%f:%l:%c:\ %t%*[^:]:\ %m,
\%f:%l:%c:\ %*\\d:%*\\d\ %t%*[^:]:\ %m,
@@ -31,6 +32,17 @@ CompilerSet errorformat=
\%-G%*[\ ]^%*[~],
\%-G%*[\ ]...
+" New errorformat (after nightly 2016/08/10)
+CompilerSet errorformat+=
+ \%-G,
+ \%-Gerror:\ aborting\ %.%#,
+ \%-Gerror:\ Could\ not\ compile\ %.%#,
+ \%Eerror:\ %m,
+ \%Eerror[E%n]:\ %m,
+ \%Wwarning:\ %m,
+ \%Inote:\ %m,
+ \%C\ %#-->\ %f:%l:%c
+
let &cpo = s:cpo_save
unlet s:cpo_save