mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-29 20:20:59 +03:00
856ba39bd9
rustdoc: Gate unstable `doc(cfg())` predicates Fixes #138113 Since the extraction process treats `cfg(true)` as having no cfg attribute, we have to do the gating during parsing; so we remove the unused `features` arg from `Cfg::matches`