diff options
| author | bors <bors@rust-lang.org> | 2025-03-01 05:03:30 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-03-01 05:03:30 +0000 |
| commit | 002da76821d32c8807dc47da16660925d8cc9b62 (patch) | |
| tree | f2ffc96c2e39855bf8305a0f4d6dcb3bd38153b4 /compiler/rustc_error_codes | |
| parent | 30508faeb3248d399079513b6e0107af30a43948 (diff) | |
| parent | e5a639dbd020f9f76b799c15e1343f3d26f5b2cf (diff) | |
| download | rust-002da76821d32c8807dc47da16660925d8cc9b62.tar.gz rust-002da76821d32c8807dc47da16660925d8cc9b62.zip | |
Auto merge of #137838 - matthiaskrgr:rollup-5brlcyr, r=matthiaskrgr
Rollup of 9 pull requests Successful merges: - #137045 (Defer repeat expr `Copy` checks to end of type checking) - #137171 (Suggest swapping equality on E0277) - #137686 (Handle asm const similar to inline const) - #137689 (Use `Binder<Vec<Ty>>` instead of `Vec<Binder<Ty>>` in both solvers for sized/auto traits/etc.) - #137718 (Use original command for showing sccache stats) - #137730 (checked_ilog tests: deal with a bit of float imprecision) - #137735 (Update E0133 docs for 2024 edition) - #137742 (unconditionally lower match arm even if it's unneeded for never pattern in match) - #137771 (Tweak incorrect ABI suggestion and make suggestion verbose) Failed merges: - #137723 (Make `rust.description` more general-purpose and pass `CFG_VER_DESCRIPTION`) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_error_codes')
| -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 |
