Skip to content

Commit

Permalink
Unrolled build for rust-lang#137735
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rust-timer authored Mar 1, 2025
2 parents 30508fa + 6cc6b86 commit 468ac67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/rustc_error_codes/src/error_codes/E0133.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 468ac67

Please sign in to comment.