about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-07-20 13:22:36 +0000
committerbors <bors@rust-lang.org>2018-07-20 13:22:36 +0000
commit509cbf3e8ecf1cf92b7051fa54e9360ad7b7449f (patch)
tree37ee7a6fe652135c829a046b053de90d814cc3e8 /src/rustllvm/RustWrapper.cpp
parent3bea4d1fc66b0ab1406c4c0e184af761485a3c6a (diff)
parent9329957d321a3612fe9c95cf58a67115b0bbda5f (diff)
downloadrust-509cbf3e8ecf1cf92b7051fa54e9360ad7b7449f.tar.gz
rust-509cbf3e8ecf1cf92b7051fa54e9360ad7b7449f.zip
Auto merge of #52498 - oli-obk:const_prop, r=nikomatsakis
Const propagate casts

fixes #49760

So... This fixes the original issue about the missing warnings.

But our test suite contains fun things like

```rust
fn foo() {}
assert_eq!(foo as i16, foo as usize as i16);
```

Which, will result in

> a raw memory access tried to access part of a pointer value as raw bytes

on both sides of the assertion. Because well... that's exactly what's going on! We're ripping out 16 bits of a pointer.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions