···269269 .map(|span| Comment::from((span, self.code.as_str())).content.into())
270270 .collect();
271271272272+ self.ast.type_info.documentation = self.ast.documentation.clone();
273273+272274 // Order statements to avoid misassociating doc comments after the
273275 // order has changed during compilation.
274276 let mut statements: Vec<_> = self.ast.definitions.iter_mut().collect();