-
-
Notifications
You must be signed in to change notification settings - Fork 770
Stopgap changes to treatment of static mut
to get around compiler warnings.
#3965
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
f3c1d4d
to
66bd24f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems useful to be able to revert this PR
boards/acd52832/src/main.rs
Outdated
button: button, | ||
ble_radio: ble_radio, | ||
console: console, | ||
led: led, | ||
gpio: gpio, | ||
rng: rng, | ||
temp: temp, | ||
alarm: alarm, | ||
gpio_async: gpio_async, | ||
light: light, | ||
buzzer: buzzer, | ||
button, | ||
ble_radio, | ||
console, | ||
led, | ||
gpio, | ||
rng, | ||
temp, | ||
alarm, | ||
gpio_async, | ||
light, | ||
buzzer, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting rid of compiler warnings since the whole task was basically to get rid of compiler warnings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are both merged upstream.
use nrf52_components::{self, UartChannel, UartPins}; | ||
use nrf52_components::{UartChannel, UartPins}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
libraries/enum_primitive/src/cast.rs
Outdated
use core::{i16, i32, i64, i8, isize}; | ||
use core::{u16, u32, u64, u8, usize}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | ||
|
||
struct AppIdAssignerSimulated {} | ||
pub struct AppIdAssignerSimulated {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bradjc do you really want me to remove these changes that are redundant with other PRs fixing style/warning issues? |
Yes just merge PRs and rebase. It would be nice to just do a clean revert of this PR. |
66bd24f
to
5032553
Compare
5032553
to
c22999d
Compare
OK, @bradjc, all done I think |
Pull Request Overview
This change is a _stopgap_ pending a permanent, safe solution, sketched in #3945.
We can't currently update Rust compiler versions due deprecation of creating references from
&'static mut
s. This workaround simply replaces those with uses of theaddr_of{_mut}!
macros as recommended by Rust. This should have no semantic affect on compiled artifacts.Testing Strategy
Compile tested all boards with a recent nightly
Formatting
make prepush
.