Skip to content

compile-fail test new Formatter move semantics#308

Merged
bors[bot] merged 1 commit intomainfrom
cfail-write
Dec 18, 2020
Merged

compile-fail test new Formatter move semantics#308
bors[bot] merged 1 commit intomainfrom
cfail-write

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