Skip to content

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

Merged
merged 1 commit into from
Jul 29, 2019

Conversation

therealprof
Copy link
Contributor

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]

@therealprof therealprof requested a review from a team as a code owner July 28, 2019 15:10
@rust-highfive
Copy link

r? @ryankurte

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-tools labels Jul 28, 2019
@burrbull
Copy link
Member

Interesting solution.

@therealprof
Copy link
Contributor Author

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:

  32646	      0	      4	  32650	   7f8a	target/thumbv6m-none-eabi/debug/examples/i2c_hal_ina260reader

😅

self.w
}
}
} else {
Copy link
Member

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

Copy link
Contributor Author

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.

Copy link
Member

@adamgreig adamgreig left a comment

Choose a reason for hiding this comment

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

bors r+

bors bot added a commit that referenced this pull request Jul 29, 2019
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]>
@bors
Copy link
Contributor

bors bot commented Jul 29, 2019

Build succeeded

@bors bors bot merged commit bb73dfe into master Jul 29, 2019
@bors bors bot deleted the join-bits branch July 29, 2019 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants