Stream: general

Topic: sanity check this compiler error?


Colin Rofls (Aug 14 2019 at 15:18, on Zulip):

This sure looks like a compiler bug to me: attempting to deriving PartialEq when PartialEq is impled for a child type, but where Rhs is not Self produces, at least, an unhelpful error message. Anyone care to take a look at this before I open an issue?
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=ac13781b2c40c1966e18adfb919c236c

Colin Rofls (Aug 14 2019 at 15:19, on Zulip):

(and forgive me if this isn't the right place for this, not sure where to go with little things like this post-IRC)

centril (Aug 14 2019 at 15:20, on Zulip):

It's probably best to look at the macro expansion to see what is happening here

Colin Rofls (Aug 14 2019 at 15:42, on Zulip):

okay I see, mostly just a confusing error message. Is that worth opening an issue over?

centril (Aug 14 2019 at 15:42, on Zulip):

yep

Colin Rofls (Aug 14 2019 at 17:09, on Zulip):

okay thanks, filed https://github.com/rust-lang/rust/issues/63564.

Last update: Nov 20 2019 at 11:30UTC