Skip to content

Commit e985fb9

Browse files
committed
Ignore blank lines in response files
Fixes #116068
1 parent cdddcd3 commit e985fb9

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_driver_impl/src

1 file changed

+1
-1
lines changed

compiler/rustc_driver_impl/src/args.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn arg_expand(arg: String) -> Result<Vec<String>, Error> {
1414
}
1515
Err(err) => return Err(Error::IOError(path.to_string(), err)),
1616
};
17-
Ok(file.lines().map(ToString::to_string).collect())
17+
Ok(file.lines().filter(|s| !s.trim().is_empty()).map(ToString::to_string).collect())
1818
} else {
1919
Ok(vec![arg])
2020
}

0 commit comments

Comments
 (0)