Open coadler opened 4 years ago
Same issue here. This also causes a borrowed data escapes outside of function
with an Arc<T>
for some reason.
Will try to fix real quick and open a PR.
Same issue here. This also causes a
borrowed data escapes outside of function
with anArc<T>
for some reason.Will try to fix real quick and open a PR.
It seems that my issue is not the same. Generics are not copied to the no_cache
fn. Will open new issue.
Given this example function
Expands to
Resulting in
Since the lifetime specifiers aren't copied into the
inner
func, we're not able to return types that require specifiers. The same problem exists with thecached!
macro, except that it completely fails to parse the lifetimes instead of translating them wrong.