Skip to content

Commit 888f3de

Browse files
committed
rust--format-fix-rustfmt-buffer: replace "stdin:" as well as "<stdin>:".
1 parent e04e485 commit 888f3de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rust-mode.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,6 +1484,8 @@ This is written mainly to be used as `end-of-defun-function' for Rust."
14841484
(with-current-buffer (get-buffer rust-rustfmt-buffername)
14851485
(goto-char (point-min))
14861486
(while (re-search-forward "--> <stdin>:" nil t)
1487+
(replace-match (format "--> %s:" buffer-name)))
1488+
(while (re-search-forward "--> stdin:" nil t)
14871489
(replace-match (format "--> %s:" buffer-name)))))
14881490

14891491
;; If rust-mode has been configured to navigate to source of the error

0 commit comments

Comments
 (0)