aboutsummaryrefslogtreecommitdiff
path: root/tests/test_bytes_vec_alloc.rs (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-07-13Add conversion from Bytes to Vec<u8> (#547)Gravatar Jiahao XU 1-0/+29
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> Co-authored-by: Alice Ryhl <aliceryhl@google.com>
2022-07-09miri: don't use int2ptr casts for invalid pointers (#553)Gravatar Alice Ryhl 1-1/+10
2021-11-07Appease miri (#515)Gravatar Noah Kennedy 1-39/+65
Rewrote the ledger in test_bytes_vec_alloc.rs to not piss off miri. The ledger is now a table within the allocator, which seems to satisfy miri. The old solution was to bundle an extra usize into the beginning of each allocation and then index past the start when deallocating data to get the size.
2020-05-22Format with rustfmt (#389)Gravatar Taiki Endo 1-1/+5
* Format with rustfmt * Add rustfmt check to CI
2020-01-22Fix Bytes::truncate losing the original Vec's capacity (#361)Gravatar Sean McArthur 1-0/+75