summaryrefslogtreecommitdiffstats
path: root/src/librustdoc/visit.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustdoc/visit.rs')
-rw-r--r--src/librustdoc/visit.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/visit.rs b/src/librustdoc/visit.rs
index c40274394..d29ceead4 100644
--- a/src/librustdoc/visit.rs
+++ b/src/librustdoc/visit.rs
@@ -65,7 +65,7 @@ pub(crate) trait DocVisitor: Sized {
// FIXME: make this a simple by-ref for loop once external_traits is cleaned up
let external_traits = { std::mem::take(&mut *c.external_traits.borrow_mut()) };
for (k, v) in external_traits {
- v.trait_.items.iter().for_each(|i| self.visit_item(i));
+ v.items.iter().for_each(|i| self.visit_item(i));
c.external_traits.borrow_mut().insert(k, v);
}
}