Tracking issue for RFC 2523, #[cfg(accessible(::path::to::thing))]
· Issue #64797 · rust-lang/rust (original) (raw)
This is a tracking issue for #[cfg(accessible(::path::to::thing))]
(rust-lang/rfcs#2523).
Steps
- Implement the RFC: partially done in expand: Implement something similar to #[cfg(accessible(path))] #69870
- Adjust documentation (see instructions on rustc-guide)
- Stabilization PR (see instructions on rustc-guide)
Status
From this comment
- the surface of the feature was implemented in expand: Implement something similar to #[cfg(accessible(path))] #69870 as an attribute
#[cfg_accessible(path)] item
. The attribute can configure or unconfigure theitem
and wait until the predicate "path
is accessible" becomes determinate. - the predicate itself is not implemented, it either returns truth if the path is certainly available, or indeterminacy if we need to try again later, or reports an error otherwise. So the attribute is not usable in practice yet.
- desugaring of
#[cfg(accessible)]
into#[cfg_accessible]
is not implemented, we need to consider doing or not doing it only when everything else is implemented.
Unresolved questions:
None so far.