File tree 1 file changed +4
-4
lines changed
src/tools/miri/miri-script/src
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ mod util;
6
6
7
7
use std:: ops:: Range ;
8
8
9
- use anyhow:: { Context , Result , anyhow} ;
9
+ use anyhow:: { Context , Result , anyhow, bail } ;
10
10
use clap:: { Parser , Subcommand } ;
11
11
12
12
/// Parses a seed range
@@ -144,7 +144,7 @@ impl Command {
144
144
Ok ( ( ) )
145
145
}
146
146
Self :: Bench { .. } | Self :: RustcPull { .. } | Self :: RustcPush { .. } =>
147
- Err ( anyhow :: Error :: msg ( "unexpected \" --\" found in arguments" ) ) ,
147
+ bail ! ( "unexpected \" --\" found in arguments" ) ,
148
148
}
149
149
}
150
150
}
@@ -156,8 +156,8 @@ pub struct Cli {
156
156
}
157
157
158
158
fn 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.
161
161
let miri_args: Vec < _ > = std:: env:: args ( ) . take_while ( |x| * x != "--" ) . collect ( ) ;
162
162
let remainder: Vec < _ > = std:: env:: args ( ) . skip_while ( |x| * x != "--" ) . collect ( ) ;
163
163
You can’t perform that action at this time.
0 commit comments