diff options
| author | bors <bors@rust-lang.org> | 2015-05-17 23:53:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-05-17 23:53:41 +0000 |
| commit | 0cc99f9cc9b59518f618a2c3f5011000e60f922e (patch) | |
| tree | 898be95172a41f2d364bb8bcf5ee2a41c119b105 /src/test/codegen/stack-alloc-string-slice.rs | |
| parent | e4d56b7b5b68cd5cfb4bb65f974af701ab556241 (diff) | |
| parent | d1605deab864d83e5fd5b4e9749d5fd1320fb1fc (diff) | |
| download | rust-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
