-
Notifications
You must be signed in to change notification settings - Fork 289
Env override support #808
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
Env override support #808
Conversation
r? @gnzlbg (rust_highfive has picked a reviewer for you, use r? to override) |
0cf14a2
to
45fdfe1
Compare
45fdfe1
to
e6d870e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. The only thing missing would be to add a test.
So this looks good. The only thing missing is a CI buildjob that uses the feature, e.g., on x86_64-unknown-linux-gnu, and then disables e.g. AVX and checks that AVX2 is enabled but AVX isn't. The simplest thing I think is what you suggested, copying this buildjob (https://github.com/rust-lang/stdarch/blob/master/ci/azure.yml#L182) and just running the pertinent test. |
And leave a NOTE.
67f9961
to
16f7077
Compare
I added the buildjob and shuffled around the style fixes. |
|
||
impl Feature { | ||
#[doc(hidden)] | ||
pub fn from_str(_s: &str) -> Result<Feature, ()> { Err<()> } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
syntax error
☔ The latest upstream changes (presumably 5928048) made this pull request unmergeable. Please resolve the merge conflicts. |
I think you merged this and now master is broken :D |
Don't stress, keep calm. Just create a new branch from master, and submit a PR that fixes it :) |
Ouch, when you ctrl^Rgit p+Enter on the wrong shell... |
Hopefully I fixed the syntax error before the push. |
See #804 The env var is
RUST_STD_DETECT_UNSTABLE
for now.