-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Inline some rustc_driver function #47661
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
📌 Commit c3fabce has been approved by |
…erister Inline some rustc_driver function
rustc_driver::get_args is no more, see rust-lang/rust#47661.
@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. |
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> { |
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.
@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.
Seems like we might as well just roll this back -- or at least preserve the public API. |
No description provided.