Module rustc_feature::builtin_attrs
source ยท Expand description
Built-in attributes and cfg
flag gating.
Macrosยง
- cfg_fn ๐
- experimental ๐
- gated ๐
- rustc_attr ๐
- template ๐A convenience macro for constructing attribute templates. E.g.,
template!(Word, List: "description")
means that the attribute supports forms#[attr]
and#[attr(description)]
. - ungated ๐
Structsยง
- A template that the attribute input must match. Only top-level shape (
#[attr]
vs#[attr(...)]
vs#[attr = ...]
) is considered now.
Enumsยง
- How to handle multiple duplicate attributes on the same item.
Constantsยง
- Attributes that have a special meaning to rustc or rustdoc.
- GATED_CFGS ๐
cfg(...)
โs that are feature gated. - IMPL_DETAIL ๐
- INTERNAL_UNSTABLE ๐
Staticsยง
Functionsยง
- Whether this builtin attribute is encoded cross crate. This means it can be used cross crate.
- Find a gated cfg determined by the
pred
icate which is given the cfgโs name.
Type Aliasesยง
- GateFn ๐