Skip to content

Decide on (and implement) which parts of the AST can get stability attributes #8967

Closed
@huonw

Description

@huonw

As of #8921, the compiler checks the attributes on structs, enum variants (not enums themselves) and functions. Definitely required: methods (#8961) and mods (#8962).

Up for discussion:

  • traits
  • enums
  • impls (both impl Type and impl Trait for Type)
  • struct fields
  • type aliases.
  • foreign fns
  • anything else that can take attributes in the ast

(Part of #6875.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-attributesArea: Attributes (`#[…]`, `#![…]`)A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions