Auto merge of #89139 - camsteffen:write-perf, r=Mark-Simulacrum
Use ZST for fmt unsafety as suggested here - https://github.com/rust-lang/rust/pull/83302#issuecomment-923529151.
This commit is contained in:
commit
67365d64bc
9 changed files with 111 additions and 103 deletions
|
|
@ -17,16 +17,12 @@ LL | bug!();
|
|||
|
||||
error: unexpected token: `{
|
||||
let res =
|
||||
::alloc::fmt::format(match match (&"u8",) {
|
||||
(arg0,) =>
|
||||
[::core::fmt::ArgumentV1::new(arg0,
|
||||
::core::fmt::Display::fmt)],
|
||||
} {
|
||||
ref args => unsafe {
|
||||
::core::fmt::Arguments::new_v1(&[""],
|
||||
args)
|
||||
}
|
||||
});
|
||||
::alloc::fmt::format(::core::fmt::Arguments::new_v1(&[""],
|
||||
&match (&"u8",) {
|
||||
(arg0,) =>
|
||||
[::core::fmt::ArgumentV1::new(arg0,
|
||||
::core::fmt::Display::fmt)],
|
||||
}));
|
||||
res
|
||||
}.as_str()`
|
||||
--> $DIR/key-value-expansion.rs:48:23
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue