Skip to content
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

Migrate from compiletest_rs to trybuild #175

Merged
merged 1 commit into from
Jan 12, 2021

Conversation

andy128k
Copy link
Contributor

@andy128k andy128k commented Aug 19, 2020

I noticed that compiletest_rs is unstable. You need to run cargo clean from time to time to make it work. Its error messages are unreadable. Also I noticed that it doesn't work on macos.

Then I found this. 😏

I tested this on Linux and macos and it works well.

@andy128k andy128k marked this pull request as ready for review August 19, 2020 11:13
@andy128k
Copy link
Contributor Author

One more recommendation how to test compiler failures.

@andy128k andy128k force-pushed the trybuild branch 2 times, most recently from 12e8fa1 to f132704 Compare September 12, 2020 19:37
@andy128k
Copy link
Contributor Author

@TedDriggs Rustc constantly changes/improves output of compile errors. Now tests in master branch are broken in nightly. Upcoming release of Rust will break tests on stable/beta too.

I propose to follow an advise of dtolnay and run them on a single version. Minimal supported version of compiler (for now it is 1.40.0) seems reasonable to me.

Switching to trybuild also improves developer's experience -- no need to do cargo clean between running tests.

@andy128k
Copy link
Contributor Author

@TedDriggs ping

@TedDriggs TedDriggs merged commit 66d42ef into colin-kiegel:master Jan 12, 2021
@andy128k andy128k deleted the trybuild branch January 12, 2021 20:02
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.

2 participants