File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 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.")
2828 " Specifications for matching `:::` hints in rustc invocations.
2929See `compilation-error-regexp-alist' for help on their format." )
3030
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+
3137(defvar rustc-refs-compilation-regexps
3238 (let ((re " ^\\ ([0-9]+\\ )[[:space:]]*|" ))
3339 (cons re '(nil 1 nil 0 1 )))
@@ -78,6 +84,8 @@ the compilation window until the top of the error is visible."
7884 (add-to-list 'compilation-error-regexp-alist 'rustc )
7985 (add-to-list 'compilation-error-regexp-alist-alist
8086 (cons 'rustc-colon rustc-colon-compilation-regexps))
87+ (add-to-list 'compilation-error-regexp-alist-alist
88+ (cons 'rustc-colon rustc-backtrace-compilation-regexps))
8189 (add-to-list 'compilation-error-regexp-alist 'rustc-colon )
8290 (add-to-list 'compilation-error-regexp-alist-alist
8391 (cons 'cargo cargo-compilation-regexps))
You can’t perform that action at this time.
0 commit comments