File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ See `compilation-error-regexp-alist' for help on their format.")
28
28
" Specifications for matching `:::` hints in rustc invocations.
29
29
See `compilation-error-regexp-alist' for help on their format." )
30
30
31
+ (defvar rustc-backtrace-compilation-regexps
32
+ (let ((re (concat " ^ +at " rustc-compilation-location)))
33
+ (cons re '(2 3 4 0 1 )))
34
+ " Specifications for matching stack backtraces in rustc invocations.
35
+ See `compilation-error-regexp-alist' for help on their format." )
36
+
31
37
(defvar rustc-refs-compilation-regexps
32
38
(let ((re " ^\\ ([0-9]+\\ )[[:space:]]*|" ))
33
39
(cons re '(nil 1 nil 0 1 )))
@@ -79,6 +85,9 @@ the compilation window until the top of the error is visible."
79
85
(add-to-list 'compilation-error-regexp-alist-alist
80
86
(cons 'rustc-colon rustc-colon-compilation-regexps))
81
87
(add-to-list 'compilation-error-regexp-alist 'rustc-colon )
88
+ (add-to-list 'compilation-error-regexp-alist-alist
89
+ (cons 'rustc-backtrace rustc-backtrace-compilation-regexps))
90
+ (add-to-list 'compilation-error-regexp-alist 'rustc-backtrace )
82
91
(add-to-list 'compilation-error-regexp-alist-alist
83
92
(cons 'cargo cargo-compilation-regexps))
84
93
(add-to-list 'compilation-error-regexp-alist-alist
You can’t perform that action at this time.
0 commit comments