You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
move DefDatabased::expand_proc_attr_macros out of the query group
This required several non-trivial changes:
- Rename the existing `ProcMacros::get` to `ProcMacros::get_for_crate`
(feel free to suggest a better name), to avoid clashing with the new
getter created by salsa.
- Change `ProcMacroBuilder::build` to take `db` and `durability`, as it
will need to build `ProcMacros` inside the `db`. Also rename it to
`build_in`, to reflect the change in functionality.
- `ProcMacros` is now stored in the database directly, instead of being
wrapped in an Arc. This should be fine though, since its `by_crate`
field is marked with `#[returns(ref)]`.
0 commit comments