-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Handle block exprs as modules when finding their parents #18206
Conversation
container | ||
.unwrap_or(*def) | ||
.module(db) | ||
.map(|module| path(db, module, definition_owner_name(db, def, edition), edition)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.filter(|m| !matches!(m.definition_source(db).value, ModuleSource::BlockExpr(_))) | ||
.count() | ||
// exclude `m` itself | ||
.saturating_sub(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit awkward but we need to substract one when m
itself is a block expr module
☔ The latest upstream changes (presumably #18205) made this pull request unmergeable. Please resolve the merge conflicts. |
@bors delegate+ |
✌️ @ShoyuVanilla, you can now approve this pull request! If @Veykril told you to " |
2d45444
to
e09c2a0
Compare
☀️ Test successful - checks-actions |
Fixes #18187