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

Generalize dropck to ignore item-less traits #25113

Merged
merged 3 commits into from
May 5, 2015

Conversation

pnkfelix
Copy link
Member

@pnkfelix pnkfelix commented May 5, 2015

Generalize dropck to ignore item-less traits

Fix #24805.

(This is the reopened + rebased version of PR #24898, which @huonw already reviewed.)

Namely, we need to catch cases like `trait Child : Parent { }` where
`Parent` itself defines methods.
The new functionality being tested here is that a drop impl bounded by
`UserDefined` does not cause dropck to inject its conservative
constraints on region inference.
@rust-highfive
Copy link
Collaborator

r? @pcwalton

(rust_highfive has picked a reviewer for you, use r? to override)

@pnkfelix
Copy link
Member Author

pnkfelix commented May 5, 2015

r? @huonw

@rust-highfive rust-highfive assigned huonw and unassigned pcwalton May 5, 2015
@pnkfelix
Copy link
Member Author

pnkfelix commented May 5, 2015

@bors r=huonw f40d9d9

bors added a commit that referenced this pull request May 5, 2015
Generalize dropck to ignore item-less traits

Fix #24805.

(This is the reopened + rebased version of PR #24898)
@bors
Copy link
Contributor

bors commented May 5, 2015

⌛ Testing commit f40d9d9 with merge c0100ce...

@bors bors merged commit f40d9d9 into rust-lang:master May 5, 2015
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.

dropck: Ignore bounds for traits without any items
5 participants