Better error messages on ErgoTree evaluation #2247
clippy
4 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 4 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.66.1 (90743e729 2023-01-10)
- cargo 1.66.1 (ad779e08b 2023-01-10)
- clippy 0.1.66 (90743e7 2023-01-10)
Annotations
Check failure on line 173 in ergotree-ir/src/mir/constant.rs
github-actions / clippy
the method `fmt` exists for reference `&std::sync::Arc<chain::ergo_box::ErgoBox>`, but its trait bounds were not satisfied
error[E0599]: the method `fmt` exists for reference `&std::sync::Arc<chain::ergo_box::ErgoBox>`, but its trait bounds were not satisfied
--> ergotree-ir/src/mir/constant.rs:173:35
|
173 | Literal::CBox(v) => v.fmt(f),
| ^^^ method cannot be called on `&std::sync::Arc<chain::ergo_box::ErgoBox>` due to unsatisfied trait bounds
|
::: ergotree-ir/src/chain/ergo_box.rs:60:1
|
60 | pub struct ErgoBox {
| ------------------ doesn't satisfy `chain::ergo_box::ErgoBox: std::fmt::Display`
|
= note: the following trait bounds were not satisfied:
`chain::ergo_box::ErgoBox: std::fmt::Display`
which is required by `std::sync::Arc<chain::ergo_box::ErgoBox>: std::fmt::Display`
`std::sync::Arc<chain::ergo_box::ErgoBox>: std::fmt::Display`
which is required by `&std::sync::Arc<chain::ergo_box::ErgoBox>: std::fmt::Display`
note: the following trait must be implemented
= help: items from traits can only be used if the trait is in scope
help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
|
3 | use crate::chain::address::_::_serde::de::Expected;
|
3 | use std::fmt::Binary;
|
3 | use std::fmt::Debug;
|
3 | use std::fmt::Display;
|
and 6 other candidates
Check failure on line 172 in ergotree-ir/src/mir/constant.rs
github-actions / clippy
the method `fmt` exists for reference `&std::boxed::Box<mir::avl_tree_data::AvlTreeData>`, but its trait bounds were not satisfied
error[E0599]: the method `fmt` exists for reference `&std::boxed::Box<mir::avl_tree_data::AvlTreeData>`, but its trait bounds were not satisfied
--> ergotree-ir/src/mir/constant.rs:172:38
|
172 | Literal::AvlTree(v) => v.fmt(f),
| ^^^ method cannot be called on `&std::boxed::Box<mir::avl_tree_data::AvlTreeData>` due to unsatisfied trait bounds
|
::: ergotree-ir/src/mir/avl_tree_data.rs:59:1
|
59 | pub struct AvlTreeData {
| ---------------------- doesn't satisfy `mir::avl_tree_data::AvlTreeData: std::fmt::Display`
|
= note: the following trait bounds were not satisfied:
`mir::avl_tree_data::AvlTreeData: std::fmt::Display`
which is required by `std::boxed::Box<mir::avl_tree_data::AvlTreeData>: std::fmt::Display`
`std::boxed::Box<mir::avl_tree_data::AvlTreeData>: std::fmt::Display`
which is required by `&std::boxed::Box<mir::avl_tree_data::AvlTreeData>: std::fmt::Display`
note: the following trait must be implemented
= help: items from traits can only be used if the trait is in scope
help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
|
3 | use crate::chain::address::_::_serde::de::Expected;
|
3 | use std::fmt::Binary;
|
3 | use std::fmt::Debug;
|
3 | use std::fmt::Display;
|
and 6 other candidates
Check failure on line 171 in ergotree-ir/src/mir/constant.rs
github-actions / clippy
the method `fmt` exists for reference `&std::boxed::Box<ergo_chain_types::EcPoint>`, but its trait bounds were not satisfied
error[E0599]: the method `fmt` exists for reference `&std::boxed::Box<ergo_chain_types::EcPoint>`, but its trait bounds were not satisfied
--> ergotree-ir/src/mir/constant.rs:171:43
|
171 | Literal::GroupElement(v) => v.fmt(f),
| ^^^ method cannot be called on `&std::boxed::Box<ergo_chain_types::EcPoint>` due to unsatisfied trait bounds
|
::: /home/runner/work/sigma-rust/sigma-rust/ergo-chain-types/src/ec_point.rs:18:1
|
18 | pub struct EcPoint(ProjectivePoint);
| ------------------ doesn't satisfy `ergo_chain_types::EcPoint: std::fmt::Display`
|
= note: the following trait bounds were not satisfied:
`ergo_chain_types::EcPoint: std::fmt::Display`
which is required by `std::boxed::Box<ergo_chain_types::EcPoint>: std::fmt::Display`
`std::boxed::Box<ergo_chain_types::EcPoint>: std::fmt::Display`
which is required by `&std::boxed::Box<ergo_chain_types::EcPoint>: std::fmt::Display`
= help: items from traits can only be used if the trait is in scope
help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
|
3 | use crate::chain::address::_::_serde::de::Expected;
|
3 | use std::fmt::Binary;
|
3 | use std::fmt::Debug;
|
3 | use std::fmt::Display;
|
and 6 other candidates
Check failure on line 170 in ergotree-ir/src/mir/constant.rs
github-actions / clippy
the method `fmt` exists for reference `&std::boxed::Box<sigma_protocol::sigma_boolean::SigmaProp>`, but its trait bounds were not satisfied
error[E0599]: the method `fmt` exists for reference `&std::boxed::Box<sigma_protocol::sigma_boolean::SigmaProp>`, but its trait bounds were not satisfied
--> ergotree-ir/src/mir/constant.rs:170:40
|
170 | Literal::SigmaProp(v) => v.fmt(f),
| ^^^ method cannot be called on `&std::boxed::Box<sigma_protocol::sigma_boolean::SigmaProp>` due to unsatisfied trait bounds
|
::: ergotree-ir/src/sigma_protocol/sigma_boolean.rs:251:1
|
251 | pub struct SigmaProp(SigmaBoolean);
| -------------------- doesn't satisfy `_: std::fmt::Display`
|
= note: the following trait bounds were not satisfied:
`sigma_protocol::sigma_boolean::SigmaProp: std::fmt::Display`
which is required by `std::boxed::Box<sigma_protocol::sigma_boolean::SigmaProp>: std::fmt::Display`
`std::boxed::Box<sigma_protocol::sigma_boolean::SigmaProp>: std::fmt::Display`
which is required by `&std::boxed::Box<sigma_protocol::sigma_boolean::SigmaProp>: std::fmt::Display`
note: the following trait must be implemented
= help: items from traits can only be used if the trait is in scope
help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
|
3 | use crate::chain::address::_::_serde::de::Expected;
|
3 | use std::fmt::Binary;
|
3 | use std::fmt::Debug;
|
3 | use std::fmt::Display;
|
and 6 other candidates