Latest nightly #800
Annotations
1 error and 16 warnings
cargo clippy
Process completed with exit code 1.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/toolchain@v1.0.6, extractions/setup-just@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1.0.6. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
cargo clippy:
cordyceps/src/loom.rs#L3
warning: item has both inner and outer attributes
--> cordyceps/src/loom.rs:3:1
|
3 | / #[cfg(loom)]
4 | | mod inner {
5 | | #![allow(unused_imports)]
| |_____________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mixed_attributes_style
= note: `#[warn(clippy::mixed_attributes_style)]` on by default
|
cargo clippy:
cordyceps/src/loom.rs#L64
warning: item has both inner and outer attributes
--> cordyceps/src/loom.rs:64:1
|
64 | / #[cfg(not(loom))]
65 | | mod inner {
66 | | #![allow(dead_code, unused_imports)]
| |________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mixed_attributes_style
|
cargo clippy:
cordyceps/src/list.rs#L305
warning: you should consider adding a `Default` implementation for `List<T>`
--> cordyceps/src/list.rs:305:5
|
305 | / pub const fn new() -> List<T> {
306 | | List {
307 | | head: None,
308 | | tail: None,
309 | | len: 0,
310 | | }
311 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
= note: `#[warn(clippy::new_without_default)]` on by default
help: try adding this
|
302 + impl<T: Linked<Links<T>> + ?Sized> Default for List<T> {
303 + fn default() -> Self {
304 + Self::new()
305 + }
306 + }
|
|
cargo clippy:
cordyceps/src/stack.rs#L113
warning: you should consider adding a `Default` implementation for `TransferStack<T>`
--> cordyceps/src/stack.rs:113:5
|
113 | / pub const fn new() -> Self {
114 | | Self {
115 | | head: AtomicPtr::new(ptr::null_mut()),
116 | | }
117 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
help: try adding this
|
106 + impl<T> Default for TransferStack<T>
107 + where
108 + T: Linked<Links<T>>,
109 + {
110 + fn default() -> Self {
111 + Self::new()
112 + }
113 + }
|
|
cargo clippy:
cordyceps/src/stack.rs#L208
warning: you should consider adding a `Default` implementation for `Stack<T>`
--> cordyceps/src/stack.rs:208:5
|
208 | / pub const fn new() -> Self {
209 | | Self { head: None }
210 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
help: try adding this
|
202 + impl<T> Default for Stack<T>
203 + where
204 + T: Linked<Links<T>>,
205 + {
206 + fn default() -> Self {
207 + Self::new()
208 + }
209 + }
|
|
cargo clippy:
cordyceps/src/stack.rs#L337
warning: you should consider adding a `Default` implementation for `Links<T>`
--> cordyceps/src/stack.rs:337:5
|
337 | / pub const fn new() -> Self {
338 | | Self {
339 | | next: UnsafeCell::new(None),
340 | | _unpin: PhantomPinned,
341 | | }
342 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
help: try adding this
|
333 + impl<T> Default for Links<T> {
334 + fn default() -> Self {
335 + Self::new()
336 + }
337 + }
|
|
cargo clippy:
maitake-sync/src/loom.rs#L4
warning: item has both inner and outer attributes
--> maitake-sync/src/loom.rs:4:1
|
4 | / #[cfg(loom)]
5 | | mod inner {
6 | | #![allow(dead_code)]
7 | | #![allow(unused_imports)]
| |_____________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mixed_attributes_style
= note: `#[warn(clippy::mixed_attributes_style)]` on by default
|
cargo clippy:
maitake-sync/src/loom.rs#L104
warning: item has both inner and outer attributes
--> maitake-sync/src/loom.rs:104:1
|
104 | / #[cfg(not(loom))]
105 | | mod inner {
106 | | #![allow(dead_code, unused_imports)]
| |________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mixed_attributes_style
|
cargo clippy:
maitake-sync/src/util.rs#L126
warning: you should consider adding a `Default` implementation for `WaitCell`
--> maitake-sync/src/util.rs:126:9
|
126 | $vis const fn $name($($arg: $T),*) -> $Ret $body
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: maitake-sync/src/wait_cell.rs:94:5
|
94 | / loom_const_fn! {
95 | | /// Returns a new `WaitCell`, with no [`Waker`] stored in it.
96 | | #[must_use]
97 | | pub fn new() -> Self {
... |
102 | | }
103 | | }
| |_____- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
= note: `#[warn(clippy::new_without_default)]` on by default
= note: this warning originates in the macro `loom_const_fn` (in Nightly builds, run with -Z macro-backtrace for more info)
help: try adding this
--> maitake-sync/src/wait_cell.rs:93:1
|
93 + impl Default for WaitCell {
94 + fn default() -> Self {
95 + Self::new()
96 + }
97 + }
|
|
cargo clippy:
maitake-sync/src/wait_map.rs#L417
warning: you should consider adding a `Default` implementation for `WaitMap<K, V>`
--> maitake-sync/src/wait_map.rs:417:5
|
417 | / pub const fn new() -> Self {
418 | | Self {
419 | | state: CachePadded::new(AtomicUsize::new(State::Empty.into_usize())),
420 | | queue: Mutex::new(List::new()),
421 | | }
422 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
help: try adding this
|
413 + impl<K: PartialEq, V> Default for WaitMap<K, V> {
414 + fn default() -> Self {
415 + Self::new()
416 + }
417 + }
|
|
install rust toolchain
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
install rust toolchain
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
install rust toolchain
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
install rust toolchain
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
The logs for this run have expired and are no longer available.
Loading