11#![ feature( rustc_private) ]
22
3- extern crate rustc_interface;
43extern crate rustc_driver;
4+ extern crate rustc_interface;
55extern crate rustc_session;
66extern crate rustc_span;
77
8- use rustc_session:: config:: { Input , Options , OutputType , OutputTypes } ;
98use rustc_interface:: interface;
9+ use rustc_session:: config:: { Input , Options , OutputType , OutputTypes } ;
1010use rustc_span:: source_map:: FileName ;
1111
1212use std:: path:: PathBuf ;
@@ -50,7 +50,6 @@ fn compile(code: String, output: PathBuf, sysroot: PathBuf) {
5050 crate_cfg : Default :: default ( ) ,
5151 crate_check_cfg : Default :: default ( ) ,
5252 input,
53- input_path : None ,
5453 output_file : Some ( output) ,
5554 output_dir : None ,
5655 file_loader : None ,
@@ -64,9 +63,7 @@ fn compile(code: String, output: PathBuf, sysroot: PathBuf) {
6463
6564 interface:: run_compiler ( config, |compiler| {
6665 // This runs all the passes prior to linking, too.
67- let linker = compiler. enter ( |queries| {
68- queries. linker ( )
69- } ) ;
66+ let linker = compiler. enter ( |queries| queries. linker ( ) ) ;
7067 if let Ok ( linker) = linker {
7168 linker. link ( ) ;
7269 }
0 commit comments