Skip to content

Commit 1212c91

Browse files
committed
Add explicit lifetimes to Executor::init.
1 parent af1fcb3 commit 1212c91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/core/compiler/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pub trait Executor: Send + Sync + 'static {
6060
/// Called after a rustc process invocation is prepared up-front for a given
6161
/// unit of work (may still be modified for runtime-known dependencies, when
6262
/// the work is actually executed).
63-
fn init(&self, _cx: &Context<'_, '_>, _unit: &Unit<'_>) {}
63+
fn init<'a, 'cfg>(&self, _cx: &Context<'a, 'cfg>, _unit: &Unit<'a>) {}
6464

6565
/// In case of an `Err`, Cargo will not continue with the build process for
6666
/// this package.

0 commit comments

Comments
 (0)