Skip to content

Commit ecfb7d2

Browse files
authored
Rollup merge of rust-lang#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.
2 parents c1b4454 + 6cc6b86 commit ecfb7d2

File tree

1 file changed

+2
-1
lines changed
  • compiler/rustc_error_codes/src/error_codes

1 file changed

+2
-1
lines changed

compiler/rustc_error_codes/src/error_codes/E0133.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ unsafe fn g() {
4545
```
4646

4747
Linting against this is controlled via the `unsafe_op_in_unsafe_fn` lint, which
48-
is `allow` by default but will be upgraded to `warn` in a future edition.
48+
is `warn` by default in the 2024 edition and `allow` by default in earlier
49+
editions.
4950

5051
[unsafe-section]: https://doc.rust-lang.org/book/ch19-01-unsafe-rust.html

0 commit comments

Comments
 (0)