Skip to content

rustup and compile-fail -> ui test move #1520

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

Merged
merged 5 commits into from
Feb 8, 2017
Merged

rustup and compile-fail -> ui test move #1520

merged 5 commits into from
Feb 8, 2017

Conversation

oli-obk
Copy link
Contributor

@oli-obk oli-obk commented Feb 7, 2017

fixes #1519

@oli-obk
Copy link
Contributor Author

oli-obk commented Feb 7, 2017

Going to bed. Feel free to take over.

Copy link
Member

@mcarton mcarton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While I love the idea to have UI tests I wonder whether these make sense for all the tests.
If it does, why does rustc itself still bother with compile-fail tests?

CONTRIBUTING.md Outdated
Clippy uses UI tests. UI tests check that the output of the compiler is exactly as expected.
Of course there's little sense in writing the output yourself or copying it around.
Therefore you can simply run `tests/ui/update-all-references.sh` and check whether
the output looks as you expect with `git diff`. Commit all `.stderr` files, too.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Nice of you to update that!

I'd just say “Commit all *.stderr files” because I though for a moment “why the hell those are hidden files?”.

@oli-obk
Copy link
Contributor Author

oli-obk commented Feb 8, 2017

If it does, why does rustc itself still bother with compile-fail tests?

They are moving to just checking true compilation failures that abort the program. Everything else is a ui test.

@mcarton
Copy link
Member

mcarton commented Feb 8, 2017

r+ modulo update_lints.py.

@mcarton
Copy link
Member

mcarton commented Feb 8, 2017

“remove all //~ from tests” → the end of an era 😢 😄

@mcarton mcarton merged commit 37a0e52 into master Feb 8, 2017
@mcarton mcarton deleted the rustup branch February 8, 2017 20:07
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

Successfully merging this pull request may close these issues.

ty::TyTuple fields mismatch
2 participants