Made temps-dir an unstable option.
This commit is contained in:
parent
d4bcee9638
commit
ede76c40d1
11 changed files with 18 additions and 24 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue