Skip to content

Commit 30d1dac

Browse files
committed
Recognize compiler help and notes as "info" messages
Otherwise they will be matched as errors by less-specific regexps built into compilation mode.
1 parent c801dda commit 30d1dac

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
@@ -1173,11 +1173,11 @@ This is written mainly to be used as `end-of-defun-function' for Rust."
11731173
(start-col "\\([0-9]+\\)")
11741174
(end-line "\\([0-9]+\\)")
11751175
(end-col "\\([0-9]+\\)")
1176-
(error-or-warning "\\(?:[Ee]rror\\|\\([Ww]arning\\)\\)"))
1176+
(msg-type "\\(?:[Ee]rror\\|\\([Ww]arning\\)\\|\\([Nn]ote\\|[Hh]elp\\)\\)"))
11771177
(let ((re (concat "^" file ":" start-line ":" start-col
11781178
": " end-line ":" end-col
1179-
" " error-or-warning ":")))
1180-
(cons re '(1 (2 . 4) (3 . 5) (6)))))
1179+
" " msg-type ":")))
1180+
(cons re '(1 (2 . 4) (3 . 5) (6 . 7)))))
11811181
"Specifications for matching errors in rustc invocations.
11821182
See `compilation-error-regexp-alist' for help on their format.")
11831183

0 commit comments

Comments
 (0)