branch: elpa/rust-mode
commit d2e57a93743efc73928b6dfdc5e7574af938923b
Author: Niko Matsakis <[email protected]>
Commit: Niko Matsakis <[email protected]>

    fix regex to account for `[E123]`
---
 rust-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rust-mode.el b/rust-mode.el
index b0f8379..711bf20 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -1413,7 +1413,7 @@ See `compilation-error-regexp-alist' for help on their 
format.")
         (let ((start-of-error
                (save-excursion
                  (beginning-of-line)
-                 (while (not (looking-at "^[a-z]+:"))
+                 (while (not (looking-at "^[a-z]+:\\|^[a-z]+\\[E[0-9]+\\]:"))
                    (forward-line -1))
                  (point))))
           (set-window-start (selected-window) start-of-error))))))

Reply via email to