mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-11 08:30:23 +00:00
Get rid of static predefined symbols
Make them all `const`.
This commit is contained in:
parent
2f2cff19f8
commit
9477e46bec
24 changed files with 120 additions and 112 deletions
|
|
@ -305,7 +305,7 @@ pub fn is_fn_unsafe_to_call(
|
|||
if is_intrinsic_block {
|
||||
// legacy intrinsics
|
||||
// extern "rust-intrinsic" intrinsics are unsafe unless they have the rustc_safe_intrinsic attribute
|
||||
if db.attrs(func.into()).by_key(&sym::rustc_safe_intrinsic).exists() {
|
||||
if db.attrs(func.into()).by_key(sym::rustc_safe_intrinsic).exists() {
|
||||
Unsafety::Safe
|
||||
} else {
|
||||
Unsafety::Unsafe
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue