Skip to content

Commit ce7a27f

Browse files
committed
Add compilation mode warning face
1 parent 54a9c3d commit ce7a27f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rust-mode.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,14 +1594,14 @@ This is written mainly to be used as `end-of-defun-function' for Rust."
15941594
(when rust-format-on-save
15951595
(unless (executable-find rust-rustfmt-bin)
15961596
(error "Could not locate executable \"%s\"" rust-rustfmt-bin))))
1597-
1597+
15981598
(defvar rustc-compilation-regexps
15991599
(let ((file "\\([^\n]+\\)")
16001600
(start-line "\\([0-9]+\\)")
16011601
(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
16031603
)))
1604-
(cons re '(1 2 3))))
1604+
(cons re '(3 4 5 (1) 2))))
16051605
"Specifications for matching errors in rustc invocations.
16061606
See `compilation-error-regexp-alist' for help on their format.")
16071607

0 commit comments

Comments
 (0)