-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
B-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.Blocker: Approved by a merged RFC but not yet implemented.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-cfg_accessible`#![feature(cfg_accessible)]``#![feature(cfg_accessible)]`S-tracking-impl-incompleteStatus: The implementation is incomplete.Status: The implementation is incomplete.S-tracking-ready-to-stabilizeStatus: This is ready to stabilize; it may need a stabilization report and a PRStatus: This is ready to stabilize; it may need a stabilization report and a PRT-langRelevant to the language teamRelevant to the language team
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.
nvzqz, stanislav-tkach, Sympatron, Angr1st, jtmoon79 and 13 moretesujileo60228, roblabla, pitdicker, moshg, jhpratt and 2 moremacpp, eaglgenes101, fanninpm and GrayJack
Metadata
Metadata
Assignees
Labels
B-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.Blocker: Approved by a merged RFC but not yet implemented.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-cfg_accessible`#![feature(cfg_accessible)]``#![feature(cfg_accessible)]`S-tracking-impl-incompleteStatus: The implementation is incomplete.Status: The implementation is incomplete.S-tracking-ready-to-stabilizeStatus: This is ready to stabilize; it may need a stabilization report and a PRStatus: This is ready to stabilize; it may need a stabilization report and a PRT-langRelevant to the language teamRelevant to the language team