Skip to content

Commit b5a75e7

Browse files
anforowiczcopybara-github
authored andcommitted
[rust] No need to explicitly opt-into -Dunsafe_op_in_unsafe_fn.
rust-lang/rust#71668 points out that rust-lang/rust#112038 made the `unsafe_op_in_unsafe_fn` lint `warn`-by-default from edition 2024 onward. (https://crbug.com/450891119 tracks history of when Chromium switched to using edition 2024 as the default.) Bug: 450891119 Change-Id: I1ed687c8a975e5a35c7ab38291c838bb13ff8c19 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7361485 Reviewed-by: Thomas Anderson <thomasanderson@chromium.org> Commit-Queue: Thomas Anderson <thomasanderson@chromium.org> Auto-Submit: Łukasz Anforowicz <lukasza@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/main@{#1564439} NOKEYCHECK=True GitOrigin-RevId: fc831996c3cee841cead31299a7c36f97f51a225
1 parent a2c20e5 commit b5a75e7

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

‎config/compiler/BUILD.gn‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2273,13 +2273,6 @@ config("default_warnings") {
22732273
if (is_apple) {
22742274
ldflags += [ "-Wl,-no_warn_duplicate_libraries" ]
22752275
}
2276-
2277-
# Rust warnings
2278-
2279-
# Require `unsafe` blocks even in `unsafe` fns. This is intended to become
2280-
# an error by default eventually; see
2281-
# https://github.com/rust-lang/rust/issues/71668
2282-
rustflags = [ "-Dunsafe_op_in_unsafe_fn" ]
22832276
}
22842277

22852278
# prevent_unsafe_narrowing ----------------------------------------------------

0 commit comments

Comments
 (0)