Skip to content

Replace trivial casts with type ascription #23542

Closed
@nrc

Description

@nrc

There are a bunch of places in the libs and compiler where we use a trivial case where type ascription would be more appropriate. These currently require #![allow(trivial_casts)]. Without that we get a warning (and an error when bootstrapping). When type ascription lands these should be converted to use that. E.g., *self as *const T should become *self: *const T.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions