rustdoc: Don't start indexing if a crate is already being indexed (#13149)

This PR updates the rustdoc indexing to not start indexing a crate that
is already being indexed.

Currently the indexing of a crate might get continuously interrupted by
the user's typing, resulting in thrashing of the indexing task and never
indexing the crate in its entirety.

Release Notes:

- N/A
0c28b6a11aMarshall Bowers committed on 6/17/2024, 3:52:05 PM· committed by GitHubparent16fce64
1 file changedLine totals unavailable