You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the above code anywhere in my library, I get a red error in VSCode saying the following. The code compiles properly, and passes cargo check and cargo clippy with no warnings or errors.
this operation is unsafe and requires an unsafe function or block
rust-analyzer(missing-unsafe)
When I add the unsafe block, I then get:
unnecessary `unsafe` block
`#[warn(unused_unsafe)]` on by default
rustc(unused_unsafe)
In the stdlib docs, intrinsics::abort says "Note that, unlike most intrinsics, this is safe to call".
rust-analyzer version: (eg. output of "Rust Analyzer: Show RA Version" command)
With the above code anywhere in my library, I get a red error in VSCode saying the following. The code compiles properly, and passes
cargo check
andcargo clippy
with no warnings or errors.When I add the unsafe block, I then get:
In the stdlib docs,
intrinsics::abort
says "Note that, unlike most intrinsics, this is safe to call".rust-analyzer version: (eg. output of "Rust Analyzer: Show RA Version" command)
rust-analyzer version: a55dd29e8 2022-03-03 nightly
rustc version: (eg. output of
rustc -V
)rustc 1.61.0-nightly (4b043faba 2022-02-24)
relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTUP_HOME
orCARGO_HOME
)VSCode settings:
The text was updated successfully, but these errors were encountered: