Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rustic-compile.el
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
"Create hyperlink in compilation buffers for file paths preceded by ':::'.")

(defvar rustic-compilation-panic
(let ((panic "thread '[^']+' panicked at ")
(let ((panic "thread '[^']+'\\(?: ([0-9]+)\\)? panicked at ")
(file "\\([^\n]+\\)")
(start-line "\\([0-9]+\\)")
(start-col "\\([0-9]+\\)"))
Expand Down
6 changes: 6 additions & 0 deletions test/rustic-compilation-error-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,10 @@
(should (string= default-directory test-workspace))
(should-not (get-text-property (point) 'compilation-message)))))))

(ert-deftest rustic-compilation-panic-regex ()
(let* ((cases '("thread 'crate::module::submodule::tests::test' (294268) panicked at lib/rs/mylib/src/module.rs:1282:76:"
"thread 'crate::module::submodule::tests::test' panicked at lib/rs/mylib/src/module.rs:1282:76:")))
(dolist (s cases)
(should (string-match (car rustic-compilation-panic) s)))))

(provide 'rustic-compilation-error-tests)
Loading