diff options
| author | bors <bors@rust-lang.org> | 2014-10-09 19:02:06 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-10-09 19:02:06 +0000 |
| commit | 79d056f94b75e1c9ad5d72bd8081d6aa5e323848 (patch) | |
| tree | 6bcd6807b6086f7fd99925bee2e4f2009871a61e /src/rustllvm/RustWrapper.cpp | |
| parent | eb04229f7a8c12924b3b6357c42961c96f821423 (diff) | |
| parent | dd4fa906fcc3f21eca8d8ce958b4728ed62581e1 (diff) | |
| download | rust-79d056f94b75e1c9ad5d72bd8081d6aa5e323848.tar.gz rust-79d056f94b75e1c9ad5d72bd8081d6aa5e323848.zip | |
auto merge of #17558 : kaseyc/rust/fix_bitvset_union, r=aturon
Updates the other_op function shared by the union/intersect/difference/symmetric_difference -with functions to fix an issue where certain elements would not be present in the result. To fix this, when other op is called, we resize self's nbits to account for any new elements that may be added to the set.
Example:
```rust
let mut a = BitvSet::new();
let mut b = BitvSet::new();
a.insert(0);
b.insert(5);
a.union_with(&b);
println!("{}", a); //Prints "{0}" instead of "{0, 5}"
```
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
