From ce7a27fffc0829c8112578f9d99fcbef0b173553 Mon Sep 17 00:00:00 2001 From: Jonas Westlund Date: Mon, 4 Feb 2019 23:50:12 +0100 Subject: Add compilation mode warning face --- rust-mode.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rust-mode.el b/rust-mode.el index a433d8d..fb9832a 100644 --- a/rust-mode.el +++ b/rust-mode.el @@ -1594,14 +1594,14 @@ This is written mainly to be used as `end-of-defun-function' for Rust." (when rust-format-on-save (unless (executable-find rust-rustfmt-bin) (error "Could not locate executable \"%s\"" rust-rustfmt-bin)))) - + (defvar rustc-compilation-regexps (let ((file "\\([^\n]+\\)") (start-line "\\([0-9]+\\)") (start-col "\\([0-9]+\\)")) - (let ((re (concat "^ *--> " file ":" start-line ":" start-col ; --> 1:2:3 + (let ((re (concat "^\\(?:error\\|\\(warning\\)\\)[^-]+--> \\(" file ":" start-line ":" start-col "\\)" ; --> 1:2:3 ))) - (cons re '(1 2 3)))) + (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 From 63deaf385a632bb6e289ebd99ebd4dc136621084 Mon Sep 17 00:00:00 2001 From: Jonas Westlund Date: Tue, 5 Feb 2019 00:28:20 +0100 Subject: Remove old comment --- rust-mode.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rust-mode.el b/rust-mode.el index fb9832a..aac4def 100644 --- a/rust-mode.el +++ b/rust-mode.el @@ -1599,8 +1599,7 @@ This is written mainly to be used as `end-of-defun-function' for Rust." (let ((file "\\([^\n]+\\)") (start-line "\\([0-9]+\\)") (start-col "\\([0-9]+\\)")) - (let ((re (concat "^\\(?:error\\|\\(warning\\)\\)[^-]+--> \\(" file ":" start-line ":" start-col "\\)" ; --> 1:2:3 - ))) + (let ((re (concat "^\\(?:error\\|\\(warning\\)\\)[^-]+--> \\(" 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