Closed
Description
I inadvertently deleted a rustc_middle::ty::query::Providers
assignment (which meant that any tcx.some_unassigned_query(def_id)
would not be resolved.
Since tcx
query functions are assigned at runtime, this is not a build-time error.
The best that rustc
can do is generate a runtime error, but the error message is non-intuitive, and it took quite a while for me to realize my mistake:
error: internal compiler error: compiler/rustc_middle/src/ty/query/mod.rs:279:1:
`tcx.coverageinfo(DefId(0:3 ~ abort[317d]::might_abort))` unsupported by its crate
Is there a better way to word this message to make it more obvious that there is a query
defined, but a provider was never assigned?