File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ pub fn run_compiler<'a>(args: &[String],
157
157
}
158
158
} }
159
159
160
- let matches = match handle_options ( args. to_vec ( ) ) {
160
+ let matches = match handle_options ( args) {
161
161
Some ( matches) => matches,
162
162
None => return ( Ok ( ( ) ) , None ) ,
163
163
} ;
@@ -870,9 +870,9 @@ fn print_flag_list<T>(cmdline_opt: &str,
870
870
///
871
871
/// So with all that in mind, the comments below have some more detail about the
872
872
/// contortions done here to get things to work out correctly.
873
- pub fn handle_options ( mut args : Vec < String > ) -> Option < getopts:: Matches > {
873
+ pub fn handle_options ( args : & [ String ] ) -> Option < getopts:: Matches > {
874
874
// Throw away the first argument, the name of the binary
875
- let _binary = args. remove ( 0 ) ;
875
+ let args = & args[ 1 .. ] ;
876
876
877
877
if args. is_empty ( ) {
878
878
// user did not write `-v` nor `-Z unstable-options`, so do not
You can’t perform that action at this time.
0 commit comments