diff options
| author | bors <bors@rust-lang.org> | 2018-07-20 13:22:36 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-07-20 13:22:36 +0000 |
| commit | 509cbf3e8ecf1cf92b7051fa54e9360ad7b7449f (patch) | |
| tree | 37ee7a6fe652135c829a046b053de90d814cc3e8 /src/rustllvm/RustWrapper.cpp | |
| parent | 3bea4d1fc66b0ab1406c4c0e184af761485a3c6a (diff) | |
| parent | 9329957d321a3612fe9c95cf58a67115b0bbda5f (diff) | |
| download | rust-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
