diff options
| author | bors <bors@rust-lang.org> | 2024-06-06 08:14:58 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-06-06 08:14:58 +0000 |
| commit | c1ea87876f7f36bc219589a86e8643c2485a2d10 (patch) | |
| tree | 19ef1c9f70d209bc1a92dcb0aedd9f3de17b8667 | |
| parent | ecb2dd151c4d78fa9231f66e9c90dfef90dab4cc (diff) | |
| parent | 6478d9e59cef8b8341c63b48d493fb57d166caca (diff) | |
| download | rust-c1ea87876f7f36bc219589a86e8643c2485a2d10.tar.gz rust-c1ea87876f7f36bc219589a86e8643c2485a2d10.zip | |
Auto merge of #124482 - spastorino:unsafe-extern-blocks, r=oli-obk
Unsafe extern blocks This implements RFC 3484. Tracking issue #123743 and RFC https://github.com/rust-lang/rfcs/pull/3484 This is better reviewed commit by commit.
| -rw-r--r-- | src/utils.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils.rs b/src/utils.rs index 09e1dbde1d0..fd59aedadfe 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -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 => "", } } |
