cfg_accessible does not respect feature gating #72011
Labels
F-cfg_accessible
`#![feature(cfg_accessible)]`
requires-nightly
This issue requires a nightly compiler in some way.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
(Since
cfg(version)
's support for nightly is under discussion, I decided to check howcfg(accessible)
's support was going. I realise it is far from done, but since it's possible to write a testcase for this now I thought it would be worth having an issue to make sure it's not forgotten.)This code (playground) should cleanly compile as
std::fmt::rt::v1
is gated behind the inactivefmt_internals
feature, andcfg(accessible)
should ignore disabled gated features. Instead it errors out:cc #64797
The text was updated successfully, but these errors were encountered: