rustc_attr_parsing::attributes

Module stability

Source
Expand description

Parsing and validation of builtin attributes

Functionsยง

  • Collects stability info from rustc_default_body_unstable attributes in attrs. Returns None if no stability attributes are found.
  • Collects stability info from rustc_const_stable/rustc_const_unstable/rustc_promotable attributes in attrs. Returns None if no stability attributes are found.
  • Collects stability info from stable/unstable/rustc_allowed_through_unstable_modules attributes in attrs. Returns None if no stability attributes are found.
  • insert_or_error ๐Ÿ”’
  • parse_stability ๐Ÿ”’
    Read the content of a stable/rustc_const_stable attribute, and return the feature name and its stability information.
  • parse_unstability ๐Ÿ”’
    Read the content of a unstable/rustc_const_unstable/rustc_default_body_unstable attribute, and return the feature name and its stability information.
  • Calculates the const stability for a const function in a -Zforce-unstable-if-unmarked crate without the staged_api feature.