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
{{ message }}
Repository navigation
Commit e2b71ad
Browse filesBrowse the repository at this point in the historyBrowse files
Auto merge of #158604 - LorrensP-2158466:less-alloc-during-res, r=petrochenkov
resolve: no allocation in `resolve_ident_in(_local)_module_*`
Somewhat of a follow up of #158207 and #158035. Remove the `or_default` call of `NameResolutions` which does an arena allocation. Prep work for parallel import resolution.
- cycle detection now works on `module` and `bindingkey` instead of the `NameResolution`. This should have no impact as `NameResolutions` are found by that pair.
- Now that we get an `Option<NameResolution>` the logic changed a bit to work with `None`. Did this by following the logic of the functions to see what would happen with a completely empty resolution (`or_default`).
r? @petrochenkov
0 commit comments