Skip to content

fixtures: expect unsafe_code for FFI (part of #12395) - #12698

Open
TrapsterDK wants to merge 1 commit into
rust-deny-panic-unsafefrom
rust-unsafe-fixtures
Open

TrapsterDK wants to merge 1 commit into
rust-deny-panic-unsafefrom
rust-unsafe-fixtures

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Part of #12395. Depends on #12681 (base branch rust-deny-panic-unsafe).

Adds #![expect(unsafe_code, reason)] to the FFI fixtures in apple/tests/fixtures/{macos_bundle,swift_app,xcframework_share,shared_core}, deploy/tests/fixtures/consumer_archive/app.rs, and rust/tests/fixtures/{hello,native_call,consumer_native,consumer_abi,wasm_bindgen}, plus SAFETY lines on the apple CStr reads.

Not run: tools/dx check --affected timed out at 1200s, so clippy is unconfirmed (an unfulfilled expect would show there, notably wasm_bindgen and consumer_native); nested-Bazel and consumer tests.

Remaining: clippy confirmation; SAFETY comments on the other unsafe blocks if undocumented_unsafe_blocks is later denied.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant