fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
1.7 KiB45 linesraw
1note: no external requirements
2  --> $DIR/propagate-approximated-fail-no-postdom.rs:43:9
3   |
4LL | /         |_outlives1, _outlives2, _outlives3, x, y| {
5LL | |             // Only works if 'x: 'y:
6LL | |             let p = x.get();
7LL | |             demand_y(x, y, p)
8LL | |         },
9   | |_________^
10   |
11   = note: defining type: supply::{{closure}}#0 with closure substs [
12               i16,
13               for<'r, 's> extern "rust-call" fn((std::cell::Cell<&'_#1r &ReLateBound(DebruijnIndex(0), BrNamed('r)) u32>, std::cell::Cell<&'_#2r &ReLateBound(DebruijnIndex(0), BrNamed('r)) u32>, std::cell::Cell<&ReLateBound(DebruijnIndex(0), BrNamed('s)) &'_#3r u32>, std::cell::Cell<&ReLateBound(DebruijnIndex(0), BrNamed('r)) u32>, std::cell::Cell<&ReLateBound(DebruijnIndex(0), BrNamed('s)) u32>)),
14           ]
15   = note: late-bound region is '_#4r
16   = note: late-bound region is '_#5r
17   = note: late-bound region is '_#6r
18
19error: lifetime may not live long enough
20  --> $DIR/propagate-approximated-fail-no-postdom.rs:46:13
21   |
22LL |         |_outlives1, _outlives2, _outlives3, x, y| {
23   |          ----------              ---------- has type `std::cell::Cell<&'2 &'_#3r u32>`
24   |          |
25   |          has type `std::cell::Cell<&'_#1r &'1 u32>`
26...
27LL |             demand_y(x, y, p)
28   |             ^^^^^^^^^^^^^^^^^ argument requires that `'1` must outlive `'2`
29
30note: no external requirements
31  --> $DIR/propagate-approximated-fail-no-postdom.rs:38:1
32   |
33LL | / fn supply<'a, 'b, 'c>(cell_a: Cell<&'a u32>, cell_b: Cell<&'b u32>, cell_c: Cell<&'c u32>) {
34LL | |     establish_relationships(
35LL | |         cell_a,
36LL | |         cell_b,
37...  |
38LL | |     );
39LL | | }
40   | |_^
41   |
42   = note: defining type: supply
43
44error: aborting due to previous error
45