FIXME(45827) remove comment since errors are reported
This commit is contained in:
parent
d99a320cba
commit
3773ae26a0
@ -12,9 +12,6 @@
|
||||
// approximate the shorter end-point (`'y`) to with `'static`. This is
|
||||
// because `'y` is higher-ranked but we know of no relations to other
|
||||
// regions. Note that `'static` shows up in the stderr output as `'0`.
|
||||
//
|
||||
// FIXME(#45827) Because of shortcomings in the MIR type checker,
|
||||
// these errors are not (yet) reported.
|
||||
|
||||
// compile-flags:-Zborrowck=mir -Zverbose
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
note: External requirements
|
||||
--> $DIR/propagate-approximated-shorter-to-static-no-bound.rs:45:47
|
||||
--> $DIR/propagate-approximated-shorter-to-static-no-bound.rs:42:47
|
||||
|
|
||||
LL | establish_relationships(&cell_a, &cell_b, |_outlives, x, y| {
|
||||
| _______________________________________________^
|
||||
@ -20,7 +20,7 @@ LL | | });
|
||||
= note: where '_#1r: '_#0r
|
||||
|
||||
note: No external requirements
|
||||
--> $DIR/propagate-approximated-shorter-to-static-no-bound.rs:44:1
|
||||
--> $DIR/propagate-approximated-shorter-to-static-no-bound.rs:41:1
|
||||
|
|
||||
LL | / fn supply<'a, 'b>(cell_a: Cell<&'a u32>, cell_b: Cell<&'b u32>) {
|
||||
LL | | establish_relationships(&cell_a, &cell_b, |_outlives, x, y| {
|
||||
@ -34,7 +34,7 @@ LL | | }
|
||||
= note: defining type: DefId(0/0:6 ~ propagate_approximated_shorter_to_static_no_bound[317d]::supply[0]) with substs []
|
||||
|
||||
error[E0521]: borrowed data escapes outside of function
|
||||
--> $DIR/propagate-approximated-shorter-to-static-no-bound.rs:45:5
|
||||
--> $DIR/propagate-approximated-shorter-to-static-no-bound.rs:42:5
|
||||
|
|
||||
LL | fn supply<'a, 'b>(cell_a: Cell<&'a u32>, cell_b: Cell<&'b u32>) {
|
||||
| ------ `cell_a` is a reference that is only valid in the function body
|
||||
|
@ -13,9 +13,6 @@
|
||||
// because `'y` is higher-ranked but we know of only irrelevant
|
||||
// relations to other regions. Note that `'static` shows up in the
|
||||
// stderr output as `'0`.
|
||||
//
|
||||
// FIXME(#45827) Because of shortcomings in the MIR type checker,
|
||||
// these errors are not (yet) reported.
|
||||
|
||||
// compile-flags:-Zborrowck=mir -Zverbose
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
note: External requirements
|
||||
--> $DIR/propagate-approximated-shorter-to-static-wrong-bound.rs:48:47
|
||||
--> $DIR/propagate-approximated-shorter-to-static-wrong-bound.rs:45:47
|
||||
|
|
||||
LL | establish_relationships(&cell_a, &cell_b, |_outlives1, _outlives2, x, y| {
|
||||
| _______________________________________________^
|
||||
@ -20,7 +20,7 @@ LL | | });
|
||||
= note: where '_#1r: '_#0r
|
||||
|
||||
note: No external requirements
|
||||
--> $DIR/propagate-approximated-shorter-to-static-wrong-bound.rs:47:1
|
||||
--> $DIR/propagate-approximated-shorter-to-static-wrong-bound.rs:44:1
|
||||
|
|
||||
LL | / fn supply<'a, 'b>(cell_a: Cell<&'a u32>, cell_b: Cell<&'b u32>) {
|
||||
LL | | establish_relationships(&cell_a, &cell_b, |_outlives1, _outlives2, x, y| {
|
||||
@ -34,7 +34,7 @@ LL | | }
|
||||
= note: defining type: DefId(0/0:6 ~ propagate_approximated_shorter_to_static_wrong_bound[317d]::supply[0]) with substs []
|
||||
|
||||
error[E0521]: borrowed data escapes outside of function
|
||||
--> $DIR/propagate-approximated-shorter-to-static-wrong-bound.rs:48:5
|
||||
--> $DIR/propagate-approximated-shorter-to-static-wrong-bound.rs:45:5
|
||||
|
|
||||
LL | fn supply<'a, 'b>(cell_a: Cell<&'a u32>, cell_b: Cell<&'b u32>) {
|
||||
| ------ `cell_a` is a reference that is only valid in the function body
|
||||
|
Loading…
Reference in New Issue
Block a user