Skip to content

Commit 73b3afd

Browse files
committed
Recognize compiler notes as "info" messages
Otherwise they will be matched as errors by less-specific regexps built into compilation mode.
1 parent c0e3878 commit 73b3afd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rust-mode.el

+3-3
Original file line numberDiff line numberDiff line change
@@ -1162,11 +1162,11 @@ This is written mainly to be used as `end-of-defun-function' for Rust."
11621162
(start-col "\\([0-9]+\\)")
11631163
(end-line "\\([0-9]+\\)")
11641164
(end-col "\\([0-9]+\\)")
1165-
(error-or-warning "\\(?:[Ee]rror\\|\\([Ww]arning\\)\\)"))
1165+
(msg-type "\\(?:[Ee]rror\\|\\([Ww]arning\\)\\|\\([Nn]ote\\)\\)"))
11661166
(let ((re (concat "^" file ":" start-line ":" start-col
11671167
": " end-line ":" end-col
1168-
" \\(?:[Ee]rror\\|\\([Ww]arning\\)\\):")))
1169-
(cons re '(1 (2 . 4) (3 . 5) (6)))))
1168+
" " msg-type ":")))
1169+
(cons re '(1 (2 . 4) (3 . 5) (6 . 7)))))
11701170
"Specifications for matching errors in rustc invocations.
11711171
See `compilation-error-regexp-alist' for help on their format.")
11721172

0 commit comments

Comments
 (0)