Skip to content

Undocumented AttributesΒ #532

Closed
Closed
@ehuss

Description

@ehuss

There are a few attributes that are currently not documented. I wanted to get feedback if these should be documented. I've included my inclination, but I'd like to hear what others think.

  • automatically_derived β€” I vote "probably"? It has some use in the wild. I think the only reason to use it is for rustdoc. Are there other reasons to use it?
  • feature β€” I vote "maybe" πŸ€”? Although this is a nightly-oriented attribute, it is very widely used.
  • type_length_limit β€” I vote "yes". I think it is analogous to recursion_limit, and I suspect it just fell through the cracks.
  • bench β€” I vote "no". It requires the unstable Bencher to be used. (Now destabilized via Remove derives Encodable/Decodable and unstabilize attribute #[bench]Β rust#62507)
  • reexport_test_harness_main β€” I vote "no". Even though it is usable on stable, I think it is an internal implementation detail, and I do not see anyone using it.

These are just waiting to be finished:

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-attributesArea: AttributesEnhancementImprovement in a non-prose section of the book

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions