Tomasz Miąsko
f1f1c8fa50
./x.py test --bless
2021-09-18 00:00:00 +00:00
Matthew Jasper
ff8c0ef0e4
Fix drop handling for if let expressions
...
MIR lowering for `if let` expressions is now more complicated now that
`if let` exists in HIR. This PR adds a scope for the variables bound in
an `if let` expression and then uses an approach similar to how we
handle loops to ensure that we reliably drop the correct variables.
2021-09-01 23:47:41 +01:00
Caio
6aa9937a76
Introduce hir::ExprKind::Let - Take 2
2021-08-15 16:18:26 -03:00
Tomasz Miąsko
fab319be73
Print dummy spans as no-location
2021-06-09 00:33:46 +02:00
Erik Desjardins
90562b401e
bless tests
2021-03-15 21:58:54 -04:00
Simon Vandel Sillesen
4e901be57d
Extend SimplifyLocals to remove ZST writes
2021-03-13 17:58:11 -05:00
Caio
f85fc264fe
Reintroduce hir::ExprKind::If
2021-01-07 18:54:12 -03:00
Aaron Hill
33337bb855
Bless mir-opt tests
2020-10-04 07:54:02 -04:00
Lzu Tao
c4c017a184
Suppress "const" prefix of FnDef in MIR dump
2020-08-21 00:36:49 +00:00
Lzu Tao
86cf46172f
Suppress MIR comments of Unit type
2020-08-20 09:32:35 +00:00
Lzu Tao
633a2e31ef
Suppress MIR comments for FnDef in ty::Const
2020-08-20 09:27:33 +00:00
Xavier Denis
f07607f47a
Move mir-opt tests to toplevel
2020-07-29 17:36:03 +02:00