diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-10-17 19:07:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-17 19:07:24 +0200 |
| commit | 6e6cd68cd0e1e40a5cfbb33e8a7628295acf21a2 (patch) | |
| tree | d6d986c893197f50b6409bb47bac2d4d6a9ead0c /compiler/rustc_driver_impl/src | |
| parent | 3ea438eb3a577d8d2f8639a4527f40da1d938efd (diff) | |
| parent | b0e1a52e37d9690db292af841181a894599c41ee (diff) | |
| download | rust-6e6cd68cd0e1e40a5cfbb33e8a7628295acf21a2.tar.gz rust-6e6cd68cd0e1e40a5cfbb33e8a7628295acf21a2.zip | |
Rollup merge of #116827 - nnethercote:pub-handle_options, r=compiler-errors
Make `handle_options` public again. r? ``@compiler-errors``
Diffstat (limited to 'compiler/rustc_driver_impl/src')
| -rw-r--r-- | compiler/rustc_driver_impl/src/lib.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs index b0c95e1bd20..ab18cc32d9b 100644 --- a/compiler/rustc_driver_impl/src/lib.rs +++ b/compiler/rustc_driver_impl/src/lib.rs @@ -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. |
