-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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: fix emitting duplicate implementors in .js files #33509
Conversation
The collect() fn checks for double quotes; use them here as well. Fixes: rust-lang#30219
(rust_highfive has picked a reviewer for you, use r? to override) |
@@ -783,7 +783,7 @@ fn write_shared(cx: &Context, | |||
try_err!(write!(&mut f, "{}", *implementor), &mydst); | |||
} | |||
|
|||
try_err!(write!(&mut f, r"implementors['{}'] = [", krate.name), &mydst); | |||
try_err!(write!(&mut f, r#"implementors["{}"] = ["#, krate.name), &mydst); |
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'm wondering if it wouldn't be better to just use escaped double quotes...
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 don't mind. I was being consistent with https://github.com/birkenfeld/rust/blob/issue-30219/src/librustdoc/html/render.rs#L729
rustdoc: fix emitting duplicate implementors in .js files The collect() fn checks for double quotes; use them here as well. Fixes: rust-lang#30219
rustdoc: fix emitting duplicate implementors in .js files The collect() fn checks for double quotes; use them here as well. Fixes: rust-lang#30219
rustdoc: fix emitting duplicate implementors in .js files The collect() fn checks for double quotes; use them here as well. Fixes: rust-lang#30219
The collect() fn checks for double quotes; use them here as well.
Fixes: #30219