[bloodstone] merge empty leaf with right sibling, consuming right sibling #1003
clippy
14 errors, 6 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 14 |
Warning | 6 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.88.0-nightly (50aa04180 2025-05-08)
- cargo 1.88.0-nightly (7918c7eb5 2025-04-27)
- clippy 0.1.88 (50aa041807 2025-05-08)
Annotations
Check warning on line 33 in src/alloc.rs
github-actions / clippy
call to unsafe function `std::alloc::GlobalAlloc::dealloc` is unsafe and requires unsafe block
warning[E0133]: call to unsafe function `std::alloc::GlobalAlloc::dealloc` is unsafe and requires unsafe block
--> src/alloc.rs:33:13
|
33 | System.dealloc(ptr, layout)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
= note: consult the function's documentation for information on how to avoid undefined behavior
Check warning on line 32 in src/alloc.rs
github-actions / clippy
call to unsafe function `std::intrinsics::write_bytes` is unsafe and requires unsafe block
warning[E0133]: call to unsafe function `std::intrinsics::write_bytes` is unsafe and requires unsafe block
--> src/alloc.rs:32:13
|
32 | std::ptr::write_bytes(ptr, 0xde, layout.size());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
= note: consult the function's documentation for information on how to avoid undefined behavior
note: an unsafe function restricts its caller, but its body is safe by default
--> src/alloc.rs:31:9
|
31 | unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Check warning on line 27 in src/alloc.rs
github-actions / clippy
call to unsafe function `std::intrinsics::write_bytes` is unsafe and requires unsafe block
warning[E0133]: call to unsafe function `std::intrinsics::write_bytes` is unsafe and requires unsafe block
--> src/alloc.rs:27:13
|
27 | std::ptr::write_bytes(ret, 0xa1, layout.size());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
= note: consult the function's documentation for information on how to avoid undefined behavior
Check warning on line 25 in src/alloc.rs
github-actions / clippy
call to unsafe function `std::alloc::GlobalAlloc::alloc` is unsafe and requires unsafe block
warning[E0133]: call to unsafe function `std::alloc::GlobalAlloc::alloc` is unsafe and requires unsafe block
--> src/alloc.rs:25:23
|
25 | let ret = System.alloc(layout);
| ^^^^^^^^^^^^^^^^^^^^ call to unsafe function
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
= note: consult the function's documentation for information on how to avoid undefined behavior
note: an unsafe function restricts its caller, but its body is safe by default
--> src/alloc.rs:24:9
|
24 | unsafe fn alloc(&self, layout: Layout) -> *mut u8 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default
Check warning on line 5 in src/alloc.rs
github-actions / clippy
unused import: `alloc::*`
warning: unused import: `alloc::*`
--> src/alloc.rs:5:9
|
5 | pub use alloc::*;
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
Check warning on line 713 in src/object_cache.rs
github-actions / clippy
redundant field names in struct initialization
warning: redundant field names in struct initialization
--> src/object_cache.rs:713:25
|
713 | collection_id: collection_id,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `collection_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
= note: `#[warn(clippy::redundant_field_names)]` on by default
Check failure on line 77 in src/alloc.rs
github-actions / clippy
failed to resolve: use of undeclared type `Ordering`
error[E0433]: failed to resolve: use of undeclared type `Ordering`
--> src/alloc.rs:77:47
|
77 | RESIDENT.fetch_sub(layout.size(), Ordering::Relaxed);
| ^^^^^^^^ use of undeclared type `Ordering`
|
= note: enum `crate::heap::sys_io::Ordering` exists but is inaccessible
help: consider importing one of these enums
|
40 + use std::cmp::Ordering;
|
40 + use std::sync::atomic::Ordering;
|
Check failure on line 76 in src/alloc.rs
github-actions / clippy
failed to resolve: use of undeclared type `Ordering`
error[E0433]: failed to resolve: use of undeclared type `Ordering`
--> src/alloc.rs:76:44
|
76 | FREED.fetch_add(layout.size(), Ordering::Relaxed);
| ^^^^^^^^ use of undeclared type `Ordering`
|
= note: enum `crate::heap::sys_io::Ordering` exists but is inaccessible
help: consider importing one of these enums
|
40 + use std::cmp::Ordering;
|
40 + use std::sync::atomic::Ordering;
|
Check failure on line 69 in src/alloc.rs
github-actions / clippy
failed to resolve: use of undeclared type `Ordering`
error[E0433]: failed to resolve: use of undeclared type `Ordering`
--> src/alloc.rs:69:47
|
69 | RESIDENT.fetch_add(layout.size(), Ordering::Relaxed);
| ^^^^^^^^ use of undeclared type `Ordering`
|
= note: enum `crate::heap::sys_io::Ordering` exists but is inaccessible
help: consider importing one of these enums
|
40 + use std::cmp::Ordering;
|
40 + use std::sync::atomic::Ordering;
|
Check failure on line 68 in src/alloc.rs
github-actions / clippy
failed to resolve: use of undeclared type `Ordering`
error[E0433]: failed to resolve: use of undeclared type `Ordering`
--> src/alloc.rs:68:48
|
68 | ALLOCATED.fetch_add(layout.size(), Ordering::Relaxed);
| ^^^^^^^^ use of undeclared type `Ordering`
|
= note: enum `crate::heap::sys_io::Ordering` exists but is inaccessible
help: consider importing one of these enums
|
40 + use std::cmp::Ordering;
|
40 + use std::sync::atomic::Ordering;
|
Check failure on line 58 in src/alloc.rs
github-actions / clippy
failed to resolve: use of undeclared type `Ordering`
error[E0433]: failed to resolve: use of undeclared type `Ordering`
--> src/alloc.rs:58:23
|
58 | RESIDENT.load(Ordering::Relaxed)
| ^^^^^^^^ use of undeclared type `Ordering`
|
= note: enum `crate::heap::sys_io::Ordering` exists but is inaccessible
help: consider importing one of these enums
|
40 + use std::cmp::Ordering;
|
40 + use std::sync::atomic::Ordering;
|
Check failure on line 54 in src/alloc.rs
github-actions / clippy
failed to resolve: use of undeclared type `Ordering`
error[E0433]: failed to resolve: use of undeclared type `Ordering`
--> src/alloc.rs:54:23
|
54 | FREED.swap(0, Ordering::Relaxed)
| ^^^^^^^^ use of undeclared type `Ordering`
|
= note: enum `crate::heap::sys_io::Ordering` exists but is inaccessible
help: consider importing one of these enums
|
40 + use std::cmp::Ordering;
|
40 + use std::sync::atomic::Ordering;
|
Check failure on line 50 in src/alloc.rs
github-actions / clippy
failed to resolve: use of undeclared type `Ordering`
error[E0433]: failed to resolve: use of undeclared type `Ordering`
--> src/alloc.rs:50:27
|
50 | ALLOCATED.swap(0, Ordering::Relaxed)
| ^^^^^^^^ use of undeclared type `Ordering`
|
= note: enum `crate::heap::sys_io::Ordering` exists but is inaccessible
help: consider importing one of these enums
|
40 + use std::cmp::Ordering;
|
40 + use std::sync::atomic::Ordering;
|
Check failure on line 47 in src/alloc.rs
github-actions / clippy
failed to resolve: use of undeclared type `AtomicUsize`
error[E0433]: failed to resolve: use of undeclared type `AtomicUsize`
--> src/alloc.rs:47:36
|
47 | static RESIDENT: AtomicUsize = AtomicUsize::new(0);
| ^^^^^^^^^^^ use of undeclared type `AtomicUsize`
|
help: consider importing this struct
|
40 + use std::sync::atomic::AtomicUsize;
|
Check failure on line 47 in src/alloc.rs
github-actions / clippy
cannot find type `AtomicUsize` in this scope
error[E0412]: cannot find type `AtomicUsize` in this scope
--> src/alloc.rs:47:22
|
47 | static RESIDENT: AtomicUsize = AtomicUsize::new(0);
| ^^^^^^^^^^^ not found in this scope
|
help: consider importing this struct
|
40 + use std::sync::atomic::AtomicUsize;
|
Check failure on line 46 in src/alloc.rs
github-actions / clippy
failed to resolve: use of undeclared type `AtomicUsize`
error[E0433]: failed to resolve: use of undeclared type `AtomicUsize`
--> src/alloc.rs:46:33
|
46 | static FREED: AtomicUsize = AtomicUsize::new(0);
| ^^^^^^^^^^^ use of undeclared type `AtomicUsize`
|
help: consider importing this struct
|
40 + use std::sync::atomic::AtomicUsize;
|
Check failure on line 46 in src/alloc.rs
github-actions / clippy
cannot find type `AtomicUsize` in this scope
error[E0412]: cannot find type `AtomicUsize` in this scope
--> src/alloc.rs:46:19
|
46 | static FREED: AtomicUsize = AtomicUsize::new(0);
| ^^^^^^^^^^^ not found in this scope
|
help: consider importing this struct
|
40 + use std::sync::atomic::AtomicUsize;
|
Check failure on line 45 in src/alloc.rs
github-actions / clippy
failed to resolve: use of undeclared type `AtomicUsize`
error[E0433]: failed to resolve: use of undeclared type `AtomicUsize`
--> src/alloc.rs:45:37
|
45 | static ALLOCATED: AtomicUsize = AtomicUsize::new(0);
| ^^^^^^^^^^^ use of undeclared type `AtomicUsize`
|
help: consider importing this struct
|
40 + use std::sync::atomic::AtomicUsize;
|
Check failure on line 45 in src/alloc.rs
github-actions / clippy
cannot find type `AtomicUsize` in this scope
error[E0412]: cannot find type `AtomicUsize` in this scope
--> src/alloc.rs:45:23
|
45 | static ALLOCATED: AtomicUsize = AtomicUsize::new(0);
| ^^^^^^^^^^^ not found in this scope
|
help: consider importing this struct
|
40 + use std::sync::atomic::AtomicUsize;
|
Check failure on line 39 in src/alloc.rs
github-actions / clippy
the name `alloc` is defined multiple times
error[E0428]: the name `alloc` is defined multiple times
--> src/alloc.rs:39:1
|
14 | mod alloc {
| --------- previous definition of the module `alloc` here
...
39 | mod alloc {
| ^^^^^^^^^ `alloc` redefined here
|
= note: `alloc` must be defined only once in the type namespace of this module