Skip to content

Commit

Permalink
unified syntax - diagnostic::on_unimplemented
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-marinica committed May 23, 2024
1 parent cf23360 commit 7dfb18c
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 1 deletion.
10 changes: 10 additions & 0 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,6 +14,11 @@ where
{
}

#[diagnostic::on_unimplemented(

Check failure on line 17 in framework/base/src/types/interaction/tx_data/tx_code_source.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Rust tests

`#[diagnostic]` attribute name space is experimental

Check failure on line 17 in framework/base/src/types/interaction/tx_data/tx_code_source.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] framework/base/src/types/interaction/tx_data/tx_code_source.rs#L17

error[E0658]: `#[diagnostic]` attribute name space is experimental --> framework/base/src/types/interaction/tx_data/tx_code_source.rs:17:3 | 17 | #[diagnostic::on_unimplemented( | ^^^^^^^^^^ | = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable
Raw output
framework/base/src/types/interaction/tx_data/tx_code_source.rs:17:3:e:error[E0658]: `#[diagnostic]` attribute name space is experimental
  --> framework/base/src/types/interaction/tx_data/tx_code_source.rs:17:3
   |
17 | #[diagnostic::on_unimplemented(
   |   ^^^^^^^^^^
   |
   = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information
   = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable


__END__

Check failure on line 17 in framework/base/src/types/interaction/tx_data/tx_code_source.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] framework/base/src/types/interaction/tx_data/tx_code_source.rs#L17

error[E0658]: `#[diagnostic]` attribute name space is experimental --> framework/base/src/types/interaction/tx_data/tx_code_source.rs:17:3 | 17 | #[diagnostic::on_unimplemented( | ^^^^^^^^^^ | = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable
Raw output
framework/base/src/types/interaction/tx_data/tx_code_source.rs:17:3:e:error[E0658]: `#[diagnostic]` attribute name space is experimental
  --> framework/base/src/types/interaction/tx_data/tx_code_source.rs:17:3
   |
17 | #[diagnostic::on_unimplemented(
   |   ^^^^^^^^^^
   |
   = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information
   = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable


__END__

Check failure on line 17 in framework/base/src/types/interaction/tx_data/tx_code_source.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Test Coverage

`#[diagnostic]` attribute name space is experimental

Check failure on line 17 in framework/base/src/types/interaction/tx_data/tx_code_source.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Wasm tests

`#[diagnostic]` attribute name space is experimental
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 @@ -39,6 +44,11 @@ where
{
}

#[diagnostic::on_unimplemented(

Check failure on line 47 in framework/base/src/types/interaction/tx_data/tx_code_source.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Rust tests

`#[diagnostic]` attribute name space is experimental

Check failure on line 47 in framework/base/src/types/interaction/tx_data/tx_code_source.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] framework/base/src/types/interaction/tx_data/tx_code_source.rs#L47

error[E0658]: `#[diagnostic]` attribute name space is experimental --> framework/base/src/types/interaction/tx_data/tx_code_source.rs:47:3 | 47 | #[diagnostic::on_unimplemented( | ^^^^^^^^^^ | = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable
Raw output
framework/base/src/types/interaction/tx_data/tx_code_source.rs:47:3:e:error[E0658]: `#[diagnostic]` attribute name space is experimental
  --> framework/base/src/types/interaction/tx_data/tx_code_source.rs:47:3
   |
47 | #[diagnostic::on_unimplemented(
   |   ^^^^^^^^^^
   |
   = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information
   = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable


__END__

Check failure on line 47 in framework/base/src/types/interaction/tx_data/tx_code_source.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] framework/base/src/types/interaction/tx_data/tx_code_source.rs#L47

error[E0658]: `#[diagnostic]` attribute name space is experimental --> framework/base/src/types/interaction/tx_data/tx_code_source.rs:47:3 | 47 | #[diagnostic::on_unimplemented( | ^^^^^^^^^^ | = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable
Raw output
framework/base/src/types/interaction/tx_data/tx_code_source.rs:47:3:e:error[E0658]: `#[diagnostic]` attribute name space is experimental
  --> framework/base/src/types/interaction/tx_data/tx_code_source.rs:47:3
   |
47 | #[diagnostic::on_unimplemented(
   |   ^^^^^^^^^^
   |
   = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information
   = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable


__END__

Check failure on line 47 in framework/base/src/types/interaction/tx_data/tx_code_source.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Test Coverage

`#[diagnostic]` attribute name space is experimental

Check failure on line 47 in framework/base/src/types/interaction/tx_data/tx_code_source.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Wasm tests

`#[diagnostic]` attribute name space is experimental
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: 5 additions & 0 deletions framework/base/src/types/interaction/tx_from.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ where
/// Marks the non-empty sender of a transaction.
///
/// Enforces the reciipent to be explicitly specified.
#[diagnostic::on_unimplemented(

Check failure on line 16 in framework/base/src/types/interaction/tx_from.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Rust tests

`#[diagnostic]` attribute name space is experimental

Check failure on line 16 in framework/base/src/types/interaction/tx_from.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] framework/base/src/types/interaction/tx_from.rs#L16

error[E0658]: `#[diagnostic]` attribute name space is experimental --> framework/base/src/types/interaction/tx_from.rs:16:3 | 16 | #[diagnostic::on_unimplemented( | ^^^^^^^^^^ | = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable
Raw output
framework/base/src/types/interaction/tx_from.rs:16:3:e:error[E0658]: `#[diagnostic]` attribute name space is experimental
  --> framework/base/src/types/interaction/tx_from.rs:16:3
   |
16 | #[diagnostic::on_unimplemented(
   |   ^^^^^^^^^^
   |
   = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information
   = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable


__END__

Check failure on line 16 in framework/base/src/types/interaction/tx_from.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] framework/base/src/types/interaction/tx_from.rs#L16

error[E0658]: `#[diagnostic]` attribute name space is experimental --> framework/base/src/types/interaction/tx_from.rs:16:3 | 16 | #[diagnostic::on_unimplemented( | ^^^^^^^^^^ | = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable
Raw output
framework/base/src/types/interaction/tx_from.rs:16:3:e:error[E0658]: `#[diagnostic]` attribute name space is experimental
  --> framework/base/src/types/interaction/tx_from.rs:16:3
   |
16 | #[diagnostic::on_unimplemented(
   |   ^^^^^^^^^^
   |
   = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information
   = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable


__END__

Check failure on line 16 in framework/base/src/types/interaction/tx_from.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Test Coverage

`#[diagnostic]` attribute name space is experimental

Check failure on line 16 in framework/base/src/types/interaction/tx_from.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Wasm tests

`#[diagnostic]` attribute name space is experimental
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
6 changes: 6 additions & 0 deletions framework/base/src/types/interaction/tx_gas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use crate::{
types::ManagedBuffer,
};

/// All typed that populate the gas field of a transaction need to implement this trait.
pub trait TxGas<Env>
where
Env: TxEnv,
Expand Down Expand Up @@ -32,6 +33,11 @@ where
}
}

#[diagnostic::on_unimplemented(

Check failure on line 36 in framework/base/src/types/interaction/tx_gas.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Rust tests

`#[diagnostic]` attribute name space is experimental

Check failure on line 36 in framework/base/src/types/interaction/tx_gas.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] framework/base/src/types/interaction/tx_gas.rs#L36

error[E0658]: `#[diagnostic]` attribute name space is experimental --> framework/base/src/types/interaction/tx_gas.rs:36:3 | 36 | #[diagnostic::on_unimplemented( | ^^^^^^^^^^ | = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable
Raw output
framework/base/src/types/interaction/tx_gas.rs:36:3:e:error[E0658]: `#[diagnostic]` attribute name space is experimental
  --> framework/base/src/types/interaction/tx_gas.rs:36:3
   |
36 | #[diagnostic::on_unimplemented(
   |   ^^^^^^^^^^
   |
   = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information
   = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable


__END__

Check failure on line 36 in framework/base/src/types/interaction/tx_gas.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] framework/base/src/types/interaction/tx_gas.rs#L36

error[E0658]: `#[diagnostic]` attribute name space is experimental --> framework/base/src/types/interaction/tx_gas.rs:36:3 | 36 | #[diagnostic::on_unimplemented( | ^^^^^^^^^^ | = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable
Raw output
framework/base/src/types/interaction/tx_gas.rs:36:3:e:error[E0658]: `#[diagnostic]` attribute name space is experimental
  --> framework/base/src/types/interaction/tx_gas.rs:36:3
   |
36 | #[diagnostic::on_unimplemented(
   |   ^^^^^^^^^^
   |
   = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information
   = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable


__END__

Check failure on line 36 in framework/base/src/types/interaction/tx_gas.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Test Coverage

`#[diagnostic]` attribute name space is experimental

Check failure on line 36 in framework/base/src/types/interaction/tx_gas.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Wasm tests

`#[diagnostic]` attribute name space is experimental
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: 5 additions & 0 deletions framework/base/src/types/interaction/tx_payment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ use crate::{
use super::{AnnotatedValue, FunctionCall, TxEnv, TxFrom, TxToSpecified};

/// Describes a payment that is part of a transaction.
#[diagnostic::on_unimplemented(

Check failure on line 27 in framework/base/src/types/interaction/tx_payment.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Rust tests

`#[diagnostic]` attribute name space is experimental

Check failure on line 27 in framework/base/src/types/interaction/tx_payment.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] framework/base/src/types/interaction/tx_payment.rs#L27

error[E0658]: `#[diagnostic]` attribute name space is experimental --> framework/base/src/types/interaction/tx_payment.rs:27:3 | 27 | #[diagnostic::on_unimplemented( | ^^^^^^^^^^ | = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable
Raw output
framework/base/src/types/interaction/tx_payment.rs:27:3:e:error[E0658]: `#[diagnostic]` attribute name space is experimental
  --> framework/base/src/types/interaction/tx_payment.rs:27:3
   |
27 | #[diagnostic::on_unimplemented(
   |   ^^^^^^^^^^
   |
   = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information
   = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable


__END__

Check failure on line 27 in framework/base/src/types/interaction/tx_payment.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] framework/base/src/types/interaction/tx_payment.rs#L27

error[E0658]: `#[diagnostic]` attribute name space is experimental --> framework/base/src/types/interaction/tx_payment.rs:27:3 | 27 | #[diagnostic::on_unimplemented( | ^^^^^^^^^^ | = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable
Raw output
framework/base/src/types/interaction/tx_payment.rs:27:3:e:error[E0658]: `#[diagnostic]` attribute name space is experimental
  --> framework/base/src/types/interaction/tx_payment.rs:27:3
   |
27 | #[diagnostic::on_unimplemented(
   |   ^^^^^^^^^^
   |
   = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information
   = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable


__END__

Check failure on line 27 in framework/base/src/types/interaction/tx_payment.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Test Coverage

`#[diagnostic]` attribute name space is experimental

Check failure on line 27 in framework/base/src/types/interaction/tx_payment.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Wasm tests

`#[diagnostic]` attribute name space is experimental
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,6 +3,11 @@ use crate::types::TxEnv;
/// Result handler list item.
///
/// It acts as a result handler that produces a single result.
#[diagnostic::on_unimplemented(

Check failure on line 6 in framework/base/src/types/interaction/tx_result_handler_list/tx_result_handler_list_item.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Rust tests

`#[diagnostic]` attribute name space is experimental

Check failure on line 6 in framework/base/src/types/interaction/tx_result_handler_list/tx_result_handler_list_item.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] framework/base/src/types/interaction/tx_result_handler_list/tx_result_handler_list_item.rs#L6

error[E0658]: `#[diagnostic]` attribute name space is experimental --> framework/base/src/types/interaction/tx_result_handler_list/tx_result_handler_list_item.rs:6:3 | 6 | #[diagnostic::on_unimplemented( | ^^^^^^^^^^ | = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable
Raw output
framework/base/src/types/interaction/tx_result_handler_list/tx_result_handler_list_item.rs:6:3:e:error[E0658]: `#[diagnostic]` attribute name space is experimental
 --> framework/base/src/types/interaction/tx_result_handler_list/tx_result_handler_list_item.rs:6:3
  |
6 | #[diagnostic::on_unimplemented(
  |   ^^^^^^^^^^
  |
  = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information
  = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable


__END__

Check failure on line 6 in framework/base/src/types/interaction/tx_result_handler_list/tx_result_handler_list_item.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] framework/base/src/types/interaction/tx_result_handler_list/tx_result_handler_list_item.rs#L6

error[E0658]: `#[diagnostic]` attribute name space is experimental --> framework/base/src/types/interaction/tx_result_handler_list/tx_result_handler_list_item.rs:6:3 | 6 | #[diagnostic::on_unimplemented( | ^^^^^^^^^^ | = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable
Raw output
framework/base/src/types/interaction/tx_result_handler_list/tx_result_handler_list_item.rs:6:3:e:error[E0658]: `#[diagnostic]` attribute name space is experimental
 --> framework/base/src/types/interaction/tx_result_handler_list/tx_result_handler_list_item.rs:6:3
  |
6 | #[diagnostic::on_unimplemented(
  |   ^^^^^^^^^^
  |
  = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information
  = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable


__END__

Check failure on line 6 in framework/base/src/types/interaction/tx_result_handler_list/tx_result_handler_list_item.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Test Coverage

`#[diagnostic]` attribute name space is experimental

Check failure on line 6 in framework/base/src/types/interaction/tx_result_handler_list/tx_result_handler_list_item.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Wasm tests

`#[diagnostic]` attribute name space is experimental
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
7 changes: 6 additions & 1 deletion framework/base/src/types/interaction/tx_to.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ impl<Env> TxTo<Env> for () where Env: TxEnv {}

/// Marks the non-empty recipient of a transaction.
///
/// Enforces the reciipent to be explicitly specified.
/// Enforces the recipient to be explicitly specified.
#[diagnostic::on_unimplemented(

Check failure on line 17 in framework/base/src/types/interaction/tx_to.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Rust tests

`#[diagnostic]` attribute name space is experimental

Check failure on line 17 in framework/base/src/types/interaction/tx_to.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] framework/base/src/types/interaction/tx_to.rs#L17

error[E0658]: `#[diagnostic]` attribute name space is experimental --> framework/base/src/types/interaction/tx_to.rs:17:3 | 17 | #[diagnostic::on_unimplemented( | ^^^^^^^^^^ | = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable
Raw output
framework/base/src/types/interaction/tx_to.rs:17:3:e:error[E0658]: `#[diagnostic]` attribute name space is experimental
  --> framework/base/src/types/interaction/tx_to.rs:17:3
   |
17 | #[diagnostic::on_unimplemented(
   |   ^^^^^^^^^^
   |
   = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information
   = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable


__END__

Check failure on line 17 in framework/base/src/types/interaction/tx_to.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] framework/base/src/types/interaction/tx_to.rs#L17

error[E0658]: `#[diagnostic]` attribute name space is experimental --> framework/base/src/types/interaction/tx_to.rs:17:3 | 17 | #[diagnostic::on_unimplemented( | ^^^^^^^^^^ | = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable
Raw output
framework/base/src/types/interaction/tx_to.rs:17:3:e:error[E0658]: `#[diagnostic]` attribute name space is experimental
  --> framework/base/src/types/interaction/tx_to.rs:17:3
   |
17 | #[diagnostic::on_unimplemented(
   |   ^^^^^^^^^^
   |
   = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information
   = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable


__END__

Check failure on line 17 in framework/base/src/types/interaction/tx_to.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Test Coverage

`#[diagnostic]` attribute name space is experimental

Check failure on line 17 in framework/base/src/types/interaction/tx_to.rs

View workflow job for this annotation

GitHub Actions / Contracts (nightly) / Wasm tests

`#[diagnostic]` attribute name space is experimental
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 7dfb18c

Please sign in to comment.