Skip to content

Put impls of primitives near the traits they implement in std #12925

Closed
@brson

Description

@brson

In std there are modules for the primitive types and these modules tend to contain the impls for several of the most 'core' Rust traits. I would rather these live in the module that declares the trait. std is going to continue to be refactored, and the crates these traits live in may change. Having the primitive impls in one place makes that refactoring easier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions