Use string interpolation instead of token streams to generate Baked mod.rs #7412
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Baked data is set up to run rustfmt on generated files, if available.
In Google's build system, we don't do that, because the hermetic build won't have a rustfmt binary available. This might be fixable with some work.
Either way, this isn't usually a big deal: baked data isn't meant to be legible anyway.
However, the mod.rs file is useful: you might need to edit it when adding a more markers. It's nice for it to always be formatted to make this easy.
Also, mod.rs is not that interesting a file from a codegen point of view anyway: the benefit of using token streams is slight to nonexistant.