Skip to content

Commit 3773ae2

Browse files
committed
FIXME(45827) remove comment since errors are reported
1 parent d99a320 commit 3773ae2

4 files changed

+6
-12
lines changed

src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-no-bound.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
// approximate the shorter end-point (`'y`) to with `'static`. This is
1313
// because `'y` is higher-ranked but we know of no relations to other
1414
// regions. Note that `'static` shows up in the stderr output as `'0`.
15-
//
16-
// FIXME(#45827) Because of shortcomings in the MIR type checker,
17-
// these errors are not (yet) reported.
1815

1916
// compile-flags:-Zborrowck=mir -Zverbose
2017

src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-no-bound.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
note: External requirements
2-
--> $DIR/propagate-approximated-shorter-to-static-no-bound.rs:45:47
2+
--> $DIR/propagate-approximated-shorter-to-static-no-bound.rs:42:47
33
|
44
LL | establish_relationships(&cell_a, &cell_b, |_outlives, x, y| {
55
| _______________________________________________^
@@ -20,7 +20,7 @@ LL | | });
2020
= note: where '_#1r: '_#0r
2121

2222
note: No external requirements
23-
--> $DIR/propagate-approximated-shorter-to-static-no-bound.rs:44:1
23+
--> $DIR/propagate-approximated-shorter-to-static-no-bound.rs:41:1
2424
|
2525
LL | / fn supply<'a, 'b>(cell_a: Cell<&'a u32>, cell_b: Cell<&'b u32>) {
2626
LL | | establish_relationships(&cell_a, &cell_b, |_outlives, x, y| {
@@ -34,7 +34,7 @@ LL | | }
3434
= note: defining type: DefId(0/0:6 ~ propagate_approximated_shorter_to_static_no_bound[317d]::supply[0]) with substs []
3535

3636
error[E0521]: borrowed data escapes outside of function
37-
--> $DIR/propagate-approximated-shorter-to-static-no-bound.rs:45:5
37+
--> $DIR/propagate-approximated-shorter-to-static-no-bound.rs:42:5
3838
|
3939
LL | fn supply<'a, 'b>(cell_a: Cell<&'a u32>, cell_b: Cell<&'b u32>) {
4040
| ------ `cell_a` is a reference that is only valid in the function body

src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-wrong-bound.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
// because `'y` is higher-ranked but we know of only irrelevant
1414
// relations to other regions. Note that `'static` shows up in the
1515
// stderr output as `'0`.
16-
//
17-
// FIXME(#45827) Because of shortcomings in the MIR type checker,
18-
// these errors are not (yet) reported.
1916

2017
// compile-flags:-Zborrowck=mir -Zverbose
2118

src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-wrong-bound.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
note: External requirements
2-
--> $DIR/propagate-approximated-shorter-to-static-wrong-bound.rs:48:47
2+
--> $DIR/propagate-approximated-shorter-to-static-wrong-bound.rs:45:47
33
|
44
LL | establish_relationships(&cell_a, &cell_b, |_outlives1, _outlives2, x, y| {
55
| _______________________________________________^
@@ -20,7 +20,7 @@ LL | | });
2020
= note: where '_#1r: '_#0r
2121

2222
note: No external requirements
23-
--> $DIR/propagate-approximated-shorter-to-static-wrong-bound.rs:47:1
23+
--> $DIR/propagate-approximated-shorter-to-static-wrong-bound.rs:44:1
2424
|
2525
LL | / fn supply<'a, 'b>(cell_a: Cell<&'a u32>, cell_b: Cell<&'b u32>) {
2626
LL | | establish_relationships(&cell_a, &cell_b, |_outlives1, _outlives2, x, y| {
@@ -34,7 +34,7 @@ LL | | }
3434
= note: defining type: DefId(0/0:6 ~ propagate_approximated_shorter_to_static_wrong_bound[317d]::supply[0]) with substs []
3535

3636
error[E0521]: borrowed data escapes outside of function
37-
--> $DIR/propagate-approximated-shorter-to-static-wrong-bound.rs:48:5
37+
--> $DIR/propagate-approximated-shorter-to-static-wrong-bound.rs:45:5
3838
|
3939
LL | fn supply<'a, 'b>(cell_a: Cell<&'a u32>, cell_b: Cell<&'b u32>) {
4040
| ------ `cell_a` is a reference that is only valid in the function body

0 commit comments

Comments
 (0)