Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

rustc gets confused with classes that implement polymorphic ifaces #2936

Closed
eholk opened this Issue · 4 comments

3 participants

Eric Holk Niko Matsakis Tim Chevalier
Eric Holk

Here's a test case, and the compile error.

https://gist.github.com/3126225

Tim Chevalier catamorphism was assigned
Niko Matsakis

It looks like the type parameter is not being instantiated to a fresh tvar. A mite confusing.

Tim Chevalier

As I mentioned to @nikomatsakis earlier, I have a fix for this... but it breaks other test cases, so I'm still trying to figure out whether my fix was wrong or I exposed another bug.

Niko Matsakis

@catamorphism sorry forgot to look at that with you today. Maybe you can gist the patch?

Niko Matsakis

(or just push it to your local repo)

Tim Chevalier catamorphism closed this issue from a commit
Tim Chevalier catamorphism In ty::impl_traits, treat structs properly
Treat structs just like impls: use their associated list of
trait refs to get the list of traits that one of them implements.
I don't understand what was happening before, but it was wrong.

Closes #2936
a70e37b
Jay Anderson jayanderson referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Tim Chevalier catamorphism was unassigned by eholk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.