Require unsafe blocks even in unsafe fns
This is for first-party code only.
Bug: 1422745
Change-Id: I289638123af280cb2cda883e71dee27411e3de3d
Cq-Include-Trybots: luci.chromium.try:android-rust-arm32-rel,android-rust-arm64-dbg,android-rust-arm64-rel,linux-rust-x64-rel,linux-rust-x64-dbg
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4321167
Reviewed-by: Hans Wennborg <[email protected]>
Reviewed-by: danakj <[email protected]>
Commit-Queue: Collin Baker <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1115302}
diff --git a/BUILD.gn b/BUILD.gn
index b6e7560..0f7200e 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -842,10 +842,19 @@
"//third_party/pffft:pffft_unittest",
]
- # Minimal binaries to exercise Rust toolchain.
- deps += [ ":rust_build_tests" ]
+ # Rust build targets.
+ deps += [ ":all_rust" ]
+}
- # More Rust targets.
+# All Rust targets. This is provided for convenience while developing Rust to
+# e.g. test build config or toolchain changes.
+group("all_rust") {
+ testonly = true
+
+ # Unconditional because this includes things that should work whether or not
+ # Rust is enabled.
+ deps = [ ":rust_build_tests" ]
+
if (toolchain_has_rust) {
deps += [
"//mojo/public/rust",