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
/// Presuming that coherence and type-check have succeeded, if this method is invoked
/// in a monomorphic context (i.e., like during codegen), then it is guaranteed to return
/// Ok(Some(instance)), except for when the instance's inputs hit the type size limit,
/// in which case it may bail out and return Ok(None).
The text was updated successfully, but these errors were encountered:
We can observe that some attempts to monomorphise an
UnevaluatedConst
with rustc_middle::ty::Instance::try_resolve will returnOk(None)
which we panic on when trying to retrieve theInstance
.When compiling p-token the dependency memchr is required, however attempting to compile with create the following error (Some extra printing added):
I suspect this is related to a constant of a struct relying on an associated constant of an implemented trait. We may be organising the items and attempting monomorphisation in an order that is impossible.
Some extra information from rustc_middle::ty::Instance::try_resolve:
The text was updated successfully, but these errors were encountered: