Skip to content

Commit

Permalink
Handle safe case
Browse files Browse the repository at this point in the history
  • Loading branch information
carbotaniuman committed Jun 7, 2024
1 parent f83cdbd commit f9104f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_builtin_macros/src/derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(),
}
}

0 comments on commit f9104f0

Please sign in to comment.