We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98aa362 commit a913c24Copy full SHA for a913c24
compiler/rustc_trait_selection/src/solve/assembly/mod.rs
@@ -779,6 +779,12 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
779
}
780
781
782
+ /// In coherence we have to not only care about all impls we know about, but
783
+ /// also consider impls which may get added in a downstream or sibling crate
784
+ /// or which an upstream impl may add in a minor release.
785
+ ///
786
+ /// To do so we add an ambiguous candidate in case such an unknown impl could
787
+ /// apply to the current goal.
788
#[instrument(level = "debug", skip_all)]
789
fn assemble_coherence_unknowable_candidates<G: GoalKind<'tcx>>(
790
&mut self,
0 commit comments