-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Add more elements in the sidebar #45766
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
Conversation
src/test/rustdoc/sidebar-items.rs
Outdated
// @has - '//*[@class="sidebar-links"]/a' 'foo' | ||
// @has - '//*[@class="sidebar-title"]/a' 'Associated Constants' | ||
// @has - '//*[@class="sidebar-links"]/a' 'BAR' | ||
// @has - '//*[@class="sidebar-title"]/a' 'Associated Types' |
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.
[00:59:22] 14: @has check failed
[00:59:22] `XPATH PATTERN` did not match
[00:59:22] // @has - '//*[@class="sidebar-title"]/a' 'Required Methods'
[00:59:22] 16: @has check failed
[00:59:22] `XPATH PATTERN` did not match
[00:59:22] // @has - '//*[@class="sidebar-title"]/a' 'Provided Methods'
[00:59:22] 18: @has check failed
[00:59:22] `XPATH PATTERN` did not match
[00:59:22] // @has - '//*[@class="sidebar-title"]/a' 'Associated Constants'
[00:59:22] 20: @has check failed
[00:59:22] `XPATH PATTERN` did not match
[00:59:22] // @has - '//*[@class="sidebar-title"]/a' 'Associated Types'
[00:59:22] 31: @has check failed
[00:59:22] `XPATH PATTERN` did not match
[00:59:22] // @has - '//*[@class="sidebar-title"]/a' 'Fields'
[00:59:22] 41: @has check failed
[00:59:22] `XPATH PATTERN` did not match
[00:59:22] // @has - '//*[@class="sidebar-title"]/a' 'Variants'
[00:59:22] 50: @has check failed
[00:59:22] `XPATH PATTERN` did not match
[00:59:22] // @has - '//*[@class="sidebar-title"]/a' 'Fields'
[00:59:22] 52: @has check failed
[00:59:22] `XPATH PATTERN` did not match
[00:59:22] // @has - '//*[@class="sidebar-links"]/a' 'u'
ef9b7ed
to
18af3eb
Compare
Working! |
src/librustdoc/html/render.rs
Outdated
@@ -3547,6 +3547,10 @@ fn small_url_encode(s: &str) -> String { | |||
.replace("]", "%5D") | |||
} | |||
|
|||
fn small_html_encode(s: &str) -> String { |
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.
Why aren't you using Escape
? &
s appear in type parameters for impls so need to be escaped which Escape
will handle but this doens't.
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.
I didn't understand the second part of your comment (and to answer the first, I didn't know it existed, I'll update!).
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.
impl<'a> Add<&'a i32> for i32
is a valid thing to attempt to print, so the &
in there should be escaped properly in the html.
r=me with @ollie27's comment (and with travis) |
18af3eb
to
ac398a3
Compare
Updated, let's wait for travis now. |
Updated. |
@bors r=QuietMisdreavus Travis is green and the code is now using |
📌 Commit ac398a3 has been approved by |
…r=QuietMisdreavus Add more elements in the sidebar Fixes rust-lang#45740. r? @rust-lang/docs
Fixes #45740.
r? @rust-lang/docs