You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently in #42669, we are handling only ConcreteFailure RegionResolution Errors. We need to detect and improve the error message for SubSupConflict Error as well.
structFoo{field:i32}implFoo{fnfoo2<'a>(&self,x:&'ai32) -> &'ai32{iftrue{&self.field}else{ x }}}
@cengizio expressed some interest in taking a look at this. @cengizio, here are some rough instructions for what would have to be done. Currently, when reporting region errors, we check for the special case of a "named-anon conflict". If you look into this function, you'll see that it first tests for ConcreteFailure. The basic task here is to extend that also work for SubSupConflict. I think, in this case, that is probably as easy as extracting the sub and sup regions involved (as well as the "main span") and returning them, and then checking what impact that has on the tests involved and making sure everything still looks ok. It's a good opportunity though to read over the code and understand what it does.
Activity
cengiz-io commentedon Jul 17, 2017
I'd like to start working on this if noone else is assigned.
nikomatsakis commentedon Jul 17, 2017
@cengizio expressed some interest in taking a look at this. @cengizio, here are some rough instructions for what would have to be done. Currently, when reporting region errors, we check for the special case of a "named-anon conflict". If you look into this function, you'll see that it first tests for
ConcreteFailure
. The basic task here is to extend that also work forSubSupConflict
. I think, in this case, that is probably as easy as extracting the sub and sup regions involved (as well as the "main span") and returning them, and then checking what impact that has on the tests involved and making sure everything still looks ok. It's a good opportunity though to read over the code and understand what it does.gaurikholkar-zz commentedon Jul 17, 2017
You can read up my blogs here. I hope they will be of help :)
cengiz-io commentedon Aug 16, 2017
Ping: I was busy with other stuff since I've signed up to this. Now that they are over, I'm diving into it.
nikomatsakis commentedon Aug 30, 2017
I think this is a good test case:
cengiz-io commentedon Sep 5, 2017
Hello @gaurikholkar I was in LOA during last week, just returned. Will revise my PR tomorrow.
cengiz-io commentedon Sep 12, 2017
I've removed the redundant test case and updated the sample input with the provided one up in #42701 (comment)
4 remaining items