Skip to content

rustc "file:line-num" output has become incompatible with emacs' default compilation-mode #6887

Closed
@pnkfelix

Description

@pnkfelix

The output from rustc used to be compatible with emacs compilation-mode's regexp, so that I could immediately visit the point of error via generated links in a compile-mode buffer.

But now it products output where, at least on my emacs install, the compilation mode gets confused.

As a concrete example, it interprets this output:

llist2.rs:9:0: 12:1 error: not all control paths return a value
llist2.rs:9 fn place_top(pile: Option<~card>, newcard: ~card) -> ~card
llist2.rs:10 {
llist2.rs:11 
llist2.rs:12 }

where it sees the first line as the place to find the link to the error (and the subsequent lines are not linked), but when I click, it thinks the error is in a file named 9:0 at line 12, column 1.

(I can probably figure this out sometime in the next week, so I am going to assign this to myself; I just wanted to file it away now.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions