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

Make "stable" the default, require Cargo feature to opt in to pretty-printer support #135

Closed
dtolnay opened this issue Oct 28, 2018 · 6 comments · Fixed by #200
Closed

Comments

@dtolnay
Copy link
Contributor

dtolnay commented Oct 28, 2018

Currently the only nightly-only functionality that you lose with features = ["stable"] is support for pretty-printing tests. In my experience practically nobody outside of the compiler uses this type of test. It's a shame to be chained to the nightly treadmill by default just for supporting that type of test.

It would be much nicer to have compiletest-rs work equally well on stable and nightly by default, and require an opt-in in the rare case that somebody requires nightly-only pretty printer tests.

If, as I expect, nobody enables the pretty-printing test support, then compiletest-rs would never again be broken by nightly changes.

@Manishearth
Copy link
Owner

Oh, if nightly support is only required for this feature I support removing it .

@Manishearth
Copy link
Owner

Wait, where is this used for pretty tests? It seems to only be used for setting the host/target platforms?

@dtolnay
Copy link
Contributor Author

dtolnay commented Oct 28, 2018

https://github.com/laumann/compiletest-rs/blob/4b6b7c7e62981ba53e176d6a314167eafff7aec2/src/runtest.rs#L267-L273


I am not counting:

https://github.com/laumann/compiletest-rs/blob/4b6b7c7e62981ba53e176d6a314167eafff7aec2/src/common.rs#L347-L354

because in my experience the norustc version of that code works just as well as the unstable one. Has that not been your experience?

@Manishearth
Copy link
Owner

oh, I didn't think to grep for the "stable" feature itself.

nah, that was just the only nightly-specific code I found

@aldanor
Copy link

aldanor commented Nov 18, 2018

+1 for nightly opt-in as well, it would be nice to not have to do per-toolchain hackery in travis configs just to make compiletest work.

@shepmaster
Copy link

Additionally, since features are supposed to be additive, it seems incorrect that stable is a feature — the logic should be negated.

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 a pull request may close this issue.

4 participants