File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/tools/miri/miri-script/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ mod util;
66
77use std:: ops:: Range ;
88
9- use anyhow:: { Context , Result , anyhow} ;
9+ use anyhow:: { Context , Result , anyhow, bail } ;
1010use clap:: { Parser , Subcommand } ;
1111
1212/// Parses a seed range
@@ -144,7 +144,7 @@ impl Command {
144144 Ok ( ( ) )
145145 }
146146 Self :: Bench { .. } | Self :: RustcPull { .. } | Self :: RustcPush { .. } =>
147- Err ( anyhow :: Error :: msg ( "unexpected \" --\" found in arguments" ) ) ,
147+ bail ! ( "unexpected \" --\" found in arguments" ) ,
148148 }
149149 }
150150}
@@ -156,8 +156,8 @@ pub struct Cli {
156156}
157157
158158fn main ( ) -> Result < ( ) > {
159- /// Split the arguments into the part before the `--` and the part after.
160- /// The `--` itself ends up in the second part.
159+ // Split the arguments into the part before the `--` and the part after.
160+ // The `--` itself ends up in the second part.
161161 let miri_args: Vec < _ > = std:: env:: args ( ) . take_while ( |x| * x != "--" ) . collect ( ) ;
162162 let remainder: Vec < _ > = std:: env:: args ( ) . skip_while ( |x| * x != "--" ) . collect ( ) ;
163163
You can’t perform that action at this time.
0 commit comments