about summary refs log tree commit diff
path: root/compiler/rustc_span/src
diff options
context:
space:
mode:
authorCameron Steffen <cam.steffen94@gmail.com>2021-09-21 00:56:45 -0500
committerCameron Steffen <cam.steffen94@gmail.com>2021-09-21 10:04:44 -0500
commit09b37d743328bd497939bd27135f82350f1b0bd7 (patch)
tree48d14423db8c6c1d1fcd2049f25dc5b88db024c8 /compiler/rustc_span/src
parentdb1fb85cff63ad5fffe435e17128f99f9e1d970c (diff)
downloadrust-09b37d743328bd497939bd27135f82350f1b0bd7.tar.gz
rust-09b37d743328bd497939bd27135f82350f1b0bd7.zip
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.
Diffstat (limited to 'compiler/rustc_span/src')
-rw-r--r--compiler/rustc_span/src/symbol.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs
index 322bea3806c..be6f5fc2978 100644
--- a/compiler/rustc_span/src/symbol.rs
+++ b/compiler/rustc_span/src/symbol.rs
@@ -253,6 +253,7 @@ symbols! {
         TyCtxt,
         TyKind,
         Unknown,
+        UnsafeArg,
         Vec,
         Yield,
         _DECLS,