diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2024-09-14 18:12:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-14 18:12:13 +0200 |
| commit | 03e8b6bbfa1c098eb125ee192a012bcab4083c9b (patch) | |
| tree | c0ea52f487d2dc44de398aa208c09976bfe1145b /compiler/rustc_driver_impl/src | |
| parent | f87336724376b4038cf4faf7fcf08d5aa7813432 (diff) | |
| parent | 359b6589ac2efdbfedf42f29098394c1f62d4dd3 (diff) | |
| download | rust-03e8b6bbfa1c098eb125ee192a012bcab4083c9b.tar.gz rust-03e8b6bbfa1c098eb125ee192a012bcab4083c9b.zip | |
Rollup merge of #130294 - nnethercote:more-lifetimes, r=lcnr
Lifetime cleanups The last commit is very opinionated, let's see how we go. r? `@oli-obk`
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, |
