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

Inline some rustc_driver function #47661

Merged
merged 1 commit into from
Jan 23, 2018
Merged

Conversation

bjorn3
Copy link
Member

@bjorn3 bjorn3 commented Jan 22, 2018

No description provided.

@rust-highfive
Copy link
Collaborator

r? @michaelwoerister

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

@michaelwoerister
Copy link
Member

Thanks, @bjorn3!

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Jan 22, 2018

📌 Commit c3fabce has been approved by michaelwoerister

@carols10cents carols10cents added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Jan 22, 2018
kennytm added a commit to kennytm/rust that referenced this pull request Jan 23, 2018
…erister

Inline some rustc_driver function
bors added a commit that referenced this pull request Jan 23, 2018
Rollup of 14 pull requests

- Successful merges: #47423, #47425, #47440, #47541, #47549, #47554, #47558, #47610, #47635, #47655, #47661, #47662, #47667, #47672
- Failed merges:
@bors bors merged commit c3fabce into rust-lang:master Jan 23, 2018
alessandrod added a commit to alessandrod/rls-rustc that referenced this pull request Jan 24, 2018
@nrc nrc added I-nominated T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jan 24, 2018
@nrc
Copy link
Member

nrc commented Jan 24, 2018

@rust-lang/compiler is there some motivation for these changes?

Please bear in mind that the driver for rustc is a public API and is used by a number of tools. I realise we haven't committed to stability here, but we shouldn't be landing random 'tidying up' changes which change the API. Breaking changes are fine, but they should be well-motivated.

@michaelwoerister
Copy link
Member

Sorry, I overlooked that this also included a public function. We can revert this if it broke something.

@@ -1329,20 +1325,19 @@ pub fn diagnostics_registry() -> errors::registry::Registry {
Registry::new(&all_errors)
}

pub fn get_args() -> Vec<String> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nrc I assume you mean only this function? This seems very useful, I guess because of the use of early_error this can't be substituted with anything in std directly.

@nikomatsakis
Copy link
Contributor

Seems like we might as well just roll this back -- or at least preserve the public API.

@bjorn3 bjorn3 deleted the refactor_driver branch July 10, 2019 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants