Skip to content

Commit

Permalink
Rollup merge of rust-lang#116827 - nnethercote:pub-handle_options, r=…
Browse files Browse the repository at this point in the history
…compiler-errors

Make `handle_options` public again.

r? ``@compiler-errors``
  • Loading branch information
matthiaskrgr authored Oct 17, 2023
2 parents 3ea438e + b0e1a52 commit 6e6cd68
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion compiler/rustc_driver_impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,11 @@ fn print_flag_list<T>(
///
/// So with all that in mind, the comments below have some more detail about the
/// contortions done here to get things to work out correctly.
fn handle_options(handler: &EarlyErrorHandler, args: &[String]) -> Option<getopts::Matches> {
///
/// This does not need to be `pub` for rustc itself, but @chaosite needs it to
/// be public when using rustc as a library, see
/// <https://github.com/rust-lang/rust/commit/2b4c33817a5aaecabf4c6598d41e190080ec119e>
pub fn handle_options(handler: &EarlyErrorHandler, args: &[String]) -> Option<getopts::Matches> {
if args.is_empty() {
// user did not write `-v` nor `-Z unstable-options`, so do not
// include that extra information.
Expand Down

0 comments on commit 6e6cd68

Please sign in to comment.