diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-12-06 18:56:28 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-01-16 08:03:06 +0000 |
| commit | f5c601492ee520d2ee4f6c133f7f4dfa7b0c13e2 (patch) | |
| tree | fd9f62b7b1b684f0ed4f85c209c51c22da8db833 /compiler/rustc_interface/src/interface.rs | |
| parent | 6b1a789fb69f832d2b3df53b9e42c08c919c7487 (diff) | |
| download | rust-f5c601492ee520d2ee4f6c133f7f4dfa7b0c13e2.tar.gz rust-f5c601492ee520d2ee4f6c133f7f4dfa7b0c13e2.zip | |
Remove redundant `input_path` field from `Config`
Diffstat (limited to 'compiler/rustc_interface/src/interface.rs')
| -rw-r--r-- | compiler/rustc_interface/src/interface.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_interface/src/interface.rs b/compiler/rustc_interface/src/interface.rs index 7f761b005ed..22a01db5e75 100644 --- a/compiler/rustc_interface/src/interface.rs +++ b/compiler/rustc_interface/src/interface.rs @@ -36,7 +36,6 @@ pub struct Compiler { pub(crate) sess: Lrc<Session>, codegen_backend: Lrc<Box<dyn CodegenBackend>>, pub(crate) input: Input, - pub(crate) input_path: Option<PathBuf>, pub(crate) output_dir: Option<PathBuf>, pub(crate) output_file: Option<PathBuf>, pub(crate) temps_dir: Option<PathBuf>, @@ -244,7 +243,6 @@ pub struct Config { pub crate_check_cfg: CheckCfg, pub input: Input, - pub input_path: Option<PathBuf>, pub output_dir: Option<PathBuf>, pub output_file: Option<PathBuf>, pub file_loader: Option<Box<dyn FileLoader + Send + Sync>>, @@ -292,7 +290,7 @@ pub fn run_compiler<R: Send>(config: Config, f: impl FnOnce(&Compiler) -> R + Se config.crate_cfg, config.crate_check_cfg, config.file_loader, - config.input_path.clone(), + config.input.opt_path(), config.lint_caps, config.make_codegen_backend, registry.clone(), @@ -308,7 +306,6 @@ pub fn run_compiler<R: Send>(config: Config, f: impl FnOnce(&Compiler) -> R + Se sess: Lrc::new(sess), codegen_backend: Lrc::new(codegen_backend), input: config.input, - input_path: config.input_path, output_dir: config.output_dir, output_file: config.output_file, temps_dir, |
