Leverage mir-opt to encode tests for `EndRegion`.
The tests use `-Z identify_regions` so one can eyeball output for sanity. The tests with closures use `-Z span_free_formats` so that host-specific paths do not get embedded into the dumped MIR. The tests check against MIR dump output immediately prior to borrowck (determined by hand to be the dump from after the "qualify-consts" pass) since that is when `EndRegion` will be most relevant in the near term.
Showing
src/test/mir-opt/end_region_1.rs
0 → 100644
src/test/mir-opt/end_region_2.rs
0 → 100644
src/test/mir-opt/end_region_3.rs
0 → 100644
src/test/mir-opt/end_region_4.rs
0 → 100644
src/test/mir-opt/end_region_5.rs
0 → 100644
src/test/mir-opt/end_region_6.rs
0 → 100644
src/test/mir-opt/end_region_7.rs
0 → 100644
src/test/mir-opt/end_region_8.rs
0 → 100644
src/test/mir-opt/end_region_9.rs
0 → 100644
想要评论请 注册 或 登录