Skip to content
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

Unleash inner item resolution to users #7614

Merged
merged 8 commits into from
Feb 9, 2021
Merged

Unleash inner item resolution to users #7614

merged 8 commits into from
Feb 9, 2021

Conversation

jonas-schievink
Copy link
Contributor

Peek 2021-02-09 17-30

@lnicola
Copy link
Member

lnicola commented Feb 9, 2021

This still doesn't work with trait method resolution:

image

Still, it didn't eat my cat. I'd say we merge it so it can bake in the nightlies and for people who build from source.

Copy link
Member

@matklad matklad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks awesome to me!

crates/hir_def/src/resolver.rs Outdated Show resolved Hide resolved
let root = self.parse_or_expand(file_id).unwrap();
let ast_map = self.ast_id_map(file_id);
let item_tree = self.item_tree(file_id);
for decl in module.scope.declarations() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting... It feels like it might hit "accidentally quadratic" someday. We probably shouldn't worry about that now.

@jonas-schievink
Copy link
Contributor Author

bors r+

@bors
Copy link
Contributor

bors bot commented Feb 9, 2021

@bors bors bot merged commit 96a9ab7 into rust-lang:master Feb 9, 2021
@jonas-schievink jonas-schievink deleted the blockdefmap-resolver branch February 9, 2021 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants