Skip to content

doc: attach note for deprecations #148

@jsha

Description

@jsha

I noticed at https://docs.rs/rustls-webpki/latest/webpki/struct.TlsClientTrustAnchors.html that the type and its field are marked with #[deprecated(since = "0.101.2")]. There's an additional parameter to the deprecated attribute, called note:

https://doc.rust-lang.org/reference/attributes/diagnostics.html#the-deprecated-attribute

note — Specifies a string that should be included in the deprecation message. This is typically used to provide an explanation about the deprecation and preferred alternatives.

It would be useful to attach a note to this deprecation (and others that don't have notes) explaining why it was deprecated and what to use instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions