Skip to content

Replace trivial new() methods with Constructor derives - #14680

Merged
Turbo87 merged 1 commit into
rust-lang:mainfrom
Turbo87:derive-constructor
Sep 15, 2026
Merged

Turbo87 merged 1 commit into
rust-lang:mainfrom
Turbo87:derive-constructor

Conversation

@Turbo87

@Turbo87 Turbo87 commented Sep 14, 2026

Copy link
Copy Markdown
Member

The generated constructors preserve the existing signatures while removing repetitive field initialization.

The generated constructors preserve the existing signatures while
removing repetitive field initialization.
@Turbo87
Turbo87 merged commit 54608f6 into rust-lang:main Sep 15, 2026
12 checks passed
@Turbo87
Turbo87 deleted the derive-constructor branch September 15, 2026 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants