Skip to content

Conversation

@dhardy
Copy link
Contributor

@dhardy dhardy commented Jun 12, 2025

Add #[impl_self] macro as alternative syntax for impl_scope!.

Motivation: cargo fmt works with #[impl_self].

impl_scope! would be deprecated, except that #[impl_default] field initializers are not valid Rust syntax and thus not compatible with #[impl_self]. Fortunately, RFC 3681 looks like it could replace this need: rust-lang/rust#132162 (except in the rare case where one wants field initializers and the generic bounds assumed by derive(Default) are incorrect).

@dhardy dhardy changed the title Add #[impl_self] macro 0.11.2: Add #[impl_self] macro Jun 12, 2025
@dhardy dhardy merged commit 2d60bcb into master Jun 12, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants