branch: elpa/rust-mode
commit 31b8453aa5831b775d4dfcb8f957f9c16d67151e
Author: Niko Matsakis <[email protected]>
Commit: Niko Matsakis <[email protected]>
update to include line number and column information
---
rust-mode.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/rust-mode.el b/rust-mode.el
index cbf170e..360943d 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -1585,10 +1585,12 @@ This is written mainly to be used as
`end-of-defun-function' for Rust."
See `compilation-error-regexp-alist' for help on their format.")
(defvar rustc-colon-compilation-regexps
- (let ((file "\\([^\n]+\\)"))
- (let ((re (concat "^ *::: " file ; ::: foo/bar.rs
+ (let ((file "\\([^\n]+\\)")
+ (start-line "\\([0-9]+\\)")
+ (start-col "\\([0-9]+\\)"))
+ (let ((re (concat "^ *::: " file ":" start-line ":" start-col ; :::
foo/bar.rs
)))
- (cons re '(1))))
+ (cons re '(1 2 3))))
"Specifications for matching `:::` hints in rustc invocations.
See `compilation-error-regexp-alist' for help on their format.")