mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-11-24 04:09:36 +00:00
Merge pull request #612 from Veykril/veykril/push-lkqxvrqmzkoy
Some checks failed
Book / Book (push) Has been cancelled
Test / Test (false, beta) (push) Has been cancelled
Test / Test (false, stable) (push) Has been cancelled
Test / Test (true, nightly) (push) Has been cancelled
Test / Miri (push) Has been cancelled
Test / Benchmarks (push) Has been cancelled
Book / Deploy (push) Has been cancelled
Some checks failed
Book / Book (push) Has been cancelled
Test / Test (false, beta) (push) Has been cancelled
Test / Test (false, stable) (push) Has been cancelled
Test / Test (true, nightly) (push) Has been cancelled
Test / Miri (push) Has been cancelled
Test / Benchmarks (push) Has been cancelled
Book / Deploy (push) Has been cancelled
Emit struct in `#[tracked]` fn last for better IDE support
This commit is contained in:
commit
e4d36daf2d
1 changed files with 7 additions and 5 deletions
|
@ -67,11 +67,6 @@ macro_rules! setup_tracked_fn {
|
|||
$inner:ident,
|
||||
]
|
||||
) => {
|
||||
#[allow(non_camel_case_types)]
|
||||
$vis struct $fn_name {
|
||||
_priv: std::convert::Infallible,
|
||||
}
|
||||
|
||||
// Suppress this clippy lint because we sometimes require `'db` where the ordinary Rust rules would not.
|
||||
#[allow(clippy::needless_lifetimes)]
|
||||
$(#[$attr])*
|
||||
|
@ -288,5 +283,12 @@ macro_rules! setup_tracked_fn {
|
|||
}
|
||||
})
|
||||
}
|
||||
// The struct needs be last in the macro expansion in order to make the tracked
|
||||
// function's ident be identified as a function, not a struct, during semantic highlighting.
|
||||
// for more details, see https://github.com/salsa-rs/salsa/pull/612.
|
||||
#[allow(non_camel_case_types)]
|
||||
$vis struct $fn_name {
|
||||
_priv: std::convert::Infallible,
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue