associated_item table is not populated after type error. #40343
Labels
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This is the underlying cause of the ICE in #39957. I worked around it in save-analysis, but @eddyb (cc) asked me to file an issue since it might cause bugs elsewhere.
Example code:
Because of the error on the last line, we never create the
associated_item
table on the tcx, which means that bothimpl_of_method
andtrait_of_item
returnNone
forfoo
.The text was updated successfully, but these errors were encountered: