prepare v1.4.24 release#4514
Merged
calebcartwright merged 4 commits intorust-lang:rustfmt-1.4.24from Nov 6, 2020
Merged
Conversation
We no longer flatten a block that looks like this:
```rust
match val {
pat => { macro_call!() }
}
```
Currently, rust ignores trailing semicolons in macro expansion in
expression position (see rust-lang/rust#33953)
If this is changed, flattening a block with a macro call may break the
user's code - the trailing semicolon will no longer parse if the macro
call occurs immediately on the right-hand side of the match arm
(e.g. `pat => macro_call!()`)
calebcartwright
commented
Nov 6, 2020
Comment on lines
+304
to
+305
| && is_simple_block(context, block, Some(&expr.attrs)) | ||
| && !stmt_is_expr_mac(&block.stmts[0]) => |
Member
Author
There was a problem hiding this comment.
Apparently we haven't backported support for comments in arm guards to v1.x which is why this was removed in 7c24c1e
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs rust-lang/rust#78341, needed due to subsequent breaking changes being merged upstream (more detail in rust-lang/rust#78775)