Skip to content

make iprintln! not depend on iprint! #115

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
Sep 6, 2018
Merged

make iprintln! not depend on iprint! #115

merged 1 commit into from
Sep 6, 2018

Conversation

japaric
Copy link
Member

@japaric japaric commented Sep 6, 2018

the preferred way to import macros in Rust 2018 is via use. If you import
iprintln and try to use you'll get an error if the iprint macro has not been
imported as well.

This commit makes iprintln work w/o having to import iprint as well.

r? @rust-embedded/cortex-m (anyone)

the preferred way to import macros in Rust 2018 is via `use`. If you import
`iprintln` and try to use you'll get an error if the `iprint` macro has not been
imported as well.

This commit makes `iprintln` work w/o having to import `iprint` as well.
@japaric japaric requested a review from a team as a code owner September 6, 2018 18:52
Copy link
Contributor

@therealprof therealprof left a comment

Choose a reason for hiding this comment

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

LGTM

@therealprof
Copy link
Contributor

bors r+

bors bot added a commit that referenced this pull request Sep 6, 2018
115: make `iprintln!` not depend on `iprint!` r=therealprof a=japaric

the preferred way to import macros in Rust 2018 is via `use`. If you import
`iprintln` and try to use you'll get an error if the `iprint` macro has not been
imported as well.

This commit makes `iprintln` work w/o having to import `iprint` as well.

r? @rust-embedded/cortex-m (anyone)

Co-authored-by: Jorge Aparicio <[email protected]>
@bors
Copy link
Contributor

bors bot commented Sep 6, 2018

Build failed

@japaric
Copy link
Member Author

japaric commented Sep 6, 2018

bors retry

network error: https://travis-ci.org/rust-embedded/cortex-m/jobs/425416906

bors bot added a commit that referenced this pull request Sep 6, 2018
115: make `iprintln!` not depend on `iprint!` r=therealprof a=japaric

the preferred way to import macros in Rust 2018 is via `use`. If you import
`iprintln` and try to use you'll get an error if the `iprint` macro has not been
imported as well.

This commit makes `iprintln` work w/o having to import `iprint` as well.

r? @rust-embedded/cortex-m (anyone)

Co-authored-by: Jorge Aparicio <[email protected]>
@bors
Copy link
Contributor

bors bot commented Sep 6, 2018

Build succeeded

@bors bors bot merged commit fa1797b into master Sep 6, 2018
@bors bors bot deleted the iprintln branch September 6, 2018 19:35
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.

2 participants