about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/json.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-03-18 18:03:37 +0100
committerGitHub <noreply@github.com>2020-03-18 18:03:37 +0100
commit4118ff61ec71a2b9869422ef1762b21051ce5e40 (patch)
tree564aec910f03d9690d1d8c4ee557e6fa3bdf6363 /src/test/rustdoc-ui/coverage/json.rs
parent3f583fc27079fbc0983635f3fd40b47b89ed2f80 (diff)
parent49aabd8a60c88d14de9a20c907396493ecc51f4f (diff)
downloadrust-4118ff61ec71a2b9869422ef1762b21051ce5e40.tar.gz
rust-4118ff61ec71a2b9869422ef1762b21051ce5e40.zip
Rollup merge of #69837 - jonas-schievink:gen-discr-opt, r=tmandry
Use smaller discriminants for generators

Closes https://github.com/rust-lang/rust/issues/69815

I'm not yet sure about the runtime performance impact of this, so I'll try running this on some benchmarks (if I can find any). (Update: No impact on the benchmarks I've measured on)

* [x] Add test with a generator that has exactly 256 total states
* [x] Add test with a generator that has more than 256 states so that it needs to use a u16 discriminant
* [x] Add tests for the size of `Option<[generator]>`
* [x] Add tests for the `discriminant_value` intrinsic in all cases
Diffstat (limited to 'src/test/rustdoc-ui/coverage/json.rs')
0 files changed, 0 insertions, 0 deletions