Rollup merge of #152383 - RalfJung:BikeshedGuaranteedNoDrop, r=TaKO8Ki

BikeshedGuaranteedNoDrop trait: add comments indicating that it can be observed on stable

Not sure if that's worth it, maybe this goes without saying for all these builtin traits?
This commit is contained in:
Matthias Krüger 2026-02-11 13:48:50 +01:00 committed by GitHub
commit 336debab2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

@ -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>,