Adds a new "flyweight" type - a lightweight object #340
rust-build.yml
on: push
build_default_linux
4m 22s
build_all_linux
3m 44s
build_default_macos
2m 14s
clippy_check
52s
Annotations
2 errors and 5 warnings
you are deriving `Hash` but have implemented `PartialEq` explicitly:
crates/common/src/var/flyweight.rs#L67
error: you are deriving `Hash` but have implemented `PartialEq` explicitly
--> crates/common/src/var/flyweight.rs:67:17
|
67 | #[derive(Clone, Hash, PartialOrd, Ord, Eq)]
| ^^^^
|
note: `PartialEq` implemented here
--> crates/common/src/var/flyweight.rs:78:1
|
78 | impl PartialEq for Inner {
| ^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derived_hash_with_manual_eq
= note: `#[deny(clippy::derived_hash_with_manual_eq)]` on by default
= note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info)
|
clippy_check
Clippy had exited with the 101 exit code
|
usage of an `Arc` that is not `Send` and `Sync`:
crates/common/src/var/flyweight.rs#L217
warning: usage of an `Arc` that is not `Send` and `Sync`
--> crates/common/src/var/flyweight.rs:217:28
|
217 | let fl = Flyweight(Arc::new(fi));
| ^^^^^^^^^^^^
|
= note: `Arc<Inner>` is not `Send` and `Sync` as `Inner` is neither `Send` nor `Sync`
= help: if the `Arc` will not used be across threads replace it with an `Rc`
= help: otherwise make `Inner` `Send` and `Sync` or consider a wrapper type such as `Mutex`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#arc_with_non_send_sync
|
usage of an `Arc` that is not `Send` and `Sync`:
crates/common/src/var/flyweight.rs#L175
warning: usage of an `Arc` that is not `Send` and `Sync`
--> crates/common/src/var/flyweight.rs:175:14
|
175 | Self(Arc::new(Inner {
| ______________^
176 | | delegate,
177 | | slots: slots.into(),
178 | | contents,
179 | | seal,
180 | | }))
| |__________^
|
= note: `Arc<Inner>` is not `Send` and `Sync` as `Inner` is neither `Send` nor `Sync`
= help: if the `Arc` will not used be across threads replace it with an `Rc`
= help: otherwise make `Inner` `Send` and `Sync` or consider a wrapper type such as `Mutex`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#arc_with_non_send_sync
= note: `#[warn(clippy::arc_with_non_send_sync)]` on by default
|
clippy_check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
build_all_linux
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
build_default_linux
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|