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

Don't call fmt::Write::write_str for statically empty strings #40701

Closed
wants to merge 1 commit into from

Conversation

tbu-
Copy link
Contributor

@tbu- tbu- commented Mar 21, 2017

This means that writeln!(something, "{}{}", s1, s2) no longer calls
write_str two times with empty strings (before each substitution).

See #31966 for an earlier attempt.

This means that `writeln!(something, "{}{}", s1, s2)` no longer calls
`write_str` two times with empty strings (before each substitution).

See rust-lang#31966 for an earlier attempt.
@rust-highfive
Copy link
Contributor

r? @brson

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

@tbu-
Copy link
Contributor Author

tbu- commented Mar 21, 2017

It's not this easy.

@tbu- tbu- closed this Mar 21, 2017
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.

3 participants