Use a proper probe for shadowing impl
This commit is contained in:
parent
9105c57b7f
commit
dbd2ca6478
5 changed files with 39 additions and 22 deletions
|
@ -153,6 +153,8 @@ pub enum ProbeKind<'tcx> {
|
|||
/// do a probe to find out what projection type(s) may be used to prove that
|
||||
/// the source type upholds all of the target type's object bounds.
|
||||
UpcastProjectionCompatibility,
|
||||
/// Looking for param-env candidates that satisfy the trait ref for a projection.
|
||||
ShadowedEnvProbing,
|
||||
/// Try to unify an opaque type with an existing key in the storage.
|
||||
OpaqueTypeStorageLookup { result: QueryResult<'tcx> },
|
||||
}
|
||||
|
|
|
@ -118,6 +118,9 @@ impl<'a, 'b> ProofTreeFormatter<'a, 'b> {
|
|||
ProbeKind::TraitCandidate { source, result } => {
|
||||
write!(self.f, "CANDIDATE {source:?}: {result:?}")
|
||||
}
|
||||
ProbeKind::ShadowedEnvProbing => {
|
||||
write!(self.f, "PROBING FOR IMPLS SHADOWED BY PARAM-ENV CANDIDATE:")
|
||||
}
|
||||
}?;
|
||||
|
||||
self.nested(|this| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue