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 {
32903290 self . args . push ( flag) ;
32913291 }
32923292
3293+ /// Checks if an argument or flag has already been specified or conflicts.
3294+ ///
3295+ /// Currently only checks optimization flags.
32933296 fn is_duplicate_opt_arg ( & self , flag : & OsString ) -> bool {
32943297 let flag = flag. to_str ( ) . unwrap ( ) ;
32953298 let mut chars = flag. chars ( ) ;
@@ -3317,7 +3320,7 @@ impl Tool {
33173320 return false ;
33183321 }
33193322
3320- /// Don't push optimization arg if it conflicts with existing args
3323+ /// Don't push optimization arg if it conflicts with existing args.
33213324 fn push_opt_unless_duplicate ( & mut self , flag : OsString ) {
33223325 if self . is_duplicate_opt_arg ( & flag) {
33233326 println ! ( "Info: Ignoring duplicate arg {:?}" , & flag) ;
You can’t perform that action at this time.
0 commit comments