Skip to content

std::error::Error docs don't mention e.downcast() (only downcast_{ref,mut}) #103170

Closed
@thomcc

Description

@thomcc

I didn't notice an issue on file for this already, feel free to dupe against it if one exists.

In #99917 we landed support for error in core, and sadly one of the casualties was the docs got somewhat worse. Concretely, Box<dyn Error + stuff>::downcast() is no longer shown on the docs page for Error, which is a bit of a bummer, since these methods do exist: https://doc.rust-lang.org/nightly/src/alloc/boxed.rs.html#2127

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-error-handlingArea: Error handlingC-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-libsRelevant to the library team, which will review and decide on the PR/issue.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions