Skip to content

Commit e9d5767

Browse files
author
Jameson Ernst
committed
Show more note messages
Filter out more rustc/cargo noise
1 parent f6cbca3 commit e9d5767

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

compiler/cargo.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ endfunction
3131
CompilerSet errorformat+=
3232
\%-G%\\s%#Downloading%.%#,
3333
\%-G%\\s%#Compiling%.%#,
34-
\%-G%\\s%#Finished%.%#
34+
\%-G%\\s%#Finished%.%#,
35+
\%-G%\\s%#error:\ Could\ not\ compile\ %.%#,
36+
\%-G%\\s%#To\ learn\ more\\,%.%#
3537

3638
let s:local_manifest = findfile(s:cargo_manifest_name, '.;')
3739
if s:local_manifest != ''

compiler/rustc.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,15 @@ CompilerSet errorformat=
3232

3333
" New errorformat (after nightly 2016/08/10)
3434
CompilerSet errorformat+=
35+
\%-G,
36+
\%-Gerror:\ aborting\ %.%#,
37+
\%-Gerror:\ Could\ not\ compile\ %.%#,
3538
\%Eerror:\ %m,
3639
\%Eerror[E%n]:\ %m,
3740
\%Wwarning:\ %m,
3841
\%Inote:\ %m,
3942
\%C\ %#-->\ %f:%l:%c,
40-
\%C%.%#
43+
\%C%*[0-9\ ]\\|%.%#
4144

4245
let &cpo = s:cpo_save
4346
unlet s:cpo_save

0 commit comments

Comments
 (0)