Skip to content

compile-fail/recursion.rs uses a dummy span with an expansion id of -2 #20747

Closed
@Manishearth

Description

@Manishearth

Found whilst testing #20032

From the test:

// We also get a second error message at the top of file (dummy
// span). This is not helpful, but also kind of annoying to prevent,
// so for now just live with it, since we also get a second message
// that is more helpful.

This should probably be fixed. For now (when #20032 lands) I've made that test ignore command line spans.

I'll work on tracking back this span and trying to fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsA-testsuiteArea: The testsuite used to check the correctness of rustc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions