-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
explanatory error on --print target-spec-json
without unstable options
#43260
explanatory error on --print target-spec-json
without unstable options
#43260
Conversation
r? @pnkfelix (rust_highfive has picked a reviewer for you, use r? to override) |
src/librustc/session/config.rs
Outdated
@@ -1600,6 +1600,11 @@ pub fn build_session_options_and_crate_config(matches: &getopts::Matches) | |||
"code-models" => PrintRequest::CodeModels, | |||
"target-spec-json" if nightly_options::is_unstable_enabled(matches) | |||
=> PrintRequest::TargetSpec, | |||
"target-spec-json" if !nightly_options::is_unstable_enabled(matches) => { |
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.
Could you unify the if statement here, making it an if-else statement?
r+ modulo that nit |
20072cf
to
c6a2399
Compare
(force-push addresses nit) |
@bors r=arielb1 |
📌 Commit c6a2399 has been approved by |
…ions_error, r=arielb1 explanatory error on `--print target-spec-json` without unstable options  Resolves #41683.
☀️ Test successful - status-appveyor, status-travis |
Resolves #41683.