Skip to content

Make rustc output parsing more robust #113

Open
@Boddlnagg

Description

@Boddlnagg

While testing #112 I found at least one case, where the current RegEx for error messages does not work correctly. Given this rustc output

main.rs:118:22: 118:26 error: mismatched types:
 expected `&mut [u8]`,
    found `&[u8; 2]`
(values differ in mutability) [E0308]
main.rs:118     match stdin.read(&buf) {
                                 ^~~~

the RegEx will only extract the first line and discard the additional information, resulting in the error message mismatched types:

I'm not sure how this should be fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions