Skip to content

Tracking Issue for more const int functions #53718

Closed
@TimDiekmann

Description

@TimDiekmann
Member

(none exhaustive) list of libcore::num, which should be a const fn:

  1. Requires conditionals. Tracking Issue: Tracking issue for RFC 2342, "Allow if and match in constants" #49146 (implemented on nightly)
  2. Requires loops. Tracking Issue: Tracking issue for RFC 2344, "Allow loop in constant evaluation" #52000 (implemented on nightly)

This issue has been assigned to @9999years via this comment.

Activity

added
T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
T-langRelevant to the language team
on Aug 28, 2018
TheDarkula

TheDarkula commented on Aug 30, 2018

@TheDarkula
Contributor

transmute() just got merged. You can start on your last block now :)

TimDiekmann

TimDiekmann commented on Aug 31, 2018

@TimDiekmann
MemberAuthor

@TheDarkula Thank you, I'll start implementing them as soon as #53699 is merged.

TimDiekmann

TimDiekmann commented on Aug 31, 2018

@TimDiekmann
MemberAuthor

Added rest of const_int_conversion to #53697

TimDiekmann

TimDiekmann commented on Sep 1, 2018

@TimDiekmann
MemberAuthor

I'm currently rebasing #53697 and testing. Then the first bunch should be ready to merge.

added a commit that references this issue on Sep 3, 2018

Auto merge of #53697 - Cyres:const-fn-int-ops, r=oli-obk

mjbshaw

mjbshaw commented on Dec 31, 2018

@mjbshaw
Contributor

Adding a comment here so I don't have to hunt for the following related issue: #51267 is the tracking issue for feature = const_int_ops, which tracks:

  • count_zeros -- stabilized
  • count_ones -- stabilized
  • leading_zeros -- stabilized
  • trailing_zeros -- stabilized
Lokathor

Lokathor commented on Jan 13, 2019

@Lokathor
Contributor

wrapping_neg isn't on the list here it seems (though overflowing_neg is)

67 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)B-unstableBlocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCLibs-TrackedLibs issues that are tracked on the team's project board.T-langRelevant to the language teamT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @SimonSapin@RalfJung@Razican@Centril@mjbshaw

    Issue actions

      Tracking Issue for more const int functions · Issue #53718 · rust-lang/rust