Skip to content

Commit f51fdb9

Browse files
authored
Merge pull request #39 from flycheck/remove-explain-error
Remove `flycheck-rust-explain-error`
2 parents 737ca5f + 9a49e33 commit f51fdb9

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

flycheck-rust.el

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@
3939
;; Note: You must run `cargo build` initially to install all dependencies. If
4040
;; you add new dependencies to `Cargo.toml` you need to run `cargo build`
4141
;; again. Otherwise you will see spurious errors about missing crates.
42-
;;
43-
;; This extension also provides a convenience function for looking up
44-
;; explanations of the compiler error under point
45-
;; (`flycheck-rust-explain-error') that is not bound by default.
4642

4743
;;; Code:
4844

@@ -165,19 +161,6 @@ Flycheck according to the Cargo project layout."
165161
(list (expand-file-name "target/debug" root)
166162
(expand-file-name "target/debug/deps" root)))))))
167163

168-
;;;###autoload
169-
(defun flycheck-rust-explain-error (error-code)
170-
"Explain ERROR-CODE by invoking `rustc --explain'.
171-
172-
ERROR-CODE defaults to the code of the error under point."
173-
(interactive
174-
(list (let ((errors-at-point (flycheck-overlay-errors-at (point))))
175-
(and errors-at-point (flycheck-error-id (car errors-at-point))))))
176-
(when error-code
177-
(with-help-window (get-buffer-create "*rustc-explain*")
178-
(with-current-buffer standard-output
179-
(call-process "rustc" nil t nil "--explain" error-code)))))
180-
181164
(provide 'flycheck-rust)
182165

183166
;;; flycheck-rust.el ends here

0 commit comments

Comments
 (0)