]> git.lizzy.rs Git - rust.git/commit
Auto merge of #45198 - oli-obk:fmt_args, r=sfackler
authorbors <bors@rust-lang.org>
Wed, 22 Nov 2017 12:34:56 +0000 (12:34 +0000)
committerbors <bors@rust-lang.org>
Wed, 22 Nov 2017 12:34:56 +0000 (12:34 +0000)
commit1dc0b573e7ce4314eb196b21b7e0ea4a1bf1f673
treefd4f109ad215812a8693738ebbc4ea373ab867f5
parent3755fe95556e5db39ebe5963d9171f3d3ea9511a
parentdc7de37d995e5922ce3b016c5cc01f5fcd326570
Auto merge of #45198 - oli-obk:fmt_args, r=sfackler

Prevent fmt::Arguments from being shared across threads

Fixes #45197

This is a **breaking change**! Without doing this it's very easy to create race conditions.

There's probably a way to do this without breaking valid use cases, but it would require quite an overhaul of the formatting machinery.
src/libcore/fmt/mod.rs