File tree 1 file changed +11
-1
lines changed 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -752,11 +752,21 @@ This is written mainly to be used as `end-of-defun-function' for Rust."
752
752
" Specifications for matching errors in rustc invocations.
753
753
See `compilation-error-regexp-alist for help on their format." )
754
754
755
+ ; ; Match test run failures and panics during compilation as
756
+ ; ; compilation warnings
757
+ (defvar cargo-compilation-regexps
758
+ '(" ^\\ s-+thread '[^']+' panicked at \\ ('[^']+', \\ ([^:]+\\ ):\\ ([0-9]+\\ )\\ )" 2 3 nil nil 1 )
759
+ " Specifications for matching panics in cargo test invocations.
760
+ See `compilation-error-regexp-alist for help on their format." )
761
+
755
762
(eval-after-load 'compile
756
763
'(progn
757
764
(add-to-list 'compilation-error-regexp-alist-alist
758
765
(cons 'rustc rustc-compilation-regexps))
759
- (add-to-list 'compilation-error-regexp-alist 'rustc )))
766
+ (add-to-list 'compilation-error-regexp-alist 'rustc )
767
+ (add-to-list 'compilation-error-regexp-alist-alist
768
+ (cons 'cargo cargo-compilation-regexps))
769
+ (add-to-list 'compilation-error-regexp-alist 'cargo )))
760
770
761
771
; ;; Functions to submit (parts of) buffers to the rust playpen, for
762
772
; ;; sharing.
You can’t perform that action at this time.
0 commit comments