Skip to content

needless_pass_by_ref_mut should not be emitted for functions containing unsafe #11586

Closed
@Ralith

Description

@Ralith

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions