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. |
This comment has been minimized.
This comment has been minimized.
|
@bors squash |
This comment has been minimized.
This comment has been minimized.
* add regression tests for the fn sig ice * add issuelinks in on top of the tests * regenerate stderr snapshots
|
🔨 3 commits were squashed into 92196db. |
2daa62f to
92196db
Compare
|
I appreciate you taking the time to review this, thanks! @bors r=teor2345 rollup |
Rollup merge of #160746 - im-lunex:test_for_160628, r=teor2345 add regression tests for the fn sig ice follow-up to #160628 which fixed the `suggest_add_reference_to_arg` fn_sig ice adds the regression tests @teor2345 asked for in review - closure call with a missing-field struct literal (iced without the guard) - method call whose where-clause fails (covers the method-call branch) the impl def_id case cant be constructed, those obligations get dropped during probing and turn into e0599 instead
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