From a1a6f294fa6496245505a0e30ca8d95b45a18aef Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Wed, 24 Jul 2024 16:43:18 -0700 Subject: [PATCH] Add clarity about `safe` and `unsafe` edition difference. The `safe` and `unsafe` item qualifiers can only be used if `unsafe` is used (pre-2024). I didn't see this specified elsewhere. --- src/items/external-blocks.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/items/external-blocks.md b/src/items/external-blocks.md index 6f7d883d6..3af2a67f0 100644 --- a/src/items/external-blocks.md +++ b/src/items/external-blocks.md @@ -27,7 +27,8 @@ The external block defines its functions and statics in the [value namespace] of **Edition differences**: Starting in the 2024 edition, the `unsafe` keyword is required to appear before the `extern` keyword on external blocks. In previous -editions, it is accepted but not required. +editions, it is accepted but not required. The `safe` and `unsafe` item qualifiers +are only allowed if the external block itself is marked as `unsafe`. ## Functions