We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c40e9cc commit c29c212Copy full SHA for c29c212
compiler/rustc_middle/src/ty/subst.rs
@@ -586,6 +586,9 @@ impl<T> EarlyBinder<T> {
586
/// arguments of an `FnSig`). Otherwise, consider using
587
/// [`subst_identity`](EarlyBinder::subst_identity).
588
///
589
+ /// To skip the binder on `x: &EarlyBinder<T>` to obtain `&T`, leverage
590
+ /// [`EarlyBinder::as_ref`](EarlyBinder::as_ref): `x.as_ref().skip_binder()`.
591
+ ///
592
/// See also [`Binder::skip_binder`](super::Binder::skip_binder), which is
593
/// the analogous operation on [`super::Binder`].
594
pub fn skip_binder(self) -> T {
0 commit comments