Skip to content
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

Svd2rust regress fixes #896

Merged
merged 1 commit into from
Jan 15, 2025
Merged

Conversation

robamu
Copy link
Contributor

@robamu robamu commented Jan 13, 2025

I used this to test a fix for #895

I fixed a lot of failing tests, however some of them are still failing. I can open an issue for that.

@robamu robamu requested a review from a team as a code owner January 13, 2025 12:05
ci/svd2rust-regress/src/svd_test.rs Show resolved Hide resolved
ci/svd2rust-regress/README.md Outdated Show resolved Hide resolved
ci/svd2rust-regress/README.md Outdated Show resolved Hide resolved
@robamu
Copy link
Contributor Author

robamu commented Jan 14, 2025

I added another small tweak to fix a clippy warning about lifetime ellision: e5594ba

@burrbull
Copy link
Member

#689

@Emilgardis
Copy link
Member

remove e5594ba and I then think we can merge this

@robamu
Copy link
Contributor Author

robamu commented Jan 14, 2025

You mean moving it to another PR, or squashing everything?

Comment on lines 260 to 261
fn get_source_and_command<'s>(&'s self) -> [Option<(Source<'s>, Command<'s>)>; 2] {
let split = |s: &'s str| -> (Source, Command) {
Copy link
Member

Choose a reason for hiding this comment

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

of use function instead of closure

Suggested change
fn get_source_and_command<'s>(&'s self) -> [Option<(Source<'s>, Command<'s>)>; 2] {
let split = |s: &'s str| -> (Source, Command) {
fn get_source_and_command(&self) -> [Option<(Source, Command)>; 2] {
fn split(s: &str) -> (Source, Command) {

@robamu
Copy link
Contributor Author

robamu commented Jan 15, 2025

should I update the changelog as well for CI?

@burrbull
Copy link
Member

should I update the changelog as well for CI?

Yes, please. And squash commits.

@robamu robamu force-pushed the svd2rust-regress-fixes branch from 882021b to 27ef196 Compare January 15, 2025 16:06
@robamu robamu force-pushed the svd2rust-regress-fixes branch from 27ef196 to f08aadf Compare January 15, 2025 16:07
@robamu
Copy link
Contributor Author

robamu commented Jan 15, 2025

done

@burrbull burrbull added this pull request to the merge queue Jan 15, 2025
Merged via the queue into rust-embedded:master with commit c94dc77 Jan 15, 2025
46 checks passed
@robamu robamu deleted the svd2rust-regress-fixes branch January 15, 2025 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants