]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_driver/src/lib.rs
Rollup merge of #85766 - workingjubilee:file-options, r=yaahc
[rust.git] / compiler / rustc_driver / src / lib.rs
index 6b3c65dd52722ebfd1b126ca4957affc7755a08b..09fe3a552a0a624df7a317ffef7209f6a0b91ca2 100644 (file)
@@ -215,7 +215,6 @@ fn run_compiler(
 
     let cfg = interface::parse_cfgspecs(matches.opt_strs("cfg"));
     let (odir, ofile) = make_output(&matches);
-    let temps_dir = make_temps_dir(&matches);
     let mut config = interface::Config {
         opts: sopts,
         crate_cfg: cfg,
@@ -223,7 +222,6 @@ fn run_compiler(
         input_path: None,
         output_file: ofile,
         output_dir: odir,
-        temps_dir,
         file_loader,
         diagnostic_output,
         stderr: None,
@@ -458,11 +456,6 @@ fn make_output(matches: &getopts::Matches) -> (Option<PathBuf>, Option<PathBuf>)
     (odir, ofile)
 }
 
-// Extract temporary directory from matches.
-fn make_temps_dir(matches: &getopts::Matches) -> Option<PathBuf> {
-    matches.opt_str("temps-dir").map(|o| PathBuf::from(&o))
-}
-
 // Extract input (string or file and optional path) from matches.
 fn make_input(
     error_format: ErrorOutputType,