1
Fork 0

Use ZST for fmt unsafety

This allows the format_args! macro to keep the pre-expansion code out of
the unsafe block without doing gymnastics with nested `match`
expressions. This reduces codegen.
This commit is contained in:
Cameron Steffen 2021-09-21 00:56:45 -05:00
parent db1fb85cff
commit 09b37d7433
8 changed files with 108 additions and 100 deletions

View file

@ -253,6 +253,7 @@ symbols! {
TyCtxt,
TyKind,
Unknown,
UnsafeArg,
Vec,
Yield,
_DECLS,