Skip to content

Tracking issue for &mut T in const contexts (const_mut_refs) #57349

Closed
Listed in
rust-lang/reference
#1590
@ExpHP

Description

@ExpHP
Contributor

The const_mut_refs feature gate allows the following in const context:

  • &mut arguments
  • mutable (re)borrows and raw pointers (&mut and addr_of_mut! expressions)
  • dereferencing mutable references and raw pointers (* expressions)

Remaining work

Open questions

Activity

added
T-langRelevant to the language team
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
needs-rfcThis change is large or controversial enough that it should have an RFC accepted before doing it.
on Jan 5, 2019
changed the title [-]Mutation in const fn[/-] [+]Tracking issue for `&mut T` in const fn[/+] on Jan 5, 2019
Centril

Centril commented on Jan 5, 2019

@Centril
added
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)
on Jan 5, 2019
alercah

alercah commented on Jan 9, 2019

@alercah
eddyb

eddyb commented on Feb 13, 2019

@eddyb
added a commit that references this issue on Jul 20, 2019

216 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 RFCF-const_mut_refs`#![feature(const_mut_refs)]`T-langRelevant to the language team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Participants

    @tarcieri@eddyb@Nemo157@joshtriplett@RalfJung

    Issue actions

      Tracking issue for `&mut T` in const contexts (const_mut_refs) · Issue #57349 · rust-lang/rust