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

Don't suggest methods in certain cases #43829

Closed

Conversation

GuillaumeGomez
Copy link
Member

Fixes #43149.
Fixes #43420.

r? @nikomatsakis

Some(ty_)
}
ty::TypeVariants::TyAdt(_, subs) => {
if ty_.to_string().split("::").last().unwrap_or("").starts_with("Vec<") {
Copy link
Contributor

Choose a reason for hiding this comment

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

?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep... I needed to check if it was a Vec but if you have a better to check it, I'm all for it!

Copy link
Contributor

Choose a reason for hiding this comment

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

Like, ..., use an attribute?

@GuillaumeGomez
Copy link
Member Author

@arielb1 will be working on a way better fix so no need to keep this one closed.

@GuillaumeGomez GuillaumeGomez deleted the probe-return-type branch August 13, 2017 11:48
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