about summary refs log tree commit diff
path: root/tests/ui/numbers-arithmetic/next-power-of-two-overflow-debug.rs
diff options
context:
space:
mode:
authorThe 8472 <git@infinite-source.de>2023-01-16 21:39:36 +0100
committerThe 8472 <git@infinite-source.de>2023-01-17 22:01:33 +0100
commit47014b1bb968be08923a670b1ebfe4deb4256601 (patch)
treeacff87ab6d745ea43d48a0eaf2c7a907b893e185 /tests/ui/numbers-arithmetic/next-power-of-two-overflow-debug.rs
parent481725984b4cd94ef5c00917b01c1771b6e5299c (diff)
downloadrust-47014b1bb968be08923a670b1ebfe4deb4256601.tar.gz
rust-47014b1bb968be08923a670b1ebfe4deb4256601.zip
Don't do pointer arithmetic on pointers to deallocated memory
vec::Splice can invalidate the slice::Iter inside vec::Drain.
So we replace them with dangling pointers which, unlike ones to
deallocated memory, are allowed.
Diffstat (limited to 'tests/ui/numbers-arithmetic/next-power-of-two-overflow-debug.rs')
0 files changed, 0 insertions, 0 deletions