Apply sign extension when decoding int
This PR fixes a regression introduced in #280.

During the removal of the `byteorder` crate all conversions between `Buf`/`BufMut` and primitive integer types were replaced with std implementations (`from_be_bytes`, `from_le_bytes`, `to_be_bytes`, `to_le_bytes` etc.). When dealing with variable length signed integers (`get_int` and `get_int_le`), the representation of the integer was **simply padded with `0` bytes** and then interpreted as `i64`. This caused the bug.

Let's take `val = -42i64` with `nbytes = 2`, assume little-endian and see the order of operations of the current implementation:

| Step | Value |
| ------ |-------- |
| `i64` input | `0xffffffffffffffd6` |
| `i64` input -> `[u8; 8]` | `\xd6\xff\xff\xff\xff\xff\xff\xff` |
| `[u8; 8]` -> truncated `&[u8]` | `\xd6\xff` |
| truncated `&[u8]` -> decoded `i64` (by appending `0`) | `0xffd6` (65494) |
| decoded `i64` converted back to `&[u8]` just to show the mistake | `\xd6\xff\x00\x00\x00\x00\x00\x00` <- see how we have `\x00` instead of `\0xff` |

The decoded value is incorrect. To get the correct value, [Sign extension] must be applied to the bits representing the integer. The new operations will be:

| Step | Value |
| ------ |-------- |
| `i64` input | `0xffffffffffffffd6` |
| `i64` input -> `[u8; 8]`  | `\xd6\xff\xff\xff\xff\xff\xff\xff` |
| `[u8; 8]` -> truncated `&[u8]` | `\xd6\xff` |
| truncated `&[u8]` -> `u64` | `0xffd6` |
| `u64 << 48` | `0xffd6000000000000` |
| `(u64 << 48) as i64 >> 48` | `0xffffffffffffffd6` (-42) <-- it matches the input value |

Inspired by the implementation in `byteorder`: https://github.com/BurntSushi/byteorder/blob/18f32ca3a41c9823138e782752bc439e99ef7ec8/src/lib.rs#L87-L91

---

I also found it interesting to see the difference in the resulting assembly: https://rust.godbolt.org/z/vfWdjdc3b

Fixes #730

[Sign extension]: https://en.wikipedia.org/wiki/Sign_extension
**Steps to reproduce:**

Run the following program, using `bytes` version 1.7.1
```
use bytes::{BytesMut, Buf, BufMut};

fn main() {
    const SOME_NEG_NUMBER: i64 = -42;
    let mut buffer = BytesMut::with_capacity(8);

    buffer.put_int(SOME_NEG_NUMBER, 1);
    println!("buffer = {:?}", &buffer);
    assert_eq!(buffer.freeze().get_int(1), SOME_NEG_NUMBER);
}
```

**Expected outcome:**
Assertion passes and program terminates successfully, due to the symmetry of the `put_int` and `get_int` calls.

**Actual outcome:**
Assertion fails:
```
buffer = b"\xd6"
thread 'main' panicked at src/main.rs:9:5:
assertion `left == right` failed
  left: 214
 right: -42
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```

**Additional information:**
1. Only happens with negative numbers; positive numbers are always OK.
2. Only happens when `nbytes` parameter is < 8.
3. Other combos like `put_i8()`/`get_i8()` or `put_i16()`/`get_i16()` work as intended. 
`Buf::get_int()` implementation for `Bytes` returns positive number instead of negative when `nbytes` < 8.
diff --git a/src/buf/buf_impl.rs b/src/buf/buf_impl.rs
index c44d4fb38..9ef464075 100644
--- a/src/buf/buf_impl.rs
+++ b/src/buf/buf_impl.rs
@@ -66,6 +66,12 @@ macro_rules! buf_get_impl {
     }};
 }
 
+// https://en.wikipedia.org/wiki/Sign_extension
+fn sign_extend(val: u64, nbytes: usize) -> i64 {
+    let shift = (8 - nbytes) * 8;
+    (val << shift) as i64 >> shift
+}
+
 /// Read bytes from a buffer.
 ///
 /// A buffer stores bytes in memory such that read operations are infallible.
