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

compile-fail test new Formatter move semantics #308

Merged
merged 1 commit into from
Dec 18, 2020
Merged

compile-fail test new Formatter move semantics #308

merged 1 commit into from
Dec 18, 2020

Conversation

japaric
Copy link
Member

@japaric japaric commented Dec 16, 2020

now that the signature of Format::format has changed we expect that these uses of the write!
macro and format method fail so let's test that

the fmt-* examples were corrupting the defmt data stream before but now are rejected at compile
time

the error message for the write! examples could be better: it should not mention the
InternalFormatter type, which is an implementation detail. I'll open an issue about improving the
diagnostics of that macro

now that the signature of `Format::format` has changed we expect that these uses of the `write!`
macro and `format` method fail so let's test that

the `fmt-*` examples were corrupting the defmt data stream before but now are rejected at compile
time

the error message for the `write!` examples could be better: it should not mention the
`InternalFormatter` type, which is an implementation detail. I'll open an issue about improving the
diagnostics of that macro
@japaric japaric requested a review from Lotterleben December 16, 2020 14:28
Copy link
Contributor

@Lotterleben Lotterleben left a comment

Choose a reason for hiding this comment

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

nice!

@japaric
Copy link
Member Author

japaric commented Dec 18, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Dec 18, 2020

Build succeeded:

@bors bors bot merged commit 26d8bad into main Dec 18, 2020
@bors bors bot deleted the cfail-write branch December 18, 2020 15:08
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