Function rustdoc::rust_input [−][src]
fn rust_input<R, F>(
cratefile: PathBuf,
externs: Externs,
edition: Edition,
cg: CodegenOptions,
matches: &Matches,
error_format: ErrorOutputType,
f: F
) -> R where
R: 'static + Send,
F: 'static + Send + FnOnce(Output) -> R,
Interprets the input file as a rust source file, passing it through the compiler all the way through the analysis passes. The rustdoc output is then generated from the cleaned AST of the crate.
This form of input will run all of the plug/cleaning passes