UFCS can bypass trait stability #30209
Labels
A-stability
Area: `#[stable]`, `#[unstable]` etc.
C-bug
Category: This is a bug.
F-staged_api
`#![feature(staged_api)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Right now we have a trick in the standard library where sometimes a trait is unstable but the methods are stable. This is primarily used for
SliceConcatExt
to makejoin
stable on slices but you can't import the trait or rely on the fact that it's defined through a trait.There are a few ways to bypass this, however:
I thought that we crawled paths pretty meticulously, but apparently not :(
cc @petrochenkov
cc @rust-lang/libs
The text was updated successfully, but these errors were encountered: