We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e3f827 commit 0b68d59Copy full SHA for 0b68d59
src/lib.rs
@@ -3290,6 +3290,9 @@ impl Tool {
3290
self.args.push(flag);
3291
}
3292
3293
+ /// Checks if an argument or flag has already been specified or conflicts.
3294
+ ///
3295
+ /// Currently only checks optimization flags.
3296
fn is_duplicate_opt_arg(&self, flag: &OsString) -> bool {
3297
let flag = flag.to_str().unwrap();
3298
let mut chars = flag.chars();
@@ -3317,7 +3320,7 @@ impl Tool {
3317
3320
return false;
3318
3321
3319
3322
- /// Don't push optimization arg if it conflicts with existing args
3323
+ /// Don't push optimization arg if it conflicts with existing args.
3324
fn push_opt_unless_duplicate(&mut self, flag: OsString) {
3325
if self.is_duplicate_opt_arg(&flag) {
3326
println!("Info: Ignoring duplicate arg {:?}", &flag);
0 commit comments