about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-11-05 09:11:45 +0000
committerbors <bors@rust-lang.org>2017-11-05 09:11:45 +0000
commit4efcc660f09ce3e83d194889f6d1161bf865f788 (patch)
tree687a9cd8774248d39bdca6df1f743f766bd99466 /src/libstd/sys/unix/stack_overflow.rs
parent16e9b9f15cc405cfccc4469216b8711abbeae9d5 (diff)
parent0d745af29a7566538277bd7a3b16faf09df7fe63 (diff)
downloadrust-4efcc660f09ce3e83d194889f6d1161bf865f788.tar.gz
rust-4efcc660f09ce3e83d194889f6d1161bf865f788.zip
Auto merge of #45754 - scottmcm:checked-npot, r=dtolnay
Fix #18604: next_power_of_two should panic on overflow

Fixes https://github.com/rust-lang/rust/issues/18604

Is it possible to write a test for this?  My experiments showed `x.py test` running in release mode, so my attempt at a `#[should_panic]` didn't work.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions