Skip to content

Instantly share code, notes, and snippets.

@vincenzopalazzo
Created September 10, 2024 13:37
Show Gist options
  • Select an option

  • Save vincenzopalazzo/1a260e1372adc3f6d70e65986f5ae949 to your computer and use it in GitHub Desktop.

Select an option

Save vincenzopalazzo/1a260e1372adc3f6d70e65986f5ae949 to your computer and use it in GitHub Desktop.
note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
Compiling spl-associated-token-account v2.3.0
Compiling solana-account-decoder v1.18.23
Compiling lava-config v0.1.0 (/home/vincent/github/work/lava/lava-mono/lava-config)
Compiling loans-core v0.1.0 (/home/vincent/github/work/lava/lava-mono/loans-core/core)
error[E0277]: the trait bound `MultiOracleTrieWithDiff: _::_serde::Serialize` is not satisfied
--> /home/vincent/github/work/lava/lava-mono/loans-core/core/src/oracle_engine.rs:24:42
|
24 | #[cfg_attr(feature = "use-serde", derive(Serialize, Deserialize))]
| ^^^^^^^^^ the trait `_::_serde::Serialize` is not implemented for `MultiOracleTrieWithDiff`, which is required by `Vec<MultiOracleTrieWithDiff>: _::_serde::Serialize`
...
28 | liquidation_tries: Vec<MultiOracleTrieWithDiff>,
| ----------------- required by a bound introduced by this call
|
= note: for local types consider adding `#[derive(serde::Serialize)]` to your `MultiOracleTrieWithDiff` type
= note: for types from other crates check whether the crate offers a `serde` feature flag
= help: the following other types implement trait `_::_serde::Serialize`:
bool
char
isize
i8
i16
i32
i64
i128
and 438 others
= note: required for `Vec<MultiOracleTrieWithDiff>` to implement `_::_serde::Serialize`
note: required by a bound in `_::_serde::ser::SerializeStruct::serialize_field`
--> /home/vincent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.210/src/ser/mod.rs:1867:21
|
1865 | fn serialize_field<T>(&mut self, key: &'static str, value: &T) -> Result<(), Self::Error>
| --------------- required by a bound in this associated function
1866 | where
1867 | T: ?Sized + Serialize;
| ^^^^^^^^^ required by this bound in `SerializeStruct::serialize_field`
= note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `MultiOracleTrieWithDiff: _::_serde::Deserialize<'_>` is not satisfied
--> /home/vincent/github/work/lava/lava-mono/loans-core/core/src/oracle_engine.rs:28:24
|
28 | liquidation_tries: Vec<MultiOracleTrieWithDiff>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `_::_serde::Deserialize<'_>` is not implemented for `MultiOracleTrieWithDiff`, which is required by `Vec<MultiOracleTrieWithDiff>: _::_serde::Deserialize<'_>`
|
= note: for local types consider adding `#[derive(serde::Deserialize)]` to your `MultiOracleTrieWithDiff` type
= note: for types from other crates check whether the crate offers a `serde` feature flag
= help: the following other types implement trait `_::_serde::Deserialize<'de>`:
<bool as _::_serde::Deserialize<'de>>
<char as _::_serde::Deserialize<'de>>
<isize as _::_serde::Deserialize<'de>>
<i8 as _::_serde::Deserialize<'de>>
<i16 as _::_serde::Deserialize<'de>>
<i32 as _::_serde::Deserialize<'de>>
<i64 as _::_serde::Deserialize<'de>>
<i128 as _::_serde::Deserialize<'de>>
and 457 others
= note: required for `Vec<MultiOracleTrieWithDiff>` to implement `_::_serde::Deserialize<'_>`
note: required by a bound in `next_element`
--> /home/vincent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.210/src/de/mod.rs:1732:12
|
1730 | fn next_element<T>(&mut self) -> Result<Option<T>, Self::Error>
| ------------ required by a bound in this associated function
1731 | where
1732 | T: Deserialize<'de>,
| ^^^^^^^^^^^^^^^^ required by this bound in `SeqAccess::next_element`
error[E0277]: the trait bound `MultiOracleTrieWithDiff: _::_serde::Deserialize<'_>` is not satisfied
--> /home/vincent/github/work/lava/lava-mono/loans-core/core/src/oracle_engine.rs:29:22
|
29 | expiration_trie: MultiOracleTrieWithDiff,
| ^^^^^^^^^^^^^^^^^^^^^^^ the trait `_::_serde::Deserialize<'_>` is not implemented for `MultiOracleTrieWithDiff`
|
= note: for local types consider adding `#[derive(serde::Deserialize)]` to your `MultiOracleTrieWithDiff` type
= note: for types from other crates check whether the crate offers a `serde` feature flag
= help: the following other types implement trait `_::_serde::Deserialize<'de>`:
<bool as _::_serde::Deserialize<'de>>
<char as _::_serde::Deserialize<'de>>
<isize as _::_serde::Deserialize<'de>>
<i8 as _::_serde::Deserialize<'de>>
<i16 as _::_serde::Deserialize<'de>>
<i32 as _::_serde::Deserialize<'de>>
<i64 as _::_serde::Deserialize<'de>>
<i128 as _::_serde::Deserialize<'de>>
and 457 others
note: required by a bound in `next_element`
--> /home/vincent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.210/src/de/mod.rs:1732:12
|
1730 | fn next_element<T>(&mut self) -> Result<Option<T>, Self::Error>
| ------------ required by a bound in this associated function
1731 | where
1732 | T: Deserialize<'de>,
| ^^^^^^^^^^^^^^^^ required by this bound in `SeqAccess::next_element`
error[E0277]: the trait bound `MultiOracleTrieWithDiff: _::_serde::Deserialize<'_>` is not satisfied
--> /home/vincent/github/work/lava/lava-mono/loans-core/core/src/oracle_engine.rs:28:24
|
28 | liquidation_tries: Vec<MultiOracleTrieWithDiff>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `_::_serde::Deserialize<'_>` is not implemented for `MultiOracleTrieWithDiff`, which is required by `Vec<MultiOracleTrieWithDiff>: _::_serde::Deserialize<'_>`
|
= note: for local types consider adding `#[derive(serde::Deserialize)]` to your `MultiOracleTrieWithDiff` type
= note: for types from other crates check whether the crate offers a `serde` feature flag
= help: the following other types implement trait `_::_serde::Deserialize<'de>`:
<bool as _::_serde::Deserialize<'de>>
<char as _::_serde::Deserialize<'de>>
<isize as _::_serde::Deserialize<'de>>
<i8 as _::_serde::Deserialize<'de>>
<i16 as _::_serde::Deserialize<'de>>
<i32 as _::_serde::Deserialize<'de>>
<i64 as _::_serde::Deserialize<'de>>
<i128 as _::_serde::Deserialize<'de>>
and 457 others
= note: required for `Vec<MultiOracleTrieWithDiff>` to implement `_::_serde::Deserialize<'_>`
note: required by a bound in `next_value`
--> /home/vincent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.210/src/de/mod.rs:1871:12
|
1869 | fn next_value<V>(&mut self) -> Result<V, Self::Error>
| ---------- required by a bound in this associated function
1870 | where
1871 | V: Deserialize<'de>,
| ^^^^^^^^^^^^^^^^ required by this bound in `MapAccess::next_value`
error[E0277]: the trait bound `MultiOracleTrieWithDiff: _::_serde::Deserialize<'_>` is not satisfied
--> /home/vincent/github/work/lava/lava-mono/loans-core/core/src/oracle_engine.rs:29:22
|
29 | expiration_trie: MultiOracleTrieWithDiff,
| ^^^^^^^^^^^^^^^^^^^^^^^ the trait `_::_serde::Deserialize<'_>` is not implemented for `MultiOracleTrieWithDiff`
|
= note: for local types consider adding `#[derive(serde::Deserialize)]` to your `MultiOracleTrieWithDiff` type
= note: for types from other crates check whether the crate offers a `serde` feature flag
= help: the following other types implement trait `_::_serde::Deserialize<'de>`:
<bool as _::_serde::Deserialize<'de>>
<char as _::_serde::Deserialize<'de>>
<isize as _::_serde::Deserialize<'de>>
<i8 as _::_serde::Deserialize<'de>>
<i16 as _::_serde::Deserialize<'de>>
<i32 as _::_serde::Deserialize<'de>>
<i64 as _::_serde::Deserialize<'de>>
<i128 as _::_serde::Deserialize<'de>>
and 457 others
note: required by a bound in `next_value`
--> /home/vincent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.210/src/de/mod.rs:1871:12
|
1869 | fn next_value<V>(&mut self) -> Result<V, Self::Error>
| ---------- required by a bound in this associated function
1870 | where
1871 | V: Deserialize<'de>,
| ^^^^^^^^^^^^^^^^ required by this bound in `MapAccess::next_value`
error[E0277]: the trait bound `MultiOracleTrieWithDiff: _::_serde::Deserialize<'_>` is not satisfied
--> /home/vincent/github/work/lava/lava-mono/loans-core/core/src/oracle_engine.rs:24:53
|
24 | #[cfg_attr(feature = "use-serde", derive(Serialize, Deserialize))]
| ^^^^^^^^^^^ the trait `_::_serde::Deserialize<'_>` is not implemented for `MultiOracleTrieWithDiff`, which is required by `Vec<MultiOracleTrieWithDiff>: _::_serde::Deserialize<'_>`
|
= note: for local types consider adding `#[derive(serde::Deserialize)]` to your `MultiOracleTrieWithDiff` type
= note: for types from other crates check whether the crate offers a `serde` feature flag
= help: the following other types implement trait `_::_serde::Deserialize<'de>`:
<bool as _::_serde::Deserialize<'de>>
<char as _::_serde::Deserialize<'de>>
<isize as _::_serde::Deserialize<'de>>
<i8 as _::_serde::Deserialize<'de>>
<i16 as _::_serde::Deserialize<'de>>
<i32 as _::_serde::Deserialize<'de>>
<i64 as _::_serde::Deserialize<'de>>
<i128 as _::_serde::Deserialize<'de>>
and 457 others
= note: required for `Vec<MultiOracleTrieWithDiff>` to implement `_::_serde::Deserialize<'_>`
note: required by a bound in `_::_serde::__private::de::missing_field`
--> /home/vincent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.210/src/private/de.rs:25:8
|
23 | pub fn missing_field<'de, V, E>(field: &'static str) -> Result<V, E>
| ------------- required by a bound in this function
24 | where
25 | V: Deserialize<'de>,
| ^^^^^^^^^^^^^^^^ required by this bound in `missing_field`
= note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0369]: binary operation `==` cannot be applied to type `Vec<MultiOracleTrieWithDiff>`
--> /home/vincent/github/work/lava/lava-mono/loans-core/core/src/oracle_engine.rs:28:5
|
23 | #[derive(Clone, PartialEq, Eq, Debug)]
| --------- in this derive macro expansion
...
28 | liquidation_tries: Vec<MultiOracleTrieWithDiff>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0369]: binary operation `==` cannot be applied to type `MultiOracleTrieWithDiff`
--> /home/vincent/github/work/lava/lava-mono/loans-core/core/src/oracle_engine.rs:29:5
|
23 | #[derive(Clone, PartialEq, Eq, Debug)]
| --------- in this derive macro expansion
...
29 | expiration_trie: MultiOracleTrieWithDiff,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `MultiOracleTrieWithDiff: std::cmp::Eq` is not satisfied
--> /home/vincent/github/work/lava/lava-mono/loans-core/core/src/oracle_engine.rs:29:5
|
23 | #[derive(Clone, PartialEq, Eq, Debug)]
| -- in this derive macro expansion
...
29 | expiration_trie: MultiOracleTrieWithDiff,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::cmp::Eq` is not implemented for `MultiOracleTrieWithDiff`
|
note: required by a bound in `AssertParamIsEq`
--> /home/vincent/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/cmp.rs:360:31
|
360 | pub struct AssertParamIsEq<T: Eq + ?Sized> {
| ^^ required by this bound in `AssertParamIsEq`
= note: this error originates in the derive macro `Eq` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: `MultiOracleTrieWithDiff` doesn't implement `std::fmt::Debug`
--> /home/vincent/github/work/lava/lava-mono/loans-core/core/src/oracle_engine.rs:29:5
|
23 | #[derive(Clone, PartialEq, Eq, Debug)]
| ----- in this derive macro expansion
...
29 | expiration_trie: MultiOracleTrieWithDiff,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `MultiOracleTrieWithDiff` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
|
= help: the trait `std::fmt::Debug` is not implemented for `MultiOracleTrieWithDiff`
= note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
Compiling anchor-spl v0.29.0
Some errors have detailed explanations: E0277, E0369.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `loans-core` (lib) due to 10 previous errors
warning: build failed, waiting for other jobs to finish...
make: *** [Makefile:7: default] Error 101
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment