about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-05-17 23:53:41 +0000
committerbors <bors@rust-lang.org>2015-05-17 23:53:41 +0000
commit0cc99f9cc9b59518f618a2c3f5011000e60f922e (patch)
tree898be95172a41f2d364bb8bcf5ee2a41c119b105 /src/test/codegen/stack-alloc-string-slice.rs
parente4d56b7b5b68cd5cfb4bb65f974af701ab556241 (diff)
parentd1605deab864d83e5fd5b4e9749d5fd1320fb1fc (diff)
downloadrust-0cc99f9cc9b59518f618a2c3f5011000e60f922e.tar.gz
rust-0cc99f9cc9b59518f618a2c3f5011000e60f922e.zip
Auto merge of #25527 - inrustwetrust:const-not-overflow, r=alexcrichton
Fixes #23968.
Since the values are stored in a u64 internally, we need to be mask away the
high bits after applying the ! operator. Otherwise, these bits will be set to
one, causing overflow.
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions