diff options
| author | cydparser <cydparser@gmail.com> | 2025-06-20 18:45:58 -0700 |
|---|---|---|
| committer | cydparser <cydparser@gmail.com> | 2025-06-20 18:45:58 -0700 |
| commit | 7b5e5e3370a02e183a2cbd1244181008d185c2e9 (patch) | |
| tree | 22f52122c4930c8ce9cec2a7b59b2e2579926c23 /rust-compile.el | |
| parent | 8cfcdd166b6c34b0eac3bc69b0141678a48db33d (diff) | |
| download | rust-mode-7b5e5e3370a02e183a2cbd1244181008d185c2e9.tar.gz | |
Add regexp for stack backtrace locations
Diffstat (limited to 'rust-compile.el')
| -rw-r--r-- | rust-compile.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rust-compile.el b/rust-compile.el index abeb753..cbdf43a 100644 --- a/rust-compile.el +++ b/rust-compile.el @@ -28,6 +28,12 @@ See `compilation-error-regexp-alist' for help on their format.") "Specifications for matching `:::` hints in rustc invocations. See `compilation-error-regexp-alist' for help on their format.") +(defvar rustc-backtrace-compilation-regexps + (let ((re (concat "^ +at " rustc-compilation-location))) + (cons re '(2 3 4 0 1))) + "Specifications for matching stack backtraces in rustc invocations. +See `compilation-error-regexp-alist' for help on their format.") + (defvar rustc-refs-compilation-regexps (let ((re "^\\([0-9]+\\)[[:space:]]*|")) (cons re '(nil 1 nil 0 1))) @@ -86,6 +92,9 @@ the compilation window until the top of the error is visible." (cons 'rustc-colon rustc-colon-compilation-regexps)) (add-to-list 'compilation-error-regexp-alist 'rustc-colon) (add-to-list 'compilation-error-regexp-alist-alist + (cons 'rustc-backtrace rustc-backtrace-compilation-regexps)) + (add-to-list 'compilation-error-regexp-alist 'rustc-backtrace) + (add-to-list 'compilation-error-regexp-alist-alist (cons 'cargo cargo-compilation-regexps)) (add-to-list 'compilation-error-regexp-alist-alist (cons 'rustc-panics rustc-panics-compilation-regexps)) |
