Skip to content

Commit

Permalink
Auto merge of #124482 - spastorino:unsafe-extern-blocks, r=oli-obk
Browse files Browse the repository at this point in the history
Unsafe extern blocks

This implements RFC 3484.

Tracking issue #123743 and RFC rust-lang/rfcs#3484

This is better reviewed commit by commit.
  • Loading branch information
bors committed Jun 6, 2024
2 parents ecb2dd1 + 6478d9e commit c1ea878
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ pub(crate) fn format_defaultness(defaultness: ast::Defaultness) -> &'static str
pub(crate) fn format_safety(unsafety: ast::Safety) -> &'static str {
match unsafety {
ast::Safety::Unsafe(..) => "unsafe ",
ast::Safety::Safe(..) => "safe ",
ast::Safety::Default => "",
}
}
Expand Down

0 comments on commit c1ea878

Please sign in to comment.