Skip to content

rustdoc doc for deprecated doesn't contain hint about what use instead #48271

Closed
@Dushistov

Description

@Dushistov

Look for example to bindgen hide_type method

It is deprecated, and in source code there is hint what should be used instead:

/// Hide the given type from the generated bindings. Regular expressions are
    /// supported.
    #[deprecated = "Use blacklist_type instead"]
    pub fn hide_type<T: AsRef<str>>(self, arg: T) -> Builder {
        self.blacklist_type(arg)
    }

but in generated html documentation there is no hint about Use blacklist_type instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions