Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #11678 - hellux:master, r=weihanglo
util toml targets: Do not infer directory as a file Any directory entry that ends with `.rs` is currently inferred to be a file, causing it to be added as a target. This means that directories that end with .rs may also end up as targets. An example where this is apparent, running in an existing project directory; ``` $ mkdir -p tests/some_dir.rs $ cargo fmt Error: `tests/some_dir.rs` is a directory ``` causes cargo-fmt to pass the directory to rustfmt, which in turn makes rustfmt exit with an error.
- Loading branch information