about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-10-05 12:38:02 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-10-05 18:00:29 +1100
commitb229be0127dacde928826f6dac697230c74eef05 (patch)
treefbb52560c71a57d4e4572b693df85510dee9c63d /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parent8ba91378401f5483b1d834be33911028507a9d5d (diff)
downloadrust-b229be0127dacde928826f6dac697230c74eef05.tar.gz
rust-b229be0127dacde928826f6dac697230c74eef05.zip
Overhaul `config::features`.
The new way of doing things:
- Avoids some code duplication.
- Distinguishes the `crate_edition` (which comes from `--edition`) and
  the `features_edition` (which combines `--edition` along with any
  `rustc_20XX_preview` features), which is useful.
- Has a simpler initial loop, one that just looks for
  `rustc_20XX_preview` features in order to compute `features_edition`.
- Creates a fallible alternative to `Features::enabled`, which is
  useful.

It's not easy to see how exactly the old and new code are equivalent,
but it's reassuring to know that the test coverage is quite good for
this stuff.
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions