summaryrefslogtreecommitdiff
path: root/rust-mode.el
diff options
context:
space:
mode:
authorNathan Moreau <nathan.moreau@m4x.org>2020-04-12 17:42:15 +0200
committerGitHub <noreply@github.com>2020-04-12 17:42:15 +0200
commite04e485b9f74b0fcb52816fb01845af083213bdf (patch)
tree1b8a4d5c457d3c99e41665e048129ca2acd1eed7 /rust-mode.el
parente8345f6aa7f1e33a5bdc8e64d092b32c8a856239 (diff)
downloadrust-mode-e04e485b9f74b0fcb52816fb01845af083213bdf.tar.gz
rustc-compilation-regexps: handle `note` case as compilation-info.
Diffstat (limited to 'rust-mode.el')
-rw-r--r--rust-mode.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust-mode.el b/rust-mode.el
index e7ef1ef..f91d5ff 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -1831,9 +1831,9 @@ Return the created process."
(let ((file "\\([^\n]+\\)")
(start-line "\\([0-9]+\\)")
(start-col "\\([0-9]+\\)"))
- (let ((re (concat "^\\(?:error\\|\\(warning\\)\\)[^\0]+?--> \\("
+ (let ((re (concat "^\\(?:error\\|\\(warning\\)\\|\\(note\\)\\)[^\0]+?--> \\("
file ":" start-line ":" start-col "\\)")))
- (cons re '(3 4 5 (1) 2))))
+ (cons re '(4 5 6 (1 . 2) 3))))
"Specifications for matching errors in rustc invocations.
See `compilation-error-regexp-alist' for help on their format.")