about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2020-09-12 00:42:52 -0400
committerJoshua Nelson <jyn514@gmail.com>2020-09-20 16:18:58 -0400
commitc9c8fb88cf1be7e0a6bd6fd049d8d28fb5d86135 (patch)
treed5fe808a6c9072962ca7c9df063dd9855b9403f5 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parent7bdb5dee7bac15458b10b148e9e24968e633053e (diff)
downloadrust-c9c8fb88cf1be7e0a6bd6fd049d8d28fb5d86135.tar.gz
rust-c9c8fb88cf1be7e0a6bd6fd049d8d28fb5d86135.zip
Add sample defaults for config.toml
- Allow including defaults in `src/bootstrap/defaults` using `profile = "..."`
- Add default config files
- Combine config files using the merge dependency.
- Add comments to default config files
- Add a README asking to open an issue if the defaults are bad
- Give a loud error if trying to merge `.target`, since it's not
  currently supported
- Use an exhaustive match
- Use `<none>` in config.toml.example to avoid confusion
- Fix bugs in `Merge` derives

Previously, it would completely ignore the profile defaults if there
were any settings in `config.toml`. I sent an email to the `merge` maintainer
asking them to make the behavior in this commit the default.

This introduces a new dependency on `merge` that hasn't yet been vetted.

I want to improve the output when `include = "x"` isn't found:

```
thread 'main' panicked at 'fs::read_to_string(&file) failed with No such file or directory (os error 2) ("configuration file did not exist")', src/bootstrap/config.rs:522:28
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
failed to run: /home/joshua/rustc/build/bootstrap/debug/bootstrap test tidy
Build completed unsuccessfully in 0:00:00
```

However that seems like it could be fixed in a follow-up.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions