Skip to content

UItest error annotations for errors in auxiliary crates are marked as superfluous #139262

Closed
@jdonszelmann

Description

@jdonszelmann

After a discussion on the community discord with @jieyouxu

This pr has tests (in tests/ui/eii) that have errors in auxiliary crates. Until recently (before a rebase yesterday. I've not completely figured out when it stopped working) this was fine. In the aux crate there's also a marking (//~ error ...). However, after the rebase it complains that there's errors without a span being emitted while none were expected. This is in some sense true, errors are emitted with spans from a different crate.

as an example:

the stderr of one of my tests:

Image

and yet:

Image

where the aux crate is annotated with:

Image

in other words, this is an expected error.

Metadata

Metadata

Assignees

Labels

A-compiletestArea: The compiletest test runnerA-diagnosticsArea: Messages for errors, warnings, and lintsA-testsuiteArea: The testsuite used to check the correctness of rustcC-discussionCategory: Discussion or questions that doesn't represent real issues.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions