File tree 1 file changed +5
-1
lines changed
compiler/rustc_driver_impl/src
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1184,7 +1184,11 @@ fn print_flag_list<T>(
1184
1184
///
1185
1185
/// So with all that in mind, the comments below have some more detail about the
1186
1186
/// 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 > {
1188
1192
if args. is_empty( ) {
1189
1193
// user did not write `-v` nor `-Z unstable-options`, so do not
1190
1194
// include that extra information.
You can’t perform that action at this time.
0 commit comments