Avoid some warnings in production runs.
@@ -209,7 +209,10 @@ fn do_main(config: &Config, matches: &Matches) -> CargoResult<()> {
.map_err(|e| format!("could not spawn rustc: {}", e))?;
if let Some(ref mut stdin) = child.stdin {
- stdin.write_fmt(format_args!("extern crate new; extern crate old;"))?;
+ stdin.write_fmt(format_args!("#[allow(unused_extern_crate)] \
+ extern crate new; \
+ #[allow(unused_extern_crate)] \
+ extern crate old;"))?;
} else {
return Err("could not pipe to rustc (wtf?)".into());
}
