Skip to content

Commit 1a62b17

Browse files
QuietMisdreavusManishearth
authored andcommitted
clean module docs while its module ID is still on the stack
1 parent eca3c55 commit 1a62b17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustdoc/clean/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ impl Clean<Item> for doctree::Module {
476476
// we could also pass this down through clean()
477477
// but that might complicate things.
478478
cx.mod_ids.borrow_mut().push(self.id);
479+
let attrs = self.attrs.clean(cx);
479480

480481
let mut items: Vec<Item> = vec![];
481482
items.extend(self.extern_crates.iter().map(|x| x.clean(cx)));
@@ -512,7 +513,7 @@ impl Clean<Item> for doctree::Module {
512513

513514
Item {
514515
name: Some(name),
515-
attrs: self.attrs.clean(cx),
516+
attrs,
516517
source: whence.clean(cx),
517518
visibility: self.vis.clean(cx),
518519
stability: self.stab.clean(cx),

0 commit comments

Comments
 (0)