Skip to content

0.11.2: Add #[impl_self] macro #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 12, 2025
Merged

0.11.2: Add #[impl_self] macro #53

merged 3 commits into from
Jun 12, 2025

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.

1 participant