Skip to content

Register derived from (resolve) #312

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

Conversation

burrbull
Copy link
Member

No description provided.

achan1989 and others added 6 commits June 1, 2019 11:08
svd2rust now uses env_logger instead of printing directly to stderr.
env_logger is currently configured to log messages >= info to stderr.
237: Introduce a logging system. r=ryankurte a=achan1989

This pull request makes progress on rust-embedded#183.

I've replaced the existing print/eprint calls with the appropriate logging macros, and arbitrarily chose env_logger to handle the logging.

This should be functionally identical to the branch point, although the format of the logging output is different -- it's now of the form `<SEVERITY> svd2rust: <message>`.

Co-authored-by: achan1989 <[email protected]>
Struct initialisations don't need to repeat field names if they're equal
to a local variable.

Signed-off-by: Daniel Egger <[email protected]>
302: Remove some noise in the generated code r=Emilgardis a=therealprof

Struct initialisations don't need to repeat field names if they're equal
to a local variable.

Signed-off-by: Daniel Egger <[email protected]>

Co-authored-by: Daniel Egger <[email protected]>
@burrbull burrbull requested a review from a team as a code owner July 15, 2019 08:18
@rust-highfive
Copy link

r? @Emilgardis

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

@rust-highfive
Copy link

⚠️ Warning ⚠️

  • Pull requests are usually filed against the master branch for this repo, but this one is against register-derived-from. Please double check that you specified the right target!

@rust-highfive rust-highfive added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-tools labels Jul 15, 2019
let mut builder = env_logger::Builder::from_env(env);
builder.default_format_timestamp(false);

let log_lvl_from_env =
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks shady. Why store it in a variable and then ignore it?

Copy link
Member Author

Choose a reason for hiding this comment

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

I have no idea. All commits except mine are already in master.

This PR is only due to:
#308 (comment)

@therealprof
Copy link
Contributor

I have no idea. All commits except mine are already in master.

Would you mind rebasing/squashing this then?

@therealprof
Copy link
Contributor

NB: I'm not quite sure how bors handles PRs to non-master branches.

@burrbull
Copy link
Member Author

I have no idea. All commits except mine are already in master.

Would you mind rebasing/squashing this then?

I don't know how to rebase and not lose authorship. Maybe you can do this?

@burrbull
Copy link
Member Author

Or I can reopen #308 .

@therealprof
Copy link
Contributor

Hm, okay. On the off-chance messing everything up, I'm going to try something. 😅

@therealprof therealprof merged commit fbc831f into rust-embedded:register-derived-from Jul 15, 2019
@therealprof
Copy link
Contributor

Yay! I just created more conflicts. 💯

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