]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #89251 - estebank:negative-index-literals, r=davidtwco
authorManish Goregaokar <manishsmail@gmail.com>
Fri, 1 Oct 2021 06:41:06 +0000 (23:41 -0700)
committerGitHub <noreply@github.com>
Fri, 1 Oct 2021 06:41:06 +0000 (23:41 -0700)
Detect when negative literal indices are used and suggest appropriate code

1  2 
compiler/rustc_typeck/src/check/expr.rs