]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #67524 - LukasKalbertodt:improve-into-iter-lint, r=matthewjasper
authorbors <bors@rust-lang.org>
Wed, 25 Dec 2019 10:20:48 +0000 (10:20 +0000)
committerbors <bors@rust-lang.org>
Wed, 25 Dec 2019 10:20:48 +0000 (10:20 +0000)
commited33453a37d602f34cc40c205f9b9b8a8aff88b5
treec37ae05bd5ed0869fd2b2973b1dfb55d701ae5f6
parent7bc1665730002a5368b4384613758c7ddc77db09
parentf934b836ce3768915388880696256dffad2f00ca
Auto merge of #67524 - LukasKalbertodt:improve-into-iter-lint, r=matthewjasper

Generalize `array_into_iter` lint to also lint for boxed arrays

`Box` is special in that a method call on a box can move the value out
of the box. Thus, the same backwards-compatibility problem can arise
for boxed arrays as for simple arrays.

---

CC #66145
r? @matthewjasper  (as you reviewed the first PR)
src/librustc_lint/array_into_iter.rs