-
Notifications
You must be signed in to change notification settings - Fork 157
Join the bits muching into a single line to improve dev builds #344
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
r? @ryankurte (rust_highfive has picked a reviewer for you, use r? to override) |
Interesting solution. |
I'm happy to report that this change makes it possible for the first time to build one of my examples (for a STM32F042) in dev mode:
😅 |
self.w | ||
} | ||
} | ||
} else { |
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.
} else if f.width == rsize {
...
self.w.bits = value
self.w
} else {
for 0xffff_ffff
etc.
rsize
you can pass with fields()
instead of rty
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.
I know. 😅Small steps please so our fellow reviewers/approvers can follow what's going on.
Also this rectifies many of the tons of https://rust-lang.github.io/rust-clippy/master/index.html#identity_op lints we're getting. Signed-off-by: Daniel Egger <[email protected]>
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.
bors r+
344: Join the bits muching into a single line to improve dev builds r=adamgreig a=therealprof Also this rectifies many of the tons of https://rust-lang.github.io/rust-clippy/master/index.html#identity_op lints we're getting. Signed-off-by: Daniel Egger <[email protected]> 346: Modernize svd2rust regress r=adamgreig a=therealprof A series of patches to bring it a bit more up-to-date. Includes: * making it Edition-2018 * bumping a few dependencies * fixing all clippy lints * changing to the master branch (instead of the ghost branch python-0.4 which can only be found by GitHub somehow) of the `cmsis-svd` repository * allowing `cargo init` on weirdly named SVD files * fixed NXP company name so SVD files can actually be downloaded * weeded out old STM SVD filenames and added some new ones Co-authored-by: Daniel Egger <[email protected]>
Build succeeded |
Also this rectifies many of the tons of
https://rust-lang.github.io/rust-clippy/master/index.html#identity_op
lints we're getting.
Signed-off-by: Daniel Egger [email protected]