1 2 3 4 5 6 7 8 9 10 11
use super::*; impl Ctxt<'_, '_, '_> { pub(super) fn print_comment(&mut self) { if let DocComments::Visible = self.fmt.doc_comments { if let Some(comment) = &self.ty.comment { self.out.writeln_comment(comment); } } } }