Skip to content

Tracking issue for From<NonZero*> impls for wider NonZero types #66291

Closed
@peter-wilkins

Description

@peter-wilkins

Tracking issue to convert non-zero integer types to wider non-zero integer types when the underlying type supports the conversion.

For example:

num::NonZeroU32::new(e.get() as u32).unwrap().into()

becomes

e.into()

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-langRelevant to the language 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