Skip to content

Commit 8da717d

Browse files
committed
Update mir-opt/end_region_*.rs tests to explicit enable EndRegion emission.
1 parent f1c721c commit 8da717d

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

src/test/mir-opt/end_region_1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// compile-flags: -Z identify_regions
11+
// compile-flags: -Z identify_regions -Z emit-end-regions
1212
// ignore-tidy-linelength
1313

1414
// This is just about the simplest program that exhibits an EndRegion.

src/test/mir-opt/end_region_2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// compile-flags: -Z identify_regions
11+
// compile-flags: -Z identify_regions -Z emit-end-regions
1212
// ignore-tidy-linelength
1313

1414
// We will EndRegion for borrows in a loop that occur before break but

src/test/mir-opt/end_region_3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// compile-flags: -Z identify_regions
11+
// compile-flags: -Z identify_regions -Z emit-end-regions
1212
// ignore-tidy-linelength
1313

1414
// Binding the borrow's subject outside the loop does not increase the

src/test/mir-opt/end_region_4.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// compile-flags: -Z identify_regions
11+
// compile-flags: -Z identify_regions -Z emit-end-regions
1212
// ignore-tidy-linelength
1313

1414
// Unwinding should EndRegion for in-scope borrows: Direct borrows.

src/test/mir-opt/end_region_5.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// compile-flags: -Z identify_regions -Z span_free_formats
11+
// compile-flags: -Z identify_regions -Z span_free_formats -Z emit-end-regions
1212
// ignore-tidy-linelength
1313

1414
// Unwinding should EndRegion for in-scope borrows: Borrowing via by-ref closure.

src/test/mir-opt/end_region_6.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// compile-flags: -Z identify_regions -Z span_free_formats
11+
// compile-flags: -Z identify_regions -Z span_free_formats -Z emit-end-regions
1212
// ignore-tidy-linelength
1313

1414
// Unwinding should EndRegion for in-scope borrows: 2nd borrow within by-ref closure.

src/test/mir-opt/end_region_7.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// compile-flags: -Z identify_regions -Z span_free_formats
11+
// compile-flags: -Z identify_regions -Z span_free_formats -Z emit-end-regions
1212
// ignore-tidy-linelength
1313

1414
// Unwinding should EndRegion for in-scope borrows: Borrow of moved data.

src/test/mir-opt/end_region_8.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// compile-flags: -Z identify_regions -Z span_free_formats
11+
// compile-flags: -Z identify_regions -Z span_free_formats -Z emit-end-regions
1212
// ignore-tidy-linelength
1313

1414
// Unwinding should EndRegion for in-scope borrows: Move of borrow into closure.

src/test/mir-opt/end_region_9.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// compile-flags: -Z identify_regions -Z span_free_formats
11+
// compile-flags: -Z identify_regions -Z span_free_formats -Z emit-end-regions
1212
// ignore-tidy-linelength
1313

1414
// This test models a scenario that arielb1 found during review.

0 commit comments

Comments
 (0)