diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-03-01 05:49:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-01 05:49:55 +0100 |
| commit | ecfb7d281159fe407e93ee33ca67825a8c3306a7 (patch) | |
| tree | 891bdc4edc2c74b460eb8b8e74d431b630c1a2a6 /compiler | |
| parent | c1b4454275f385e55b464cc48e6ab0b489a175e8 (diff) | |
| parent | 6cc6b86e400ccbcf024b371c5a3fae5d160e397b (diff) | |
| download | rust-ecfb7d281159fe407e93ee33ca67825a8c3306a7.tar.gz rust-ecfb7d281159fe407e93ee33ca67825a8c3306a7.zip | |
Rollup merge of #137735 - ehuss:e0133-edition-docs, r=compiler-errors
Update E0133 docs for 2024 edition The behavior of unsafe_op_in_unsafe_fn was changed in the 2024 edition. This updates this note in the E0133 docs to reflect that change.
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0133.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0133.md b/compiler/rustc_error_codes/src/error_codes/E0133.md index 8ca3f03ce15..854cca3d10f 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 |
