1
Fork 0
This commit is contained in:
QuietMisdreavus 2018-03-29 09:12:24 +02:00
parent d9bf37a5ae
commit 97aead0c6c

View file

@ -535,8 +535,14 @@ fn parse_externs(matches: &getopts::Matches) -> Result<Externs, String> {
/// generated from the cleaned AST of the crate. /// generated from the cleaned AST of the crate.
/// ///
/// This form of input will run all of the plug/cleaning passes /// This form of input will run all of the plug/cleaning passes
fn rust_input<R, F>(cratefile: PathBuf, externs: Externs, edition: Edition, matches: &getopts::Matches, f: F) -> R fn rust_input<R, F>(cratefile: PathBuf,
where R: 'static + Send, F: 'static + Send + FnOnce(Output) -> R { externs: Externs,
edition: Edition,
matches: &getopts::Matches,
f: F) -> R
where R: 'static + Send,
F: 'static + Send + FnOnce(Output) -> R
{
let mut default_passes = !matches.opt_present("no-defaults"); let mut default_passes = !matches.opt_present("no-defaults");
let mut passes = matches.opt_strs("passes"); let mut passes = matches.opt_strs("passes");
let mut plugins = matches.opt_strs("plugins"); let mut plugins = matches.opt_strs("plugins");