Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustdoc-search: use lowercase, non-normalized name for type search #126176

Merged
merged 1 commit into from
Jun 9, 2024

Conversation

notriddle
Copy link
Contributor

The type name ID map has underscores in its names, so the query element should have them, too.

Fixes #125993

@rustbot
Copy link
Collaborator

rustbot commented Jun 8, 2024

r? @fmease

rustbot has assigned @fmease.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot
Copy link
Collaborator

rustbot commented Jun 8, 2024

Some changes occurred in HTML/CSS/JS.

cc @GuillaumeGomez, @jsha

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Jun 8, 2024
@notriddle notriddle force-pushed the notriddle/fix-type-name-normalize branch 2 times, most recently from d16ddb6 to ff0c10c Compare June 8, 2024 22:37
@fmease
Copy link
Member

fmease commented Jun 9, 2024

@bors r+

@bors
Copy link
Contributor

bors commented Jun 9, 2024

📌 Commit ff0c10c has been approved by fmease

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 9, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 9, 2024
…rmalize, r=fmease

rustdoc-search: use lowercase, non-normalized name for type search

The type name ID map has underscores in its names, so the query element should have them, too.

Fixes rust-lang#125993
@bors
Copy link
Contributor

bors commented Jun 9, 2024

⌛ Testing commit ff0c10c with merge a47d1e2...

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Jun 9, 2024

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jun 9, 2024
@fmease
Copy link
Member

fmease commented Jun 9, 2024

Right, I guess we should make this a platform-agnostic test ^^'.

Min:

pub type pid_t = i32;
pub fn get_pid() -> pid_t { 0 }
pub fn set_pid(_: pid_t) {}

@rustbot author

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 9, 2024
@notriddle notriddle force-pushed the notriddle/fix-type-name-normalize branch from ff0c10c to f2d707d Compare June 9, 2024 17:35
@notriddle
Copy link
Contributor Author

Yeah. 🤦

@bors r=fmease

@bors
Copy link
Contributor

bors commented Jun 9, 2024

📌 Commit f2d707d has been approved by fmease

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jun 9, 2024
@rust-log-analyzer

This comment has been minimized.

jieyouxu added a commit to jieyouxu/rust that referenced this pull request Jun 9, 2024
…normalize, r=fmease

rustdoc-search: use lowercase, non-normalized name for type search

The type name ID map has underscores in its names, so the query element should have them, too.

Fixes rust-lang#125993
@jieyouxu
Copy link
Member

jieyouxu commented Jun 9, 2024

Unfortunately this needs to x fmt.
@bors r-

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jun 9, 2024
The type name ID map has underscores in its names, so the query
element should have them, too.
@notriddle notriddle force-pushed the notriddle/fix-type-name-normalize branch from f2d707d to 8865b8c Compare June 9, 2024 18:56
@notriddle
Copy link
Contributor Author

@bors r=fmease

@bors
Copy link
Contributor

bors commented Jun 9, 2024

📌 Commit 8865b8c has been approved by fmease

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jun 9, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 9, 2024
Rollup of 4 pull requests

Successful merges:

 - rust-lang#126172 (Weekly `cargo update`)
 - rust-lang#126176 (rustdoc-search: use lowercase, non-normalized name for type search)
 - rust-lang#126190 (Autolabel run-make tests, remind to update tracking issue)
 - rust-lang#126194 (Migrate more things to `WinError`)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 1fb4805 into rust-lang:master Jun 9, 2024
6 checks passed
@rustbot rustbot added this to the 1.81.0 milestone Jun 9, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Jun 9, 2024
Rollup merge of rust-lang#126176 - notriddle:notriddle/fix-type-name-normalize, r=fmease

rustdoc-search: use lowercase, non-normalized name for type search

The type name ID map has underscores in its names, so the query element should have them, too.

Fixes rust-lang#125993
@notriddle notriddle deleted the notriddle/fix-type-name-normalize branch June 10, 2024 00:16
Folyd added a commit to Folyd/rust that referenced this pull request Jun 10, 2024
Folyd added a commit to Folyd/rust that referenced this pull request Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rustdoc: search for type alias says "type X not found, showing type X instead"
6 participants