Rollup merge of #37577 - nnethercote:shrink-Expr-slightly, r=eddyb
Shrink `hir::Expr` slightly r? @eddyb
This commit is contained in:
commit
07cf4b418f
3 changed files with 5 additions and 5 deletions
|
|
@ -314,7 +314,7 @@ pub fn const_expr_to_pat<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
|
|||
},
|
||||
}))
|
||||
.collect::<Result<_, _>>()?;
|
||||
PatKind::Struct(path.clone(), field_pats, false)
|
||||
PatKind::Struct((**path).clone(), field_pats, false)
|
||||
}
|
||||
|
||||
hir::ExprArray(ref exprs) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue