Skip to content

The UI test chapter should explain reference annotations #2301

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mejrs opened this issue Mar 23, 2025 · 2 comments
Closed

The UI test chapter should explain reference annotations #2301

mejrs opened this issue Mar 23, 2025 · 2 comments

Comments

@mejrs
Copy link
Contributor

mejrs commented Mar 23, 2025

I want to update a test that has a //@ reference: attributes.diagnostic.namespace.unknown-invalid-syntax at the top, and I had a lot of trouble figuring out what that does (I found rust-lang/compiler-team#783 eventually).

In particular if I want to add to or change a test that has this, should I care?

cc @ehuss

@ehuss
Copy link
Contributor

ehuss commented Mar 23, 2025

@mejrs
Copy link
Contributor Author

mejrs commented Mar 23, 2025

I did not, my bad. I was only looking at https://rustc-dev-guide.rust-lang.org/tests/ui.html and my brain skipped over the test directives chapter...

@mejrs mejrs closed this as completed Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants