Open
Description
This is an error today:
#[salsa::tracked]
struct SymTy<'db> {
...
}
#[salsa::tracked]
impl<'db> SymTy<'db> {
#[salsa::tracked]
pub fn unit(db: &'db dyn Db) -> Self {}
}
...but why? I can still desugar this relatively easily to a regular function calling __unit
(see below), so why can't the macro do it?
#[salsa::tracked]
fn __unit(db: &'db dyn Db) -> SymTy<'db> { ... }