Skip to content

Tracking Issue for const_convert #143773

Open

Description

@oli-obk

Feature gate: #![feature(const_from)]

This is a tracking issue for const From and Into traits, impls, and related functions.

Public API

const {
    let x = 5_u8;
    let y: i32 = x.into();
}

Note: there are a hundreds of implementations that could be made const. However, while const traits are unstable, please limit new const implementations to those that are needed for some specific purpose, e.g. supporting a specific feature or experimenting with a certain aspect of . Anything that is going for "completeness" can be done after stabilization.

Steps / History

(Remember to update the S-tracking-* label when checking boxes.)

Unresolved Questions

  • None yet.

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩

Activity

  1. added
    T-libs-api[DEPRECATED; DO NOT USE]
    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
    on Jul 11, 2025
  2. added a commit that references this issue on Jul 12, 2025
  3. added a commit that references this issue on Jul 12, 2025
  4. added a commit that references this issue on Jul 13, 2025
  5. added 3 commits that reference this issue on Jul 13, 2025
  6. added a commit that references this issue on Jul 13, 2025
  7. clarfonthey commented on Jul 20, 2025

    @clarfonthey
    Contributor
  8. added a commit that references this issue on Jul 21, 2025
  9. clarfonthey commented on Jul 22, 2025

    @clarfonthey
    Contributor

    @rustbot claim

    Probably will need to do this as a prereq for const_cmp.

    Also gonna fix all the non-Try traits to point to this issue instead of #74935.

  10. 37 remaining items

  11. added a commit that references this issue on Jul 27, 2026
  12. added
    T-libsRelevant to the library team, which will review and decide on the PR/issue.
    and removed
    T-libs-api[DEPRECATED; DO NOT USE]
    on Aug 12, 2026
  13. added a commit that references this issue on Sep 19, 2026
  14. added a commit that references this issue on Sep 19, 2026
  15. added a commit that references this issue on Sep 20, 2026
  16. added a commit that references this issue on Sep 20, 2026
  17. added 4 commits that reference this issue on Nov 10, 2026
  18. added a commit that references this issue on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-unimplementedStatus: The feature has not been implemented.T-libsRelevant to the library 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