Skip to content

Commit 31b8453

Browse files
committed
update to include line number and column information
1 parent 3ced187 commit 31b8453

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

rust-mode.el

+5-3
Original file line numberDiff line numberDiff line change
@@ -1585,10 +1585,12 @@ This is written mainly to be used as `end-of-defun-function' for Rust."
15851585
See `compilation-error-regexp-alist' for help on their format.")
15861586

15871587
(defvar rustc-colon-compilation-regexps
1588-
(let ((file "\\([^\n]+\\)"))
1589-
(let ((re (concat "^ *::: " file ; ::: foo/bar.rs
1588+
(let ((file "\\([^\n]+\\)")
1589+
(start-line "\\([0-9]+\\)")
1590+
(start-col "\\([0-9]+\\)"))
1591+
(let ((re (concat "^ *::: " file ":" start-line ":" start-col ; ::: foo/bar.rs
15901592
)))
1591-
(cons re '(1))))
1593+
(cons re '(1 2 3))))
15921594
"Specifications for matching `:::` hints in rustc invocations.
15931595
See `compilation-error-regexp-alist' for help on their format.")
15941596

0 commit comments

Comments
 (0)