diff options
| author | bors <bors@rust-lang.org> | 2019-01-07 18:30:53 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-01-07 18:30:53 +0000 |
| commit | 140c1650e81649c8bf94a27b7b02aa327bd7def1 (patch) | |
| tree | 5aeb24faf963bae5e2ec258b869b1e335c4a36a8 /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff | |
| parent | dd94d3b93ca27453a92f61cd8972b363b4f7c9d2 (diff) | |
| parent | 27ea638a15b5d71e06a2dcc3cc996f35b4ab3bd1 (diff) | |
| download | rust-140c1650e81649c8bf94a27b7b02aa327bd7def1.tar.gz rust-140c1650e81649c8bf94a27b7b02aa327bd7def1.zip | |
Auto merge of #3600 - xfix:cast-ref-to-mut, r=flip1995
cast_ref_to_mut lint I see this pattern way too often, and it's completely wrong. In fact, due to how common this incorrect pattern is, [the Rustonomicon specifically points this out](https://doc.rust-lang.org/nomicon/transmutes.html). > - Transmuting an & to &mut is UB > - Transmuting an & to &mut is always UB > - No you can't do it > - No you're not special This is my first lint.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions
