Skip to content

needless_pass_by_ref_mut should not be emitted for functions containing unsafe #11586

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Ralith opened this issue Sep 29, 2023 · 0 comments · Fixed by #11624
Closed

needless_pass_by_ref_mut should not be emitted for functions containing unsafe #11586

Ralith opened this issue Sep 29, 2023 · 0 comments · Fixed by #11624

Comments

@Ralith
Copy link

Ralith commented Sep 29, 2023

Description

A unique borrow can be required for soundness in a function that performs unsafe operations which do not directly use a reference, e.g. using raw pointers or over FFI.

Version

rustc 1.74.0-nightly (2f5df8a94 2023-08-31)
binary: rustc
commit-hash: 2f5df8a94bb3c5fae4e3fcbfc8ef20f1f976cb19
commit-date: 2023-08-31
host: x86_64-unknown-linux-gnu
release: 1.74.0-nightly
LLVM version: 17.0.0

Additional Labels

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant