Skip to content

Conversation

@lnicola
Copy link
Member

@lnicola lnicola commented Jul 1, 2020

No description provided.

continue;
};

// FIXME: reuse sb
Copy link
Member Author

Choose a reason for hiding this comment

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

This seems outdated (taken from highlighting?)

let pat = name.as_str();
let mut refs = vec![];

let sema = Semantics::new(db);
Copy link
Member Author

Choose a reason for hiding this comment

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

Oops


pub(crate) fn find_all_refs(
db: &RootDatabase,
sema: &Semantics<RootDatabase>,
Copy link
Member Author

Choose a reason for hiding this comment

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

This isn't great, but it's called from a couple of places.

@matklad
Copy link
Contributor

matklad commented Jul 1, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Jul 1, 2020

@bors bors bot merged commit 14bf5bb into rust-lang:master Jul 1, 2020
@lnicola lnicola deleted the reuse-sema branch July 1, 2020 15:19
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.

2 participants