BikeshedGuaranteedNoDrop trait: add comments indicating that it can be observed on stable
This commit is contained in:
parent
8c5605e130
commit
8c0a493e35
2 changed files with 5 additions and 0 deletions
|
|
@ -687,6 +687,9 @@ where
|
|||
///
|
||||
/// because these impls overlap, and I'd rather not build a coherence hack for
|
||||
/// this harmless overlap.
|
||||
///
|
||||
/// This trait is indirectly exposed on stable, so do *not* extend the set of types that
|
||||
/// implement the trait without FCP!
|
||||
fn consider_builtin_bikeshed_guaranteed_no_drop_candidate(
|
||||
ecx: &mut EvalCtxt<'_, D>,
|
||||
goal: Goal<I, Self>,
|
||||
|
|
|
|||
|
|
@ -1246,6 +1246,8 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
|||
})
|
||||
}
|
||||
|
||||
/// This trait is indirectly exposed on stable, so do *not* extend the set of types that
|
||||
/// implement the trait without FCP!
|
||||
fn confirm_bikeshed_guaranteed_no_drop_candidate(
|
||||
&mut self,
|
||||
obligation: &PolyTraitObligation<'tcx>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue