Skip to content
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

Rust/Codegen: make () -> () the default signature #17477

Merged
merged 3 commits into from
Sep 17, 2024

Conversation

redsun82
Copy link
Contributor

Now no @rust.doct_test_signature decorator will use () -> () as default, which is by far the most common case. In order to not add a function wrapper, one now needs to explicitly use the @rust.doc_test_signature(None) decoration.

@redsun82 redsun82 requested a review from a team as a code owner September 16, 2024 11:35
@github-actions github-actions bot added the Rust Pull requests that update Rust code label Sep 16, 2024
aibaars
aibaars previously approved these changes Sep 16, 2024
Copy link
Contributor

@aibaars aibaars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's much nicer, thanks!

@paldepind
Copy link
Contributor

LGTM 🎉

@redsun82 redsun82 merged commit fc9c4a8 into main Sep 17, 2024
21 of 22 checks passed
@redsun82 redsun82 deleted the redsun82/rust-default-doc-signature branch September 17, 2024 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants