about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2016-05-09 12:50:22 -0700
committerManish Goregaokar <manishsmail@gmail.com>2016-05-09 14:59:42 -0700
commitfb382df1f8e9f7124659f4cdb02f0ab311ea02b4 (patch)
treeacdbae23f0e1cfcfaf9c5cb33ae9ecc92d6e0cb3
parent6436b6080c6f9268ee641e54e13e7d7e4ba0f8b4 (diff)
parentba17bd0b42b3f8e13cac97781f7d81efad13b166 (diff)
downloadrust-fb382df1f8e9f7124659f4cdb02f0ab311ea02b4.tar.gz
rust-fb382df1f8e9f7124659f4cdb02f0ab311ea02b4.zip
Rollup merge of #33509 - birkenfeld:issue-30219, r=alexcrichton
rustdoc: fix emitting duplicate implementors in .js files

The collect() fn checks for double quotes; use them here as well.

Fixes: #30219
-rw-r--r--src/librustdoc/html/render.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs
index 79c4b18211e..6a2a0a37c1c 100644
--- a/src/librustdoc/html/render.rs
+++ b/src/librustdoc/html/render.rs
@@ -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);
         for imp in imps {
             // If the trait and implementation are in the same crate, then
             // there's no need to emit information about it (there's inlining