From 7e2533f00e7b8e2f0b1f81a124263fdfb58cdc84 Mon Sep 17 00:00:00 2001 From: Nathan Moreau Date: Fri, 18 Oct 2019 16:24:31 +0200 Subject: Fix rustc-compilation-regexps: match error messages with dashes. (#331) --- rust-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust-mode.el') diff --git a/rust-mode.el b/rust-mode.el index 71e9458..7b14d04 100644 --- a/rust-mode.el +++ b/rust-mode.el @@ -1640,8 +1640,8 @@ Return the created process." (defvar rustc-compilation-regexps (let ((file "\\([^\n]+\\)") (start-line "\\([0-9]+\\)") - (start-col "\\([0-9]+\\)")) - (let ((re (concat "^\\(?:error\\|\\(warning\\)\\)[^-]+--> \\(" file ":" start-line ":" start-col "\\)"))) + (start-col "\\([0-9]+\\)")) + (let ((re (concat "^\\(?:error\\|\\(warning\\)\\)[^\0]+?--> \\(" file ":" start-line ":" start-col "\\)"))) (cons re '(3 4 5 (1) 2)))) "Specifications for matching errors in rustc invocations. See `compilation-error-regexp-alist' for help on their format.") -- cgit v1.2.3