Skip to content

Commit

Permalink
Add explicit lifetimes to Executor::init.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Apr 30, 2019
1 parent af1fcb3 commit 1212c91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/core/compiler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub trait Executor: Send + Sync + 'static {
/// Called after a rustc process invocation is prepared up-front for a given
/// unit of work (may still be modified for runtime-known dependencies, when
/// the work is actually executed).
fn init(&self, _cx: &Context<'_, '_>, _unit: &Unit<'_>) {}
fn init<'a, 'cfg>(&self, _cx: &Context<'a, 'cfg>, _unit: &Unit<'a>) {}

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

0 comments on commit 1212c91

Please sign in to comment.