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

explanatory error on --print target-spec-json without unstable options #43260

Conversation

zackmdavis
Copy link
Member

unstable_target_spec

Resolves #41683.

@rust-highfive
Copy link
Collaborator

r? @pnkfelix

(rust_highfive has picked a reviewer for you, use r? to override)

@@ -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) => {
Copy link
Member

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?

@Mark-Simulacrum Mark-Simulacrum added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 17, 2017
@arielb1
Copy link
Contributor

arielb1 commented Jul 18, 2017

r+ modulo that nit

@zackmdavis zackmdavis force-pushed the print_target_spec_json_unstable_options_error branch from 20072cf to c6a2399 Compare July 19, 2017 20:30
@zackmdavis
Copy link
Member Author

(force-push addresses nit)

@Mark-Simulacrum
Copy link
Member

@bors r=arielb1

@bors
Copy link
Contributor

bors commented Jul 19, 2017

📌 Commit c6a2399 has been approved by arielb1

@bors
Copy link
Contributor

bors commented Jul 20, 2017

⌛ Testing commit c6a2399 with merge 381d51d...

bors added a commit that referenced this pull request Jul 20, 2017
…ions_error, r=arielb1

explanatory error on `--print target-spec-json` without unstable options

![unstable_target_spec](https://user-images.githubusercontent.com/1076988/28243342-9731a45c-697a-11e7-9852-bad7ca1802b7.png)

Resolves #41683.
@bors
Copy link
Contributor

bors commented Jul 20, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: arielb1
Pushing 381d51d to master...

@bors bors merged commit c6a2399 into rust-lang:master Jul 20, 2017
@zackmdavis zackmdavis deleted the print_target_spec_json_unstable_options_error branch January 13, 2018 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants