From 6cc6b86e400ccbcf024b371c5a3fae5d160e397b Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Thu, 27 Feb 2025 08:33:44 -0800 Subject: [PATCH] Update E0133 docs for 2024 edition --- compiler/rustc_error_codes/src/error_codes/E0133.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/rustc_error_codes/src/error_codes/E0133.md b/compiler/rustc_error_codes/src/error_codes/E0133.md index 8ca3f03ce156f..854cca3d10ff2 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0133.md +++ b/compiler/rustc_error_codes/src/error_codes/E0133.md @@ -45,6 +45,7 @@ unsafe fn g() { ``` Linting against this is controlled via the `unsafe_op_in_unsafe_fn` lint, which -is `allow` by default but will be upgraded to `warn` in a future edition. +is `warn` by default in the 2024 edition and `allow` by default in earlier +editions. [unsafe-section]: https://doc.rust-lang.org/book/ch19-01-unsafe-rust.html