]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #88578 - notriddle:notriddle/suggest-add-reference-to-for-loop-iter...
authorManish Goregaokar <manishsmail@gmail.com>
Fri, 10 Sep 2021 15:23:18 +0000 (08:23 -0700)
committerGitHub <noreply@github.com>
Fri, 10 Sep 2021 15:23:18 +0000 (08:23 -0700)
commit257f5adf0ee5708ddc433b6068ba6aa856a7ddd4
treeab8b2b03e150ce6996be2a99565fe84da8dc5b81
parentdc003dd49e5599a0de22653d6bd4aaa8d460234e
parentd6ff916c2fe6a47f52fc14e4f6d85e92d07e5e76
Rollup merge of #88578 - notriddle:notriddle/suggest-add-reference-to-for-loop-iter, r=nagisa

fix(rustc): suggest `items` be borrowed in `for i in items[x..]`

Fixes #87994
compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs