about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src/derive.rs
diff options
context:
space:
mode:
authorcarbotaniuman <41451839+carbotaniuman@users.noreply.github.com>2024-06-06 20:54:51 -0500
committercarbotaniuman <41451839+carbotaniuman@users.noreply.github.com>2024-06-06 20:54:51 -0500
commitf9104f0dfb531581aa96b19b333835351a566b04 (patch)
tree2f16b2f5f42b4cb5fa4a3072bdab815be132d97f /compiler/rustc_builtin_macros/src/derive.rs
parentf83cdbd2e0f6ce2a10f1475b16ada9fff5c094d4 (diff)
downloadrust-f9104f0dfb531581aa96b19b333835351a566b04.tar.gz
rust-f9104f0dfb531581aa96b19b333835351a566b04.zip
Handle safe case
Diffstat (limited to 'compiler/rustc_builtin_macros/src/derive.rs')
-rw-r--r--compiler/rustc_builtin_macros/src/derive.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_builtin_macros/src/derive.rs b/compiler/rustc_builtin_macros/src/derive.rs
index eed7fea11c1..b5cbfdf0ec6 100644
--- a/compiler/rustc_builtin_macros/src/derive.rs
+++ b/compiler/rustc_builtin_macros/src/derive.rs
@@ -167,5 +167,6 @@ fn report_unsafe_args(sess: &Session, meta: &ast::MetaItem) {
             sess.dcx().emit_err(errors::DeriveUnsafePath { span });
         }
         Safety::Default => {}
+        Safety::Safe(_) => unreachable!(),
     }
 }