[−][src]Function rustc_ap_rustc_ast_pretty::pprust::print_crate
pub fn print_crate<'a>(
sm: &'a SourceMap,
krate: &Crate,
filename: FileName,
input: String,
ann: &'a dyn PpAnn,
is_expanded: bool,
edition: Edition,
has_injected_crate: bool
) -> String
Requires you to pass an input filename and reader so that it can scan the input text for comments to copy forward.