]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #90040 - nbdd0121:issue-90038, r=oli-obk
authorbors <bors@rust-lang.org>
Tue, 19 Oct 2021 08:13:35 +0000 (08:13 +0000)
committerbors <bors@rust-lang.org>
Tue, 19 Oct 2021 08:13:35 +0000 (08:13 +0000)
commitd45ed7502ad225739270a368528725930f54b7b6
tree549fba1d1bac027b4e619fe1f10b4f3d13708000
parent2f22e63cc4b61d2f42b92eee11480a4f93dc2771
parent7dbd5bb0bd655abe3f4de232f9ccb50db3843d42
Auto merge of #90040 - nbdd0121:issue-90038, r=oli-obk

Fix wrong niche calculation when 2+ niches are placed at the start

When the niche is at the start, existing code incorrectly uses 1 instead of count for subtraction.

Fix #90038

`@rustbot` label: T-compiler