diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-09-12 13:16:21 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-09-13 15:36:55 +1000 |
| commit | 072bf482c98d0f33d8456c6000babf315b63e104 (patch) | |
| tree | 09403708b2afd4a7cc1b3c057e55dbb4ff436f47 /compiler/rustc_driver_impl/src | |
| parent | 7b613ed8d2b012c40cf326314b4b025141474f30 (diff) | |
| download | rust-072bf482c98d0f33d8456c6000babf315b63e104.tar.gz rust-072bf482c98d0f33d8456c6000babf315b63e104.zip | |
Remove unnecessary lifetime from `RunCompiler`.
This does change the external interface, but not in a way that will cause any breakage because external users don't mention the lifetimes.
Diffstat (limited to 'compiler/rustc_driver_impl/src')
| -rw-r--r-- | compiler/rustc_driver_impl/src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs index 1b7ca61cee8..9d4061d16a1 100644 --- a/compiler/rustc_driver_impl/src/lib.rs +++ b/compiler/rustc_driver_impl/src/lib.rs @@ -207,17 +207,17 @@ pub fn diagnostics_registry() -> Registry { } /// This is the primary entry point for rustc. -pub struct RunCompiler<'a, 'b> { +pub struct RunCompiler<'a> { at_args: &'a [String], - callbacks: &'b mut (dyn Callbacks + Send), + callbacks: &'a mut (dyn Callbacks + Send), file_loader: Option<Box<dyn FileLoader + Send + Sync>>, make_codegen_backend: Option<Box<dyn FnOnce(&config::Options) -> Box<dyn CodegenBackend> + Send>>, using_internal_features: Arc<std::sync::atomic::AtomicBool>, } -impl<'a, 'b> RunCompiler<'a, 'b> { - pub fn new(at_args: &'a [String], callbacks: &'b mut (dyn Callbacks + Send)) -> Self { +impl<'a> RunCompiler<'a> { + pub fn new(at_args: &'a [String], callbacks: &'a mut (dyn Callbacks + Send)) -> Self { Self { at_args, callbacks, |
