Open
Description
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.
Metadata
Metadata
Assignees
Labels
Blocker: Approved by a merged RFC but not yet implemented.Category: An issue tracking the progress of sth. like the implementation of an RFC`#![feature(cfg_accessible)]`Status: The implementation is incomplete.Status: This is ready to stabilize; it may need a stabilization report and a PRRelevant to the language team, which will review and decide on the PR/issue.