@@ -923,7 +929,7 @@ pub trait Buf {
     /// This function panics if there is not enough remaining data in `self`, or
     /// if `nbytes` is greater than 8.
     fn get_int(&mut self, nbytes: usize) -> i64 {
-        buf_get_impl!(be => self, i64, nbytes);
+        sign_extend(self.get_uint(nbytes), nbytes)
     }
 
     /// Gets a signed n-byte integer from `self` in little-endian byte order.
@@ -944,7 +950,7 @@ pub trait Buf {
     /// This function panics if there is not enough remaining data in `self`, or
     /// if `nbytes` is greater than 8.
     fn get_int_le(&mut self, nbytes: usize) -> i64 {
-        buf_get_impl!(le => self, i64, nbytes);
+        sign_extend(self.get_uint_le(nbytes), nbytes)
     }
 
     /// Gets a signed n-byte integer from `self` in native-endian byte order.

diff --git a/tests/test_buf.rs b/tests/test_buf.rs
index 3940f9247..5aadea43e 100644
--- a/tests/test_buf.rs
+++ b/tests/test_buf.rs
@@ -36,6 +36,19 @@ fn test_get_u16() {
     assert_eq!(0x5421, buf.get_u16_le());
 }
 
+#[test]
+fn test_get_int() {
+    let mut buf = &b"\xd6zomg"[..];
+    assert_eq!(-42, buf.get_int(1));
+    let mut buf = &b"\xd6zomg"[..];
+    assert_eq!(-42, buf.get_int_le(1));
+
+    let mut buf = &b"\xfe\x1d\xc0zomg"[..];
+    assert_eq!(0xffffffffffc01dfeu64 as i64, buf.get_int_le(3));
+    let mut buf = &b"\xfe\x1d\xc0zomg"[..];
+    assert_eq!(0xfffffffffffe1dc0u64 as i64, buf.get_int(3));
+}
+
 #[test]
 #[should_panic]
 fn test_get_u16_buffer_underflow() {

{"test_maybe_uninit_buf_mut_small": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "freeze_after_advance_arc": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "vectored_read": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "reserve_in_arc_nonunique_does_not_overallocate": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_clone": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "freeze_after_split_off": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "reserve_vec_recycling": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytesmut_from_bytes_promotable_even_arc_2": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "fmt": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "buf_read": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "vec_is_unique": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "from_slice": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "len": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "slice_ref_empty_subslice": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "from_iter_no_size_hint": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_with_capacity_but_empty": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytesmut_from_bytes_arc_offset": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_vec_as_mut_buf": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_mut_unsplit_arc_different": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "freeze_after_split_to": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "reserve_growth": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "arc_is_unique": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "extend_from_slice_mut": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "box_slice_empty": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "shared_is_unique": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_put_u16": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "split_to_2": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "partial_eq_bytesmut": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "slice_ref_not_an_empty_subset": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytes_truncate": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytesmut_from_bytes_arc_2": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "freeze_clone_shared": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytes_vec_conversion": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "advance_bytes_mut": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "reserve_max_original_capacity_value": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "extend_mut_without_size_hint": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytes_from_vec_drop": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "slice_ref_works": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_mut_unsplit_arc_non_contiguous": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "fns_defined_for_bytes_mut": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "read": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "advance_static": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "reserve_in_arc_unique_does_not_overallocate_after_multiple_splits": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_buf_mut_advance": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytes_into_vec_promotable_even": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "iter_len": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "split_off_to_at_gt_len": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytesmut_from_bytes_arc_1": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "try_reclaim_vec": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "empty_slice_ref_not_an_empty_subset": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_put_bytes": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "try_reclaim_empty": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "split_off_uninitialized": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_buf_mut_reuse_when_fully_consumed": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_mut_unsplit_basic": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "reserve_shared_reuse": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytes_advance": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_mut_unsplit_empty_self": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_mut_unsplit_empty_other": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "freeze_after_advance": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytesmut_from_bytes_static": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "chain_get_bytes": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "take_copy_to_bytes": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "reserve_in_arc_unique_does_not_overallocate": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "extend_past_lower_limit_of_size_hint": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytes_truncate_and_advance": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_maybe_uninit_buf_mut_large": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "slice": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_deref_bufmut_forwards": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "writing_chained": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "iterating_two_bufs": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "sanity_check_odd_allocator": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_layout": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "index": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "split_to_1": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "extend_mut_from_bytes": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "reserve_in_arc_unique_does_not_overallocate_after_split": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_put_u8": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "split_off_to_loop": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_slice_buf_mut_large": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "freeze_clone_unique": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "from_static": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_put_int_le": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_into_vec": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytes_mut_conversion": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "advance_bytes_mut_remaining_capacity": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytes_clone_drop": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytes_into_vec": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "reserve_in_arc_unique_doubles": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "freeze_after_truncate_arc": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "long_take": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "slice_ref_empty": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "freeze_after_truncate": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "chain_overflow_remaining_mut": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_mut_unsplit_empty_other_keeps_capacity": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "fmt_write": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytesmut_from_bytes_bytes_mut_shared": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "reserve_allocates_at_least_original_capacity": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "extend_mut": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_mut_unsplit_two_split_offs": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytesmut_from_bytes_bytes_mut_vec": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytesmut_from_bytes_promotable_even_arc_offset": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "split_off": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytes_capacity_len": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_put_int": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "collect_two_bufs": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytesmut_from_bytes_vec": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_get_int": {"run": "NONE", "test": "FAIL", "fix": "PASS"}, "test_bytesmut_from_bytes_promotable_even_vec": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "static_is_unique": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "try_reclaim_arc": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_vec_put_bytes": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "advance_vec": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytesmut_from_bytes_bytes_mut_offset": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_slice_buf_mut_small": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_mut_unsplit_other_keeps_capacity": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "stress": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "truncate": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "chain_growing_buffer": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bounds": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytesmut_from_bytes_promotable_even_arc_1": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "mut_shared_is_unique": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "empty_iter_len": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "reserve_convert": {"run": "PASS", "test": "NONE", "fix": "PASS"}}
{"copy_to_bytes_less": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "test_get_u16": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "test_vec_deque": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "bytes_mut::tests::test_original_capacity_to_repr": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "test_deref_buf_forwards": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "test_fresh_cursor_vec": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "test_bufs_vec": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "test_get_u8": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "bytes_mut::tests::test_original_capacity_from_repr": {"run": "PASS", "test": "PASS", "fix": "PASS"}}
{"test_get_int": {"run": "NONE", "test": "FAIL", "fix": "PASS"}}
{"test_maybe_uninit_buf_mut_small": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "freeze_after_advance_arc": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "vectored_read": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "reserve_in_arc_nonunique_does_not_overallocate": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_clone": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "freeze_after_split_off": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "reserve_vec_recycling": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytesmut_from_bytes_promotable_even_arc_2": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "fmt": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "buf_read": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "vec_is_unique": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "from_slice": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "len": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "slice_ref_empty_subslice": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "from_iter_no_size_hint": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_with_capacity_but_empty": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytesmut_from_bytes_arc_offset": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_vec_as_mut_buf": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_mut_unsplit_arc_different": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "freeze_after_split_to": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "reserve_growth": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "arc_is_unique": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "extend_from_slice_mut": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "box_slice_empty": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "shared_is_unique": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_put_u16": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "split_to_2": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "partial_eq_bytesmut": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "slice_ref_not_an_empty_subset": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytes_truncate": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytesmut_from_bytes_arc_2": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "freeze_clone_shared": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytes_vec_conversion": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "advance_bytes_mut": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "reserve_max_original_capacity_value": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "extend_mut_without_size_hint": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytes_from_vec_drop": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "slice_ref_works": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_mut_unsplit_arc_non_contiguous": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "fns_defined_for_bytes_mut": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "read": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "advance_static": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "reserve_in_arc_unique_does_not_overallocate_after_multiple_splits": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_buf_mut_advance": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytes_into_vec_promotable_even": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "iter_len": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "split_off_to_at_gt_len": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytesmut_from_bytes_arc_1": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "try_reclaim_vec": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "empty_slice_ref_not_an_empty_subset": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_put_bytes": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "try_reclaim_empty": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "split_off_uninitialized": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_buf_mut_reuse_when_fully_consumed": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_mut_unsplit_basic": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "reserve_shared_reuse": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytes_advance": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_mut_unsplit_empty_self": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_mut_unsplit_empty_other": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "freeze_after_advance": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytesmut_from_bytes_static": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "chain_get_bytes": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "take_copy_to_bytes": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "reserve_in_arc_unique_does_not_overallocate": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "extend_past_lower_limit_of_size_hint": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytes_truncate_and_advance": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_maybe_uninit_buf_mut_large": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "slice": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_deref_bufmut_forwards": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "writing_chained": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "iterating_two_bufs": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "sanity_check_odd_allocator": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_layout": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "index": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "split_to_1": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "extend_mut_from_bytes": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "reserve_in_arc_unique_does_not_overallocate_after_split": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_put_u8": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "split_off_to_loop": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_slice_buf_mut_large": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "freeze_clone_unique": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "from_static": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_put_int_le": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_into_vec": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytes_mut_conversion": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "advance_bytes_mut_remaining_capacity": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytes_clone_drop": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytes_into_vec": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "reserve_in_arc_unique_doubles": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "freeze_after_truncate_arc": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "long_take": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "slice_ref_empty": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "freeze_after_truncate": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "chain_overflow_remaining_mut": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_mut_unsplit_empty_other_keeps_capacity": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "fmt_write": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytesmut_from_bytes_bytes_mut_shared": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "reserve_allocates_at_least_original_capacity": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "extend_mut": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_mut_unsplit_two_split_offs": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytesmut_from_bytes_bytes_mut_vec": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytesmut_from_bytes_promotable_even_arc_offset": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "split_off": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytes_capacity_len": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_put_int": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "collect_two_bufs": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytesmut_from_bytes_vec": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytesmut_from_bytes_promotable_even_vec": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "static_is_unique": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "try_reclaim_arc": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_vec_put_bytes": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "advance_vec": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytesmut_from_bytes_bytes_mut_offset": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_slice_buf_mut_small": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "bytes_mut_unsplit_other_keeps_capacity": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "stress": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "truncate": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "chain_growing_buffer": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bounds": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "test_bytesmut_from_bytes_promotable_even_arc_1": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "mut_shared_is_unique": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "empty_iter_len": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "reserve_convert": {"run": "PASS", "test": "NONE", "fix": "PASS"}}
{"passed_count": 132, "failed_count": 0, "skipped_count": 0, "passed_tests": ["test_maybe_uninit_buf_mut_small", "freeze_after_advance_arc", "vectored_read", "reserve_in_arc_nonunique_does_not_overallocate", "test_clone", "copy_to_bytes_less", "freeze_after_split_off", "reserve_vec_recycling", "test_bytesmut_from_bytes_promotable_even_arc_2", "fmt", "buf_read", "vec_is_unique", "from_slice", "len", "slice_ref_empty_subslice", "from_iter_no_size_hint", "bytes_with_capacity_but_empty", "test_bytesmut_from_bytes_arc_offset", "test_vec_as_mut_buf", "bytes_mut_unsplit_arc_different", "test_get_u16", "freeze_after_split_to", "reserve_growth", "test_vec_deque", "arc_is_unique", "extend_from_slice_mut", "bytes_mut::tests::test_original_capacity_to_repr", "box_slice_empty", "shared_is_unique", "test_put_u16", "split_to_2", "partial_eq_bytesmut", "slice_ref_not_an_empty_subset", "test_bytes_truncate", "test_bytesmut_from_bytes_arc_2", "freeze_clone_shared", "test_bytes_vec_conversion", "advance_bytes_mut", "reserve_max_original_capacity_value", "extend_mut_without_size_hint", "test_bytes_from_vec_drop", "slice_ref_works", "bytes_mut_unsplit_arc_non_contiguous", "fns_defined_for_bytes_mut", "test_deref_buf_forwards", "read", "advance_static", "reserve_in_arc_unique_does_not_overallocate_after_multiple_splits", "bytes_buf_mut_advance", "test_bytes_into_vec_promotable_even", "iter_len", "test_fresh_cursor_vec", "split_off_to_at_gt_len", "test_bytesmut_from_bytes_arc_1", "try_reclaim_vec", "empty_slice_ref_not_an_empty_subset", "bytes_put_bytes", "try_reclaim_empty", "split_off_uninitialized", "bytes_buf_mut_reuse_when_fully_consumed", "bytes_mut_unsplit_basic", "reserve_shared_reuse", "test_bytes_advance", "bytes_mut_unsplit_empty_self", "bytes_mut_unsplit_empty_other", "freeze_after_advance", "test_bytesmut_from_bytes_static", "chain_get_bytes", "take_copy_to_bytes", "test_bufs_vec", "reserve_in_arc_unique_does_not_overallocate", "extend_past_lower_limit_of_size_hint", "test_bytes_truncate_and_advance", "test_maybe_uninit_buf_mut_large", "slice", "test_deref_bufmut_forwards", "writing_chained", "iterating_two_bufs", "sanity_check_odd_allocator", "test_layout", "index", "test_get_u8", "split_to_1", "bytes_mut::tests::test_original_capacity_from_repr", "extend_mut_from_bytes", "reserve_in_arc_unique_does_not_overallocate_after_split", "test_put_u8", "split_off_to_loop", "test_slice_buf_mut_large", "freeze_clone_unique", "from_static", "test_put_int_le", "bytes_into_vec", "test_bytes_mut_conversion", "advance_bytes_mut_remaining_capacity", "test_bytes_clone_drop", "test_bytes_into_vec", "reserve_in_arc_unique_doubles", "freeze_after_truncate_arc", "long_take", "slice_ref_empty", "freeze_after_truncate", "chain_overflow_remaining_mut", "bytes_mut_unsplit_empty_other_keeps_capacity", "fmt_write", "test_bytesmut_from_bytes_bytes_mut_shared", "reserve_allocates_at_least_original_capacity", "extend_mut", "bytes_mut_unsplit_two_split_offs", "test_bytesmut_from_bytes_bytes_mut_vec", "test_bytesmut_from_bytes_promotable_even_arc_offset", "split_off", "test_bytes_capacity_len", "test_put_int", "collect_two_bufs", "test_bytesmut_from_bytes_vec", "test_bytesmut_from_bytes_promotable_even_vec", "static_is_unique", "try_reclaim_arc", "test_vec_put_bytes", "advance_vec", "test_bytesmut_from_bytes_bytes_mut_offset", "test_slice_buf_mut_small", "bytes_mut_unsplit_other_keeps_capacity", "stress", "truncate", "chain_growing_buffer", "test_bounds", "test_bytesmut_from_bytes_promotable_even_arc_1", "mut_shared_is_unique", "empty_iter_len", "reserve_convert"], "failed_tests": [], "skipped_tests": []}
{"passed_count": 9, "failed_count": 1, "skipped_count": 0, "passed_tests": ["bytes_mut::tests::test_original_capacity_to_repr", "test_bufs_vec", "test_vec_deque", "test_fresh_cursor_vec", "test_get_u8", "bytes_mut::tests::test_original_capacity_from_repr", "copy_to_bytes_less", "test_deref_buf_forwards", "test_get_u16"], "failed_tests": ["test_get_int"], "skipped_tests": []}
{"passed_count": 133, "failed_count": 0, "skipped_count": 0, "passed_tests": ["test_maybe_uninit_buf_mut_small", "freeze_after_advance_arc", "vectored_read", "reserve_in_arc_nonunique_does_not_overallocate", "test_clone", "copy_to_bytes_less", "freeze_after_split_off", "reserve_vec_recycling", "test_bytesmut_from_bytes_promotable_even_arc_2", "fmt", "buf_read", "vec_is_unique", "from_slice", "len", "slice_ref_empty_subslice", "from_iter_no_size_hint", "bytes_with_capacity_but_empty", "test_bytesmut_from_bytes_arc_offset", "test_vec_as_mut_buf", "bytes_mut_unsplit_arc_different", "test_get_u16", "freeze_after_split_to", "reserve_growth", "test_vec_deque", "arc_is_unique", "extend_from_slice_mut", "bytes_mut::tests::test_original_capacity_to_repr", "box_slice_empty", "shared_is_unique", "test_put_u16", "split_to_2", "partial_eq_bytesmut", "slice_ref_not_an_empty_subset", "test_bytes_truncate", "test_bytesmut_from_bytes_arc_2", "freeze_clone_shared", "test_bytes_vec_conversion", "advance_bytes_mut", "reserve_max_original_capacity_value", "extend_mut_without_size_hint", "test_bytes_from_vec_drop", "slice_ref_works", "bytes_mut_unsplit_arc_non_contiguous", "fns_defined_for_bytes_mut", "test_deref_buf_forwards", "read", "advance_static", "reserve_in_arc_unique_does_not_overallocate_after_multiple_splits", "bytes_buf_mut_advance", "test_bytes_into_vec_promotable_even", "iter_len", "test_fresh_cursor_vec", "split_off_to_at_gt_len", "test_bytesmut_from_bytes_arc_1", "try_reclaim_vec", "empty_slice_ref_not_an_empty_subset", "bytes_put_bytes", "try_reclaim_empty", "split_off_uninitialized", "bytes_buf_mut_reuse_when_fully_consumed", "bytes_mut_unsplit_basic", "reserve_shared_reuse", "test_bytes_advance", "bytes_mut_unsplit_empty_self", "bytes_mut_unsplit_empty_other", "freeze_after_advance", "test_bytesmut_from_bytes_static", "chain_get_bytes", "take_copy_to_bytes", "test_bufs_vec", "reserve_in_arc_unique_does_not_overallocate", "extend_past_lower_limit_of_size_hint", "test_bytes_truncate_and_advance", "test_maybe_uninit_buf_mut_large", "slice", "test_deref_bufmut_forwards", "writing_chained", "iterating_two_bufs", "sanity_check_odd_allocator", "test_layout", "index", "test_get_u8", "split_to_1", "bytes_mut::tests::test_original_capacity_from_repr", "extend_mut_from_bytes", "reserve_in_arc_unique_does_not_overallocate_after_split", "test_put_u8", "split_off_to_loop", "test_slice_buf_mut_large", "freeze_clone_unique", "from_static", "test_put_int_le", "bytes_into_vec", "test_bytes_mut_conversion", "advance_bytes_mut_remaining_capacity", "test_bytes_clone_drop", "test_bytes_into_vec", "reserve_in_arc_unique_doubles", "freeze_after_truncate_arc", "long_take", "slice_ref_empty", "freeze_after_truncate", "chain_overflow_remaining_mut", "bytes_mut_unsplit_empty_other_keeps_capacity", "fmt_write", "test_bytesmut_from_bytes_bytes_mut_shared", "reserve_allocates_at_least_original_capacity", "extend_mut", "bytes_mut_unsplit_two_split_offs", "test_bytesmut_from_bytes_bytes_mut_vec", "test_bytesmut_from_bytes_promotable_even_arc_offset", "split_off", "test_bytes_capacity_len", "test_put_int", "collect_two_bufs", "test_bytesmut_from_bytes_vec", "test_get_int", "test_bytesmut_from_bytes_promotable_even_vec", "static_is_unique", "try_reclaim_arc", "test_vec_put_bytes", "advance_vec", "test_bytesmut_from_bytes_bytes_mut_offset", "test_slice_buf_mut_small", "bytes_mut_unsplit_other_keeps_capacity", "stress", "truncate", "chain_growing_buffer", "test_bounds", "test_bytesmut_from_bytes_promotable_even_arc_1", "mut_shared_is_unique", "empty_iter_len", "reserve_convert"], "failed_tests": [], "skipped_tests": []}