Skip to content

Conversation

@hudson-ayers
Copy link
Contributor

Pull Request Overview

This PR removes the const_mut_refs unstable feature and all uses of it. For the most part, this just required making every const constructor that created a TakeCell no longer const, as a result of TakeCell::empty() no longer being const. Thanks to the updated peripheral instantation approach in #2069 and related PRs, this was very straightforward to perform, as peripherals no longer need to be created in const context.

Testing Strategy

This pull request was tested by compiling, no functional changes are included.

TODO or Help Wanted

N/A

Documentation Updated

Formatting

  • Ran make prepush.

This commit removes the const_mut_refs unstable feature and
all uses of it. For the most part, this just required making every const
constructor that created a `TakeCell` no longer const, as a result of
`TakeCell::empty()` no longer being const. Thanks to the updated
peripheral instantation approach in
tock#2069 and related PRs, this was very
straightforward to perform, as peripherals no longer need to be created
in const context.
@github-actions github-actions bot added chips/nrf Change pertains to the nRF5x family of MCUs. chips/sam4l Change pertains to the SAM4L MCU. chips/stm32 Change pertains to the stm32 family of MCUSs tock-libraries This affects libraries supported by the Tock project WG-OpenTitan In the purview of the OpenTitan working group. labels Jul 14, 2022
Copy link
Contributor

@bradjc bradjc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wow, this change really just amounts to removing const in a few places. Great. We definitely couldn't have done this before.

@bradjc bradjc added the last-call Final review period for a pull request. label Jul 21, 2022
@bradjc
Copy link
Contributor

bradjc commented Jul 21, 2022

This gets us closer to a long standing goal (#1654), marking as last call.

@bradjc
Copy link
Contributor

bradjc commented Jul 22, 2022

bors r+

@bors
Copy link
Contributor

bors bot commented Jul 22, 2022

@bors bors bot merged commit 43429fe into tock:master Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chips/nrf Change pertains to the nRF5x family of MCUs. chips/sam4l Change pertains to the SAM4L MCU. chips/stm32 Change pertains to the stm32 family of MCUSs last-call Final review period for a pull request. tock-libraries This affects libraries supported by the Tock project WG-OpenTitan In the purview of the OpenTitan working group.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants