Skip to content

Commit

Permalink
temporarily removed diagnostic::on_unimplemented
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-marinica committed Jul 5, 2024
1 parent 0002648 commit 4dd354a
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 36 deletions.
1 change: 0 additions & 1 deletion framework/base/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "multiversx-sc"
version = "0.50.5"
edition = "2021"
rust-version = "1.78"

authors = ["Andrei Marinica <[email protected]>", "MultiversX <[email protected]>"]
license = "GPL-3.0-only"
Expand Down
10 changes: 0 additions & 10 deletions framework/base/src/types/interaction/tx_data/tx_code_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ where
{
}

#[diagnostic::on_unimplemented(
message = "Type `{Self}` cannot be used as code (does not implement `TxCodeValue<{Env}>`)",
label = "not a valid smart contract byte code",
note = "there are multiple ways to specify SC byte code, but `{Self}` is not one of them"
)]
pub trait TxCodeValue<Env>: AnnotatedValue<Env, ManagedBuffer<Env::Api>>
where
Env: TxEnv,
Expand All @@ -44,11 +39,6 @@ where
{
}

#[diagnostic::on_unimplemented(
message = "Type `{Self}` cannot be used as code source value (does not implement `TxFromSourceValue<{Env}>`)",
label = "not an address from where to copy the code",
note = "there are multiple ways to specify a code source address, but `{Self}` is not one of them"
)]
pub trait TxFromSourceValue<Env>: AnnotatedValue<Env, ManagedAddress<Env::Api>>
where
Env: TxEnv,
Expand Down
5 changes: 0 additions & 5 deletions framework/base/src/types/interaction/tx_from.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ where
/// Marks the non-empty sender of a transaction.
///
/// Enforces the reciipent to be explicitly specified.
#[diagnostic::on_unimplemented(
message = "Type `{Self}` cannot be used as a sender value (does not implement `TxFromSpecified<{Env}>`)",
label = "sender needs to be explicit",
note = "there are multiple ways to specify the sender value for a transaction, but `{Self}` is not one of them"
)]
pub trait TxFromSpecified<Env>:
TxFrom<Env> + AnnotatedValue<Env, ManagedAddress<Env::Api>>
where
Expand Down
5 changes: 0 additions & 5 deletions framework/base/src/types/interaction/tx_gas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ where
}
}

#[diagnostic::on_unimplemented(
message = "Type `{Self}` cannot be used as gas value (does not implement `TxGasValue<{Env}>`)",
label = "not a valid value for gas",
note = "there are multiple ways to specify the gas value for a transaction, but `{Self}` is not one of them"
)]
pub trait TxGasValue<Env>: AnnotatedValue<Env, u64>
where
Env: TxEnv,
Expand Down
5 changes: 0 additions & 5 deletions framework/base/src/types/interaction/tx_payment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ use crate::{
use super::{AnnotatedValue, FunctionCall, TxEnv, TxFrom, TxToSpecified};

/// Describes a payment that is part of a transaction.
#[diagnostic::on_unimplemented(
message = "Type `{Self}` cannot be used as payment (does not implement `TxPayment<{Env}>`)",
label = "not a valid payment type",
note = "there are multiple ways to specify the transaction payment, but `{Self}` is not one of them"
)]
pub trait TxPayment<Env>
where
Env: TxEnv,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ use crate::types::TxEnv;
/// Result handler list item.
///
/// It acts as a result handler that produces a single result.
#[diagnostic::on_unimplemented(
message = "Type `{Self}` cannot be used as a decoder result handler (does not implement `RHListItem<{Env}>`)",
label = "not a valid decoder result handler",
note = "there are multiple ways to specify the result handling, but `{Self}` is not one of them"
)]
pub trait RHListItem<Env, Original>
where
Env: TxEnv,
Expand Down
5 changes: 0 additions & 5 deletions framework/base/src/types/interaction/tx_to.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ impl<Env> TxTo<Env> for () where Env: TxEnv {}
/// Marks the non-empty recipient of a transaction.
///
/// Enforces the recipient to be explicitly specified.
#[diagnostic::on_unimplemented(
message = "Type `{Self}` cannot be used as recipient value (does not implement `TxToSpecified<{Env}>`)",
label = "recipient needs to be explicit",
note = "there are multiple ways to specify the recipient value for a transaction, but `{Self}` is not one of them"
)]
pub trait TxToSpecified<Env>: TxTo<Env> + AnnotatedValue<Env, ManagedAddress<Env::Api>>
where
Env: TxEnv,
Expand Down

0 comments on commit 4dd354a

Please sign in to comment.