-
Notifications
You must be signed in to change notification settings - Fork 13.6k
[cfg_match] Document the use of expressions. #135625
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
Conversation
This comment has been minimized.
This comment has been minimized.
Can you remove all of the submodule updates? |
90608ee
to
5844eac
Compare
r? T-libs |
library/core/src/macros/mod.rs
Outdated
@@ -313,6 +313,17 @@ pub macro cfg_match { | |||
/// } | |||
/// } | |||
/// ``` | |||
/// | |||
/// If desired, it is possible to return expressions through the use of surrounding braces. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// If desired, it is possible to return expressions through the use of surrounding braces. | |
/// If desired, it is possible to return expressions through the use of surrounding braces: |
Nit, colon to introduce an example
One nit and squash please, then r=me |
5844eac
to
587b9c6
Compare
@bors r=tgross35,jhpratt rollup |
587b9c6
to
7d9fe91
Compare
@rustbot review |
Do we know why it choked on the comma? |
The macro does not support trailing commas at the current time. |
r? T-libs |
@bors r=tgross35,jhpratt
Why was this not a problem during PR CI though? |
cc #115585
Adds documentation to this new feature introduced in #133720.