-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Fix macro missing from doc search #51592
Conversation
It's not just macros, it's any namespace collision like the following: pub fn foo() {}
pub struct foo {} only one |
I'll extend the fix then. |
@ollie27: Your code doesn't work btw (for obvious reasons) but I extended my fix to make it work on all items at once. |
Ping from triage @QuietMisdreavus! This PR needs your review. |
src/librustdoc/html/static/main.js
Outdated
@@ -160,6 +160,7 @@ | |||
// used for special search precedence | |||
var TY_PRIMITIVE = itemTypes.indexOf("primitive"); | |||
var TY_KEYWORD = itemTypes.indexOf("keyword"); | |||
var TY_MACRO = itemTypes.indexOf("macro"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TY_MACRO
is no longer used anywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True! Good catch!
What code? This will need to be backported to beta as it affects 1.28. |
This one: pub fn foo() {}
pub struct foo {} |
I'll just go ahead, this is a huge fix and I know that @QuietMisdreavus is very busy. Not having a fully working search is just too much of a problem. @bors: r+ p=1 |
📌 Commit e3b2583 has been approved by |
…meGomez Fix macro missing from doc search Fixes #51095. r? @QuietMisdreavus
☀️ Test successful - status-appveyor, status-travis |
Ping @rust-lang/rustdoc, can someone approve the beta backport (if you want to do that)? Thanks! |
I approve it (if needed). |
Fixes #51095.
r? @QuietMisdreavus