Skip to content

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
Contributor

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
Collaborator

bors commented May 5, 2015

⌛ Testing commit f40d9d9 with merge c0100ce...

@bors
Copy link
Collaborator

bors commented May 5, 2015

@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