File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -3290,6 +3290,9 @@ impl Tool {
3290
3290
self . args . push ( flag) ;
3291
3291
}
3292
3292
3293
+ /// Checks if an argument or flag has already been specified or conflicts.
3294
+ ///
3295
+ /// Currently only checks optimization flags.
3293
3296
fn is_duplicate_opt_arg ( & self , flag : & OsString ) -> bool {
3294
3297
let flag = flag. to_str ( ) . unwrap ( ) ;
3295
3298
let mut chars = flag. chars ( ) ;
@@ -3317,7 +3320,7 @@ impl Tool {
3317
3320
return false ;
3318
3321
}
3319
3322
3320
- /// Don't push optimization arg if it conflicts with existing args
3323
+ /// Don't push optimization arg if it conflicts with existing args.
3321
3324
fn push_opt_unless_duplicate ( & mut self , flag : OsString ) {
3322
3325
if self . is_duplicate_opt_arg ( & flag) {
3323
3326
println ! ( "Info: Ignoring duplicate arg {:?}" , & flag) ;
You can’t perform that action at this time.
0 commit comments