summaryrefslogtreecommitdiff
path: root/rust-mode.el
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2018-03-03 11:46:59 -0500
committerNiko Matsakis <niko@alum.mit.edu>2018-03-03 11:48:22 -0500
commit31b8453aa5831b775d4dfcb8f957f9c16d67151e (patch)
treed1850e8e89c8d3f6808fcbbfc7261c62349b8edb /rust-mode.el
parent3ced18778171f622b06614310693966fcb60a15b (diff)
downloadrust-mode-31b8453aa5831b775d4dfcb8f957f9c16d67151e.tar.gz
update to include line number and column information
Diffstat (limited to 'rust-mode.el')
-rw-r--r--rust-mode.el8
1 files 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.")