mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-22 04:44:29 +00:00
Merge pull request #653 from davidbarsky/davidbarsky/fix-completions-in-salsa-tracked-fns
chore: fix completions in `#[salsa::tracked]` functions
This commit is contained in:
commit
022c31835f
2 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,7 @@ macro_rules! setup_tracked_fn {
|
|||
output_ty: $output_ty:ty,
|
||||
|
||||
// Function body, may reference identifiers defined in `$input_pats` and the generics from `$generics`
|
||||
inner_fn: $inner_fn:item,
|
||||
inner_fn: {$($inner_fn:tt)*},
|
||||
|
||||
// Path to the cycle recovery function to use.
|
||||
cycle_recovery_fn: ($($cycle_recovery_fn:tt)*),
|
||||
|
@ -172,7 +172,7 @@ macro_rules! setup_tracked_fn {
|
|||
}
|
||||
|
||||
fn execute<$db_lt>($db: &$db_lt Self::DbView, ($($input_id),*): ($($input_ty),*)) -> Self::Output<$db_lt> {
|
||||
$inner_fn
|
||||
$($inner_fn)*
|
||||
|
||||
$inner($db, $($input_id),*)
|
||||
}
|
||||
|
|
|
@ -125,7 +125,7 @@ impl Macro {
|
|||
input_ids: [#(#input_ids),*],
|
||||
input_tys: [#(#input_tys),*],
|
||||
output_ty: #output_ty,
|
||||
inner_fn: #inner_fn,
|
||||
inner_fn: { #inner_fn },
|
||||
cycle_recovery_fn: #cycle_recovery_fn,
|
||||
cycle_recovery_strategy: #cycle_recovery_strategy,
|
||||
is_specifiable: #is_specifiable,
|
||||
|
|
Loading…
Reference in a new issue