File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1594,14 +1594,14 @@ This is written mainly to be used as `end-of-defun-function' for Rust."
1594
1594
(when rust-format-on-save
1595
1595
(unless (executable-find rust-rustfmt-bin)
1596
1596
(error " Could not locate executable \" %s \" " rust-rustfmt-bin))))
1597
-
1597
+
1598
1598
(defvar rustc-compilation-regexps
1599
1599
(let ((file " \\ ([^\n ]+\\ )" )
1600
1600
(start-line " \\ ([0-9]+\\ )" )
1601
1601
(start-col " \\ ([0-9]+\\ )" ))
1602
- (let ((re (concat " ^ *--> " file " :" start-line " :" start-col ; --> 1:2:3
1602
+ (let ((re (concat " ^\\ (?:error \\ | \\ (warning \\ ) \\ )[^-]+--> \\ ( " file " :" start-line " :" start-col " \\ ) " ; --> 1:2:3
1603
1603
)))
1604
- (cons re '(1 2 3 ))))
1604
+ (cons re '(3 4 5 ( 1 ) 2 ))))
1605
1605
" Specifications for matching errors in rustc invocations.
1606
1606
See `compilation-error-regexp-alist' for help on their format." )
1607
1607
You can’t perform that action at this time.
0 commit comments