From b715ae5b34ddb74a5f537707a370fc70deac04a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Engdeg=C3=A5rd?= Date: Sun, 1 Mar 2026 15:13:42 +0100 Subject: [PATCH] ; Explain some details about rust-panic rule (bug#80403) --- lisp/progmodes/compile.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 9c805b96b43..27b2e59409d 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -405,8 +405,12 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1)) (ruby-Test::Unit "^ [[ ]?\\([^ (].*\\):\\([1-9][0-9]*\\)\\(\\]\\)?:in " 1 2) + ;; This must precede the `gnu' rule or the latter would match instead. (rust-panic - ,(rx bol (opt " ") + ,(rx bol + ;; The test runner cargo-nextest indents its output by four spaces + ;; by default, although that can be disabled. + (opt " ") "thread '" (+ nonl) "' " (? "(" (+ digit) ") ") (group-n 1 "panicked" ) " at" " " (group-n 2 (+ nonl)) ; file