Project Bloodstone - sled 1.0 #959
clippy
14 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 14 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.73.0-nightly (e4c144684 2023-08-04)
- cargo 1.73.0-nightly (d78bbf4bd 2023-08-03)
- clippy 0.1.73 (e4c1446 2023-08-04)
Annotations
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`
|
help: consider importing one of these items
|
40 + use core::cmp::Ordering;
|
40 + use core::sync::atomic::Ordering;
|
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`
|
help: consider importing one of these items
|
40 + use core::cmp::Ordering;
|
40 + use core::sync::atomic::Ordering;
|
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`
|
help: consider importing one of these items
|
40 + use core::cmp::Ordering;
|
40 + use core::sync::atomic::Ordering;
|
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`
|
help: consider importing one of these items
|
40 + use core::cmp::Ordering;
|
40 + use core::sync::atomic::Ordering;
|
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`
|
help: consider importing one of these items
|
40 + use core::cmp::Ordering;
|
40 + use core::sync::atomic::Ordering;
|
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`
|
help: consider importing one of these items
|
40 + use core::cmp::Ordering;
|
40 + use core::sync::atomic::Ordering;
|
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`
|
help: consider importing one of these items
|
40 + use core::cmp::Ordering;
|
40 + use core::sync::atomic::Ordering;
|
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 one of these items
|
40 + use core::sync::atomic::AtomicUsize;
|
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 one of these items
|
40 + use core::sync::atomic::AtomicUsize;
|
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 one of these items
|
40 + use core::sync::atomic::AtomicUsize;
|
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 one of these items
|
40 + use core::sync::atomic::AtomicUsize;
|
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 one of these items
|
40 + use core::sync::atomic::AtomicUsize;
|
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 one of these items
|
40 + use core::sync::atomic::AtomicUsize;
|
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