Skip to content

Commit 5deefd1

Browse files
rename contractimpl_fns_without_blocks_filtered
1 parent 00b88b0 commit 5deefd1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

soroban-sdk-macros/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ pub fn contractimpl(metadata: TokenStream, input: TokenStream) -> TokenStream {
262262
#[#crate_path::contractargs(name = #args_ident, impl_only = true)]
263263
#[#crate_path::contractclient(crate_path = #crate_path_str, name = #client_ident, impl_only = true)]
264264
#[#crate_path::contractspecfn(name = #ty_str)]
265-
#[#crate_path::contractimpl_fns_without_blocks_filtered]
265+
#[#crate_path::contractimpl_remove_fns_without_blocks]
266266
#imp
267267
#derived_ok
268268
};
@@ -284,7 +284,7 @@ pub fn contractimpl(metadata: TokenStream, input: TokenStream) -> TokenStream {
284284
}
285285

286286
#[proc_macro_attribute]
287-
pub fn contractimpl_fns_without_blocks_filtered(
287+
pub fn contractimpl_remove_fns_without_blocks(
288288
_metadata: TokenStream,
289289
input: TokenStream,
290290
) -> TokenStream {

soroban-sdk/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,13 +401,13 @@ pub use soroban_sdk_macros::contract;
401401
/// ```
402402
pub use soroban_sdk_macros::contractimpl;
403403

404-
/// Strips out default functions of a trait that are not overridden in the impl
405-
/// block of a contract and are included without a block only so that the
406-
/// contractimpl macro can export the functions.
404+
/// Removes functions without blocks from impl blocks that use functions without blocks, terminated
405+
/// with a semi-colon, as a way to signal that a default trait function exists and should be
406+
/// exported.
407407
///
408408
/// This macro is used internally and is not intended to be used directly by contracts.
409409
#[doc(hidden)]
410-
pub use soroban_sdk_macros::contractimpl_fns_without_blocks_filtered;
410+
pub use soroban_sdk_macros::contractimpl_remove_fns_without_blocks;
411411

412412
/// Adds a serialized SCMetaEntry::SCMetaV0 to the WASM contracts custom section
413413
/// under the section name 'contractmetav0'. Contract developers can use this to

0 commit comments

Comments
 (0)