diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2016-10-28 21:16:44 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2016-11-22 08:18:31 +1100 |
| commit | 382d3b043e7eef39f5948bb07dc8df9159dd597c (patch) | |
| tree | c7905322ff9c72555f02507b52a19cf06dca6359 /src/librustc_const_eval | |
| parent | 80a95e34fe32ca86982607a85e9c5714eb6262d9 (diff) | |
Change HirVec<P<T>> to HirVec<T> in Expr.
This changes structures like this:
```
[ ExprArray | 8 | P ]
|
v
[ P | P | P | P | P | P | P | P ]
|
v
[ ExprTup | 2 | P ]
|
v
[ P | P ]
|
v
[ Expr ]
```
to this:
```
[ ExprArray | 8 | P ]
|
v
[ [ ExprTup | 2 | P ] | ... ]
|
v
[ Expr | Expr ]
```
Diffstat (limited to 'src/librustc_const_eval')
| -rw-r--r-- | src/librustc_const_eval/eval.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_const_eval/eval.rs b/src/librustc_const_eval/eval.rs index c265fa97e29..b594fe9853a 100644 --- a/src/librustc_const_eval/eval.rs +++ b/src/librustc_const_eval/eval.rs @@ -297,7 +297,7 @@ pub fn const_expr_to_pat<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, _ => bug!() }; let pats = args.iter() - .map(|expr| const_expr_to_pat(tcx, &**expr, pat_id, span)) + .map(|expr| const_expr_to_pat(tcx, &*expr, pat_id, span)) .collect::<Result<_, _>>()?; PatKind::TupleStruct(path, pats, None) } |
