]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #101492 - TaKO8Ki:suggest-adding-array-length-to-ref-to-array, r...
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Fri, 9 Sep 2022 13:36:35 +0000 (15:36 +0200)
committerGitHub <noreply@github.com>
Fri, 9 Sep 2022 13:36:35 +0000 (15:36 +0200)
commit6102ff18aedd16f69b66fe313e1dc77df254ac35
tree880c408cccafef1204c2e6299cccab42557e996b
parent46dadd65cb565f7ff61e7d878bfc629d64930e9f
parent1e384423a9cfd678f976cf0183c81a770da2a325
Rollup merge of #101492 - TaKO8Ki:suggest-adding-array-length-to-ref-to-array, r=oli-obk

Suggest adding array lengths to references to arrays if possible

ref: https://github.com/rust-lang/rust/pull/100590#pullrequestreview-1096851146
compiler/rustc_hir/src/hir.rs
compiler/rustc_typeck/src/check/expr.rs