We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdddcd3 commit e985fb9Copy full SHA for e985fb9
compiler/rustc_driver_impl/src/args.rs
@@ -14,7 +14,7 @@ fn arg_expand(arg: String) -> Result<Vec<String>, Error> {
14
}
15
Err(err) => return Err(Error::IOError(path.to_string(), err)),
16
};
17
- Ok(file.lines().map(ToString::to_string).collect())
+ Ok(file.lines().filter(|s| !s.trim().is_empty()).map(ToString::to_string).collect())
18
} else {
19
Ok(vec![arg])
20
0 commit comments