File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 220
220
221
221
(provide 'rust-mode )
222
222
223
+ ; ; Issue #6887: Rather than inheriting the 'gnu compilation error
224
+ ; ; regexp (which is broken on a few edge cases), add our own 'rust
225
+ ; ; compilation error regexp and use it instead.
226
+ (defvar rustc-compilation-regexps
227
+ (let ((re (concat " ^\\ ([^ \n ]+\\ ):\\ ([0-9]+\\ ):\\ ([0-9]+\\ ): "
228
+ " \\ ([0-9]+\\ ):\\ ([0-9]+\\ ) "
229
+ " \\ (?:[Ee]rror\\ |\\ ([Ww]arning\\ )\\ ):" )))
230
+ (cons re '(1 (2 . 4 ) (3 . 5 ) (6 ))))
231
+ " Specifications for matching errors in rustc invocations.
232
+ See `compilation-error-regexp-alist for help on their format." )
233
+
234
+ (add-to-list 'compilation-error-regexp-alist-alist
235
+ (cons 'rustc rustc-compilation-regexps))
236
+ (add-to-list 'compilation-error-regexp-alist 'rustc )
237
+
223
238
; ;; rust-mode.el ends here
You can’t perform that action at this time.
0 commit comments