Skip to content

Tracking Issue for const_replace #83164

Description

Feature gate: #![feature(const_replace)]

This is a tracking issue for making the functions mem::replace and ptr::replace const fn.

Public API

mod mem {
    pub const fn replace<T>(dest: &mut T, src: T) -> T;
}

mod ptr {
    pub const unsafe fn replace<T>(dst: *mut T, mut src: T) -> T;
}

Steps / History

Unresolved Questions

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

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: A tracking issue for an RFC or an unstable feature.Category: A tracking issue for an RFC or an unstable feature.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.to-announceAnnounce this issue on triage meetingAnnounce this issue on triage meeting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions