diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-07-13 13:05:22 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-07-13 13:05:22 +1000 |
| commit | f2b0b6700ce984a38abd06e48e7884573688539b (patch) | |
| tree | 9ec009e5773dc606a0ea0e7dca97e42250c7c264 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | f0c67951d076db8272f7a52f4d2596ae77b3311d (diff) | |
| download | rust-f2b0b6700ce984a38abd06e48e7884573688539b.tar.gz rust-f2b0b6700ce984a38abd06e48e7884573688539b.zip | |
Fix bitslice printing.
In multiple ways: - Two calls to `bits_to_string()` passed in byte lengths rather than bit lengths, which meant only 1/8th of the `BitSlice` was printed. - `bit_str`'s purpose is entirely mysterious. I removed it and changed its callers to print the indices in the obvious way. - `bits_to_string`'s inner loop was totally wrong, such that it printed entirely bogus results. - `bits_to_string` now also adds a '|' between words, which makes the output easier to read, e.g.: `[ff-ff-ff-ff-ff-ff-ff-ff|ff-ff-ff-ff-ff-ff-ff-07]`.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
