We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed27f87 commit 1697adaCopy full SHA for 1697ada
src/librustdoc/clean/mod.rs
@@ -341,8 +341,6 @@ impl Clean<Vec<Item>> for hir::Item<'_> {
341
342
impl Clean<Item> for hir::Crate<'_> {
343
fn clean(&self, cx: &DocContext<'_>) -> Item {
344
- // TODO: use tcx.crate_name instead
345
- let name = None;
346
let attrs = self.item.attrs.clean(cx);
347
348
// Get _all_ the items!
@@ -385,7 +383,7 @@ impl Clean<Item> for hir::Crate<'_> {
385
383
386
384
let id = hir::CRATE_HIR_ID;
387
Item {
388
- name,
+ name: Some(cx.tcx.crate_name.clean(cx)),
389
attrs,
390
source: span.clean(cx),
391
visibility: Visibility::Public,
0 commit comments