Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Tracking issue for `&mut T` in const fn #57349
This could be considered a subissue of #24111, however it does not (yet) correspond to a feature in the original RFC, nor does it necessarily correspond to anything that is implemented. It is simply that @Centril suggested I make an issue.
I could not locate any real discussion on this to date.
Presently, we need to discuss whether we want to do this, and if so, what the scope is.
I could be wrong, but based on previous conversation with @eddyb, this is very much in the plans. They originally wanted to even allow CTFE to mutate statics during the scope of their execution, until it was discussed out that this is undesirable because it would allow a single function call to behave differently depending on whether or not CTFE was used to precompute the function.