File tree 1 file changed +8
-0
lines changed
1 file changed +8
-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 )))
@@ -78,6 +84,8 @@ the compilation window until the top of the error is visible."
78
84
(add-to-list 'compilation-error-regexp-alist 'rustc )
79
85
(add-to-list 'compilation-error-regexp-alist-alist
80
86
(cons 'rustc-colon rustc-colon-compilation-regexps))
87
+ (add-to-list 'compilation-error-regexp-alist-alist
88
+ (cons 'rustc-colon rustc-backtrace-compilation-regexps))
81
89
(add-to-list 'compilation-error-regexp-alist 'rustc-colon )
82
90
(add-to-list 'compilation-error-regexp-alist-alist
83
91
(cons 'cargo cargo-compilation-regexps))
You can’t perform that action at this time.
0 commit comments