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
This commit is contained in:
Manish Goregaokar 2016-05-09 12:50:22 -07:00
commit fb382df1f8
No known key found for this signature in database
GPG Key ID: 3BBF4D3E2EF79F98

View File

@ -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