add regression tests for the fn sig ice - #160746
Conversation
|
r? @camelid rustbot has assigned @camelid. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
Cc @JohnTitor @Kivooeo who worked on who have context on #160628 |
|
feel free to review i will r= you |
There was a problem hiding this comment.
Thanks, these are good tests and improve the coverage of PR #160628.
the impl def_id case cant be constructed, those obligations get dropped during probing and turn into e0599 instead
I try to avoid modifying code we can't test, or code for things that can never happen. But I think this part of PR #160628 is still a good idea, because it removes an ICE that could become reachable after future code changes.
Sometimes, I add tests that are "as close as we can get" to reaching the changed code. But I think we've done a lot here already, so it's up to you if you want to add something like that in another PR. I don't mind either way.
There was a problem hiding this comment.
also add a links to issue in both tests
thanks letting me choose and yeah i would like to keep this much for now.. and sure im open if you say i should add more. |
follow-up to #160628 which fixed the
suggest_add_reference_to_argfn_sig iceadds the regression tests @teor2345 asked for in review
the impl def_id case cant be constructed, those obligations get dropped during probing and turn into e0599 instead