mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-23 04:14:28 +00:00
Merge pull request #3069 from topecongiro/issue-3003
Consider a multi-lined array as a block-like expression
This commit is contained in:
commit
80d744973f
@ -844,6 +844,7 @@ fn is_block_expr(context: &RewriteContext, expr: &ast::Expr, repr: &str) -> bool
|
||||
ast::ExprKind::Mac(..)
|
||||
| ast::ExprKind::Call(..)
|
||||
| ast::ExprKind::MethodCall(..)
|
||||
| ast::ExprKind::Array(..)
|
||||
| ast::ExprKind::Struct(..)
|
||||
| ast::ExprKind::While(..)
|
||||
| ast::ExprKind::WhileLet(..)
|
||||
|
@ -450,3 +450,15 @@ fn issue_2802() {
|
||||
a: some_much_much_longer_value,
|
||||
}) * some_value
|
||||
}
|
||||
|
||||
fn issue_3003() {
|
||||
let mut path: PathBuf = [
|
||||
env!("CARGO_MANIFEST_DIR"),
|
||||
"tests",
|
||||
"support",
|
||||
"dejavu-fonts-ttf-2.37",
|
||||
"ttf",
|
||||
]
|
||||
.iter()
|
||||
.collect();
|
||||
}
|
||||
|
@ -529,3 +529,15 @@ fn issue_2802() {
|
||||
})
|
||||
* some_value
|
||||
}
|
||||
|
||||
fn issue_3003() {
|
||||
let mut path: PathBuf = [
|
||||
env!("CARGO_MANIFEST_DIR"),
|
||||
"tests",
|
||||
"support",
|
||||
"dejavu-fonts-ttf-2.37",
|
||||
"ttf",
|
||||
]
|
||||
.iter()
|
||||
.collect();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user