Repository navigation
[rustdoc] Fix search index generation: if crate content didn't change, it should generate the same search index - #166420
Merged
Conversation
…d generate the same search index
GuillaumeGomez
commented
Nov 23, 2026
| } | ||
| for i in (index + 1)..serialized_index.entry_data.len() { | ||
| for i in 0..serialized_index.entry_data.len() { | ||
| if i == index { |
Member
Author
There was a problem hiding this comment.
We skipped the items before the crate's name and the crate's itself. Since we now handle the items before the crate's name, I still skip the crate's. Or should I do a second loop instead? If you have a preference...
Contributor
|
@bors r+ rollup thanks! |
Contributor
notriddle
approved these changes
Nov 24, 2026
jhpratt
added a commit
to jhpratt/rust
that referenced
this pull request
Nov 24, 2026
… r=notriddle [rustdoc] Fix search index generation: if crate content didn't change, it should generate the same search index Fixes rust-lang#166236. The problem was that we didn't process items with index lower than the crate's name. For performance reason maybe? Not sure. r? @notriddle
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Nov 24, 2026
… r=notriddle [rustdoc] Fix search index generation: if crate content didn't change, it should generate the same search index Fixes rust-lang#166236. The problem was that we didn't process items with index lower than the crate's name. For performance reason maybe? Not sure. r? @notriddle
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 24, 2026
…uwer Rollup of 4 pull requests Successful merges: - #165538 (Supertraits returns Unnormalized) - #166033 (Abby: move span out of leaf region constraint) - #166399 (Add safety section for intrinsic volatile operations) - #166420 ([rustdoc] Fix search index generation: if crate content didn't change, it should generate the same search index)
Member
|
@bors try jobs=dist-apple-various |
This comment has been minimized.
This comment has been minimized.
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 24, 2026
[rustdoc] Fix search index generation: if crate content didn't change, it should generate the same search index try-job: dist-apple-various
Contributor
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Nov 24, 2026
… r=notriddle [rustdoc] Fix search index generation: if crate content didn't change, it should generate the same search index Fixes rust-lang#166236. The problem was that we didn't process items with index lower than the crate's name. For performance reason maybe? Not sure. r? @notriddle
This was referenced Nov 24, 2026
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 24, 2026
…uwer Rollup of 12 pull requests Successful merges: - #166340 (Revert "implement const Iterator for Range - #156216") - #165345 (Remove the 'eq', 'eq_trace', and 'goals_to_obligations' methods from 'At') - #165538 (Supertraits returns Unnormalized) - #165794 (`consider_impl_candidate` tweaks) - #160752 (Avoid inference constraints from opaque blanket impls) - #163187 (add `scalbn` and `ilogb` methods on floats) - #164541 (Add regression test for #152415) - #164543 (Add regression test for #151316) - #165920 (Introduce compute_abi helper and ComputeCallConv trait) - #166313 (Move `rustdoc-ui` tests in the right folder) - #166420 ([rustdoc] Fix search index generation: if crate content didn't change, it should generate the same search index) - #166485 (Allow passing `--exact-match` and `--purge` to `x perf`)
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 24, 2026
Rollup merge of #166420 - GuillaumeGomez:search-index-regen, r=notriddle [rustdoc] Fix search index generation: if crate content didn't change, it should generate the same search index Fixes #166236. The problem was that we didn't process items with index lower than the crate's name. For performance reason maybe? Not sure. r? @notriddle
TDecking
pushed a commit
to TDecking/miri
that referenced
this pull request
Nov 25, 2026
…uwer Rollup of 12 pull requests Successful merges: - rust-lang/rust#166340 (Revert "implement const Iterator for Range - rust-lang/rust#156216") - rust-lang/rust#165345 (Remove the 'eq', 'eq_trace', and 'goals_to_obligations' methods from 'At') - rust-lang/rust#165538 (Supertraits returns Unnormalized) - rust-lang/rust#165794 (`consider_impl_candidate` tweaks) - rust-lang/rust#160752 (Avoid inference constraints from opaque blanket impls) - rust-lang/rust#163187 (add `scalbn` and `ilogb` methods on floats) - rust-lang/rust#164541 (Add regression test for rust-lang/rust#152415) - rust-lang/rust#164543 (Add regression test for rust-lang/rust#151316) - rust-lang/rust#165920 (Introduce compute_abi helper and ComputeCallConv trait) - rust-lang/rust#166313 (Move `rustdoc-ui` tests in the right folder) - rust-lang/rust#166420 ([rustdoc] Fix search index generation: if crate content didn't change, it should generate the same search index) - rust-lang/rust#166485 (Allow passing `--exact-match` and `--purge` to `x perf`)
mehmettoplu-rs
pushed a commit
to mehmettoplu-rs/rustc_codegen_gcc
that referenced
this pull request
Nov 27, 2026
…uwer Rollup of 12 pull requests Successful merges: - rust-lang/rust#166340 (Revert "implement const Iterator for Range - rust-lang/rust#156216") - rust-lang/rust#165345 (Remove the 'eq', 'eq_trace', and 'goals_to_obligations' methods from 'At') - rust-lang/rust#165538 (Supertraits returns Unnormalized) - rust-lang/rust#165794 (`consider_impl_candidate` tweaks) - rust-lang/rust#160752 (Avoid inference constraints from opaque blanket impls) - rust-lang/rust#163187 (add `scalbn` and `ilogb` methods on floats) - rust-lang/rust#164541 (Add regression test for rust-lang/rust#152415) - rust-lang/rust#164543 (Add regression test for rust-lang/rust#151316) - rust-lang/rust#165920 (Introduce compute_abi helper and ComputeCallConv trait) - rust-lang/rust#166313 (Move `rustdoc-ui` tests in the right folder) - rust-lang/rust#166420 ([rustdoc] Fix search index generation: if crate content didn't change, it should generate the same search index) - rust-lang/rust#166485 (Allow passing `--exact-match` and `--purge` to `x perf`)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #166236.
The problem was that we didn't process items with index lower than the crate's name. For performance reason maybe? Not sure.
r? @notriddle