Skip to content

Commit 3b071ef

Browse files
committed
Make handle_options public again.
1 parent 99592fd commit 3b071ef

File tree

1 file changed

+5
-1
lines changed
  • compiler/rustc_driver_impl/src

1 file changed

+5
-1
lines changed

compiler/rustc_driver_impl/src/lib.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,11 @@ fn print_flag_list<T>(
11841184
///
11851185
/// So with all that in mind, the comments below have some more detail about the
11861186
/// contortions done here to get things to work out correctly.
1187-
fn handle_options(handler: &EarlyErrorHandler, args: &[String]) -> Option<getopts::Matches> {
1187+
///
1188+
/// This does not need to be `pub` for rustc itself, but @chaosite needs it to
1189+
/// be public when using rustc as a library, see
1190+
/// https://github.com/rust-lang/rust/commit/2b4c33817a5aaecabf4c6598d41e190080ec119e
1191+
pub fn handle_options(handler: &EarlyErrorHandler, args: &[String]) -> Option<getopts::Matches> {
11881192
if args.is_empty() {
11891193
// user did not write `-v` nor `-Z unstable-options`, so do not
11901194
// include that extra information.

0 commit comments

Comments
 (0)