]> git.lizzy.rs Git - rust.git/commit
Improve `BitSet` APIs
authorDylan MacKenzie <ecstaticmorse@gmail.com>
Fri, 28 Aug 2020 01:07:27 +0000 (18:07 -0700)
committerDylan MacKenzie <ecstaticmorse@gmail.com>
Sun, 30 Aug 2020 18:13:18 +0000 (11:13 -0700)
commit149307efb742bf25fc1c8da85f1e6560691ba3dd
treee9ffe1252d8beddd697c26a4cda191e4496a6b25
parent85fbf49ce0e2274d0acf798f6e703747674feec3
Improve `BitSet` APIs

A few small cleanups to `BitSet` and friends:

- Overload `clone_from` for `BitSet`.
- Improve `Debug` represenation of `HybridBitSet`.
- Make `HybridBitSet::domain_size` public.
- Don't require `T: Idx` at the type level. The `Idx` bound is still on
  most `BitSet` methods, but like `HashMap`, it doesn't need to be
  satisfied for the type to exist.
compiler/rustc_index/src/bit_set.rs