]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_trait_selection/src/traits/select/candidate_assembly.rs
Rollup merge of #92917 - jackh726:issue-91762-2, r=nikomatsakis
[rust.git] / compiler / rustc_trait_selection / src / traits / select / candidate_assembly.rs
index db86041f6180b5efdc49a71aebda28ba7a8d2020..0c5d764e79d0cb25a472294b607a3dbb71ce5e48 100644 (file)
@@ -254,6 +254,7 @@ pub(super) fn assemble_candidates<'o>(
         };
 
         if obligation.predicate.skip_binder().self_ty().is_ty_var() {
+            debug!(ty = ?obligation.predicate.skip_binder().self_ty(), "ambiguous inference var or opaque type");
             // Self is a type variable (e.g., `_: AsRef<str>`).
             //
             // This is somewhat problematic, as the current scheme can't really