| //! Operators used to turn types into unsafe binders and back. | |
| /// Unwrap an unsafe binder into its underlying type. | |
| #[allow_internal_unstable(internal_syntax)] | |
| #[unstable(feature = "unsafe_binders", issue = "130516")] | |
| #[diagnostic::opaque] | |
| pub macro unwrap_binder($expr:expr $( ; $ty:ty )?) { | |
| k#unwrap_binder($expr $( , $ty )?) | |
| } | |
| /// Wrap a type into an unsafe binder. | |
| #[allow_internal_unstable(internal_syntax)] | |
| #[unstable(feature = "unsafe_binders", issue = "130516")] | |
| #[diagnostic::opaque] | |
| pub macro wrap_binder($expr:expr $( ; $ty:ty )?) { | |
| k#wrap_binder($expr $( , $ty )?) | |
| } |