From 93f55e2d1c0908d0ff5df5a08d9f77d64d0c104d Mon Sep 17 00:00:00 2001 From: Jake Goulding Date: Thu, 6 Jul 2023 09:08:10 -0400 Subject: [PATCH 1/2] Document the `rust_1_39` feature flag --- src/guide/compatibility.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/guide/compatibility.md b/src/guide/compatibility.md index 7ceb0cec..f73e64d8 100644 --- a/src/guide/compatibility.md +++ b/src/guide/compatibility.md @@ -12,11 +12,30 @@ SNAFU is tested and compatible back to Rust 1.34, released on } +## `rust_1_39` + +
+
Default
+
enabled
+
+ +When enabled, SNAFU will assume that it's safe to target features +available in Rust 1.39. Notably, the `async` and `.await` keywords are +needed to allow [`report`][macro@crate::report] to be used on `async` +functions. + ## `rust_1_46`
Default
enabled
+
Implies
+
+ +[`rust_1_39`](#rust_1_39) + +
+
When enabled, SNAFU will assume that it's safe to target features From f00b5c0476222517b71cc3054ea8cbd6084a3538 Mon Sep 17 00:00:00 2001 From: Jake Goulding Date: Thu, 6 Jul 2023 09:09:16 -0400 Subject: [PATCH 2/2] Correct documented default state for the `rust_1_61` feature flag --- src/guide/compatibility.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/compatibility.md b/src/guide/compatibility.md index f73e64d8..4f121e7f 100644 --- a/src/guide/compatibility.md +++ b/src/guide/compatibility.md @@ -47,7 +47,7 @@ the source code location.
Default
-
enabled
+
disabled
Implies