]> git.proxmox.com Git - rustc.git/blame - src/test/run-make-fulldeps/coverage-spanview/expected_mir_dump.async/async.executor-block_on.-------.InstrumentCoverage.0.html
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / run-make-fulldeps / coverage-spanview / expected_mir_dump.async / async.executor-block_on.-------.InstrumentCoverage.0.html
CommitLineData
fc512014
XL
1<!DOCTYPE html>
2<!--
3
4Preview this file as rendered HTML from the github source at:
5https://htmlpreview.github.io/?https://github.com/rust-lang/rust/blob/master/src/test/run-make-fulldeps/coverage-spanview/expected_mir_dump.async/async.executor-block_on.-------.InstrumentCoverage.0.html
6
7For revisions in Pull Requests (PR):
8 * Replace "rust-lang" with the github PR author
9 * Replace "master" with the PR branch name
10
11-->
12<html>
13<head>
14<title>async.executor-block_on - Coverage Spans</title>
15<style>
16 .line {
17 counter-increment: line;
18 }
19 .line:before {
20 content: counter(line) ": ";
21 font-family: Menlo, Monaco, monospace;
22 font-style: italic;
23 width: 3.8em;
24 display: inline-block;
25 text-align: right;
26 filter: opacity(50%);
27 -webkit-user-select: none;
28 }
29 .code {
30 color: #dddddd;
31 background-color: #222222;
32 font-family: Menlo, Monaco, monospace;
33 line-height: 1.4em;
34 border-bottom: 2px solid #222222;
35 white-space: pre;
36 display: inline-block;
37 }
38 .odd {
39 background-color: #55bbff;
40 color: #223311;
41 }
42 .even {
43 background-color: #ee7756;
44 color: #551133;
45 }
46 .code {
47 --index: calc(var(--layer) - 1);
48 padding-top: calc(var(--index) * 0.15em);
49 filter:
50 hue-rotate(calc(var(--index) * 25deg))
51 saturate(calc(100% - (var(--index) * 2%)))
52 brightness(calc(100% - (var(--index) * 1.5%)));
53 }
54 .annotation {
55 color: #4444ff;
56 font-family: monospace;
57 font-style: italic;
58 display: none;
59 -webkit-user-select: none;
60 }
61 body:active .annotation {
62 /* requires holding mouse down anywhere on the page */
63 display: inline-block;
64 }
65 span:hover .annotation {
66 /* requires hover over a span ONLY on its first line */
67 display: inline-block;
68 }
69</style>
70</head>
71<body>
72<div class="code" style="counter-reset: line 109"><span class="line"> <span><span class="code even" style="--layer: 1" title="111:54-111:65: @0[2]: _3 = &amp;mut _1
6a06907d 73111:35-111:66: @0.Call: _2 = std::pin::Pin::&lt;&amp;mut F&gt;::new_unchecked(move _3) -&gt; [return: bb1, unwind: bb20]
fc512014 74111:13-111:23: @1[1]: FakeRead(ForLet, _2)
6a06907d
XL
75119:60-119:77: @1.Call: _6 = std::ptr::null::&lt;()&gt;() -&gt; [return: bb2, unwind: bb20]
76119:80-119:86: @2[3]: _9 = const {alloc0: &amp;std::task::RawWakerVTable}
fc512014
XL
77119:79-119:86: @2[4]: _8 = &amp;(*_9)
78119:79-119:86: @2[5]: _7 = &amp;(*_8)
6a06907d
XL
79119:46-119:87: @2.Call: _5 = std::task::RawWaker::new(move _6, move _7) -&gt; [return: bb3, unwind: bb20]
80119:30-119:88: @3.Call: _4 = std::task::Waker::from_raw(move _5) -&gt; [return: bb4, unwind: bb20]
fc512014
XL
81119:13-119:18: @4[1]: FakeRead(ForLet, _4)
82120:47-120:53: @4[7]: _12 = &amp;_4
83120:47-120:53: @4[8]: _11 = &amp;(*_12)
6a06907d 84120:27-120:54: @4.Call: _10 = std::task::Context::from_waker(move _11) -&gt; [return: bb5, unwind: bb19]
fc512014
XL
85120:13-120:24: @5[1]: FakeRead(ForLet, _10)"><span class="annotation">@0,1,2,3,4,5⦊</span>pub fn block_on&lt;F: Future&gt;(mut future: F) -&gt; F::Output {</span></span>
86<span class="line"><span class="code even" style="--layer: 1" title="111:54-111:65: @0[2]: _3 = &amp;mut _1
6a06907d 87111:35-111:66: @0.Call: _2 = std::pin::Pin::&lt;&amp;mut F&gt;::new_unchecked(move _3) -&gt; [return: bb1, unwind: bb20]
fc512014 88111:13-111:23: @1[1]: FakeRead(ForLet, _2)
6a06907d
XL
89119:60-119:77: @1.Call: _6 = std::ptr::null::&lt;()&gt;() -&gt; [return: bb2, unwind: bb20]
90119:80-119:86: @2[3]: _9 = const {alloc0: &amp;std::task::RawWakerVTable}
fc512014
XL
91119:79-119:86: @2[4]: _8 = &amp;(*_9)
92119:79-119:86: @2[5]: _7 = &amp;(*_8)
6a06907d
XL
93119:46-119:87: @2.Call: _5 = std::task::RawWaker::new(move _6, move _7) -&gt; [return: bb3, unwind: bb20]
94119:30-119:88: @3.Call: _4 = std::task::Waker::from_raw(move _5) -&gt; [return: bb4, unwind: bb20]
fc512014
XL
95119:13-119:18: @4[1]: FakeRead(ForLet, _4)
96120:47-120:53: @4[7]: _12 = &amp;_4
97120:47-120:53: @4[8]: _11 = &amp;(*_12)
6a06907d 98120:27-120:54: @4.Call: _10 = std::task::Context::from_waker(move _11) -&gt; [return: bb5, unwind: bb19]
fc512014
XL
99120:13-120:24: @5[1]: FakeRead(ForLet, _10)"> let mut future = unsafe { Pin::new_unchecked(&amp;mut future) };</span></span>
100<span class="line"><span class="code even" style="--layer: 1" title="111:54-111:65: @0[2]: _3 = &amp;mut _1
6a06907d 101111:35-111:66: @0.Call: _2 = std::pin::Pin::&lt;&amp;mut F&gt;::new_unchecked(move _3) -&gt; [return: bb1, unwind: bb20]
fc512014 102111:13-111:23: @1[1]: FakeRead(ForLet, _2)
6a06907d
XL
103119:60-119:77: @1.Call: _6 = std::ptr::null::&lt;()&gt;() -&gt; [return: bb2, unwind: bb20]
104119:80-119:86: @2[3]: _9 = const {alloc0: &amp;std::task::RawWakerVTable}
fc512014
XL
105119:79-119:86: @2[4]: _8 = &amp;(*_9)
106119:79-119:86: @2[5]: _7 = &amp;(*_8)
6a06907d
XL
107119:46-119:87: @2.Call: _5 = std::task::RawWaker::new(move _6, move _7) -&gt; [return: bb3, unwind: bb20]
108119:30-119:88: @3.Call: _4 = std::task::Waker::from_raw(move _5) -&gt; [return: bb4, unwind: bb20]
fc512014
XL
109119:13-119:18: @4[1]: FakeRead(ForLet, _4)
110120:47-120:53: @4[7]: _12 = &amp;_4
111120:47-120:53: @4[8]: _11 = &amp;(*_12)
6a06907d 112120:27-120:54: @4.Call: _10 = std::task::Context::from_waker(move _11) -&gt; [return: bb5, unwind: bb19]
fc512014
XL
113120:13-120:24: @5[1]: FakeRead(ForLet, _10)"></span></span>
114<span class="line"><span class="code even" style="--layer: 1" title="111:54-111:65: @0[2]: _3 = &amp;mut _1
6a06907d 115111:35-111:66: @0.Call: _2 = std::pin::Pin::&lt;&amp;mut F&gt;::new_unchecked(move _3) -&gt; [return: bb1, unwind: bb20]
fc512014 116111:13-111:23: @1[1]: FakeRead(ForLet, _2)
6a06907d
XL
117119:60-119:77: @1.Call: _6 = std::ptr::null::&lt;()&gt;() -&gt; [return: bb2, unwind: bb20]
118119:80-119:86: @2[3]: _9 = const {alloc0: &amp;std::task::RawWakerVTable}
fc512014
XL
119119:79-119:86: @2[4]: _8 = &amp;(*_9)
120119:79-119:86: @2[5]: _7 = &amp;(*_8)
6a06907d
XL
121119:46-119:87: @2.Call: _5 = std::task::RawWaker::new(move _6, move _7) -&gt; [return: bb3, unwind: bb20]
122119:30-119:88: @3.Call: _4 = std::task::Waker::from_raw(move _5) -&gt; [return: bb4, unwind: bb20]
fc512014
XL
123119:13-119:18: @4[1]: FakeRead(ForLet, _4)
124120:47-120:53: @4[7]: _12 = &amp;_4
125120:47-120:53: @4[8]: _11 = &amp;(*_12)
6a06907d 126120:27-120:54: @4.Call: _10 = std::task::Context::from_waker(move _11) -&gt; [return: bb5, unwind: bb19]
fc512014
XL
127120:13-120:24: @5[1]: FakeRead(ForLet, _10)"> static VTABLE: RawWakerVTable = RawWakerVTable::new(</span></span>
128<span class="line"><span class="code even" style="--layer: 1" title="111:54-111:65: @0[2]: _3 = &amp;mut _1
6a06907d 129111:35-111:66: @0.Call: _2 = std::pin::Pin::&lt;&amp;mut F&gt;::new_unchecked(move _3) -&gt; [return: bb1, unwind: bb20]
fc512014 130111:13-111:23: @1[1]: FakeRead(ForLet, _2)
6a06907d
XL
131119:60-119:77: @1.Call: _6 = std::ptr::null::&lt;()&gt;() -&gt; [return: bb2, unwind: bb20]
132119:80-119:86: @2[3]: _9 = const {alloc0: &amp;std::task::RawWakerVTable}
fc512014
XL
133119:79-119:86: @2[4]: _8 = &amp;(*_9)
134119:79-119:86: @2[5]: _7 = &amp;(*_8)
6a06907d
XL
135119:46-119:87: @2.Call: _5 = std::task::RawWaker::new(move _6, move _7) -&gt; [return: bb3, unwind: bb20]
136119:30-119:88: @3.Call: _4 = std::task::Waker::from_raw(move _5) -&gt; [return: bb4, unwind: bb20]
fc512014
XL
137119:13-119:18: @4[1]: FakeRead(ForLet, _4)
138120:47-120:53: @4[7]: _12 = &amp;_4
139120:47-120:53: @4[8]: _11 = &amp;(*_12)
6a06907d 140120:27-120:54: @4.Call: _10 = std::task::Context::from_waker(move _11) -&gt; [return: bb5, unwind: bb19]
fc512014
XL
141120:13-120:24: @5[1]: FakeRead(ForLet, _10)"> |_| unimplemented!("clone"),</span></span>
142<span class="line"><span class="code even" style="--layer: 1" title="111:54-111:65: @0[2]: _3 = &amp;mut _1
6a06907d 143111:35-111:66: @0.Call: _2 = std::pin::Pin::&lt;&amp;mut F&gt;::new_unchecked(move _3) -&gt; [return: bb1, unwind: bb20]
fc512014 144111:13-111:23: @1[1]: FakeRead(ForLet, _2)
6a06907d
XL
145119:60-119:77: @1.Call: _6 = std::ptr::null::&lt;()&gt;() -&gt; [return: bb2, unwind: bb20]
146119:80-119:86: @2[3]: _9 = const {alloc0: &amp;std::task::RawWakerVTable}
fc512014
XL
147119:79-119:86: @2[4]: _8 = &amp;(*_9)
148119:79-119:86: @2[5]: _7 = &amp;(*_8)
6a06907d
XL
149119:46-119:87: @2.Call: _5 = std::task::RawWaker::new(move _6, move _7) -&gt; [return: bb3, unwind: bb20]
150119:30-119:88: @3.Call: _4 = std::task::Waker::from_raw(move _5) -&gt; [return: bb4, unwind: bb20]
fc512014
XL
151119:13-119:18: @4[1]: FakeRead(ForLet, _4)
152120:47-120:53: @4[7]: _12 = &amp;_4
153120:47-120:53: @4[8]: _11 = &amp;(*_12)
6a06907d 154120:27-120:54: @4.Call: _10 = std::task::Context::from_waker(move _11) -&gt; [return: bb5, unwind: bb19]
fc512014
XL
155120:13-120:24: @5[1]: FakeRead(ForLet, _10)"> |_| unimplemented!("wake"),</span></span>
156<span class="line"><span class="code even" style="--layer: 1" title="111:54-111:65: @0[2]: _3 = &amp;mut _1
6a06907d 157111:35-111:66: @0.Call: _2 = std::pin::Pin::&lt;&amp;mut F&gt;::new_unchecked(move _3) -&gt; [return: bb1, unwind: bb20]
fc512014 158111:13-111:23: @1[1]: FakeRead(ForLet, _2)
6a06907d
XL
159119:60-119:77: @1.Call: _6 = std::ptr::null::&lt;()&gt;() -&gt; [return: bb2, unwind: bb20]
160119:80-119:86: @2[3]: _9 = const {alloc0: &amp;std::task::RawWakerVTable}
fc512014
XL
161119:79-119:86: @2[4]: _8 = &amp;(*_9)
162119:79-119:86: @2[5]: _7 = &amp;(*_8)
6a06907d
XL
163119:46-119:87: @2.Call: _5 = std::task::RawWaker::new(move _6, move _7) -&gt; [return: bb3, unwind: bb20]
164119:30-119:88: @3.Call: _4 = std::task::Waker::from_raw(move _5) -&gt; [return: bb4, unwind: bb20]
fc512014
XL
165119:13-119:18: @4[1]: FakeRead(ForLet, _4)
166120:47-120:53: @4[7]: _12 = &amp;_4
167120:47-120:53: @4[8]: _11 = &amp;(*_12)
6a06907d 168120:27-120:54: @4.Call: _10 = std::task::Context::from_waker(move _11) -&gt; [return: bb5, unwind: bb19]
fc512014
XL
169120:13-120:24: @5[1]: FakeRead(ForLet, _10)"> |_| unimplemented!("wake_by_ref"),</span></span>
170<span class="line"><span class="code even" style="--layer: 1" title="111:54-111:65: @0[2]: _3 = &amp;mut _1
6a06907d 171111:35-111:66: @0.Call: _2 = std::pin::Pin::&lt;&amp;mut F&gt;::new_unchecked(move _3) -&gt; [return: bb1, unwind: bb20]
fc512014 172111:13-111:23: @1[1]: FakeRead(ForLet, _2)
6a06907d
XL
173119:60-119:77: @1.Call: _6 = std::ptr::null::&lt;()&gt;() -&gt; [return: bb2, unwind: bb20]
174119:80-119:86: @2[3]: _9 = const {alloc0: &amp;std::task::RawWakerVTable}
fc512014
XL
175119:79-119:86: @2[4]: _8 = &amp;(*_9)
176119:79-119:86: @2[5]: _7 = &amp;(*_8)
6a06907d
XL
177119:46-119:87: @2.Call: _5 = std::task::RawWaker::new(move _6, move _7) -&gt; [return: bb3, unwind: bb20]
178119:30-119:88: @3.Call: _4 = std::task::Waker::from_raw(move _5) -&gt; [return: bb4, unwind: bb20]
fc512014
XL
179119:13-119:18: @4[1]: FakeRead(ForLet, _4)
180120:47-120:53: @4[7]: _12 = &amp;_4
181120:47-120:53: @4[8]: _11 = &amp;(*_12)
6a06907d 182120:27-120:54: @4.Call: _10 = std::task::Context::from_waker(move _11) -&gt; [return: bb5, unwind: bb19]
fc512014
XL
183120:13-120:24: @5[1]: FakeRead(ForLet, _10)"> |_| (),</span></span>
184<span class="line"><span class="code even" style="--layer: 1" title="111:54-111:65: @0[2]: _3 = &amp;mut _1
6a06907d 185111:35-111:66: @0.Call: _2 = std::pin::Pin::&lt;&amp;mut F&gt;::new_unchecked(move _3) -&gt; [return: bb1, unwind: bb20]
fc512014 186111:13-111:23: @1[1]: FakeRead(ForLet, _2)
6a06907d
XL
187119:60-119:77: @1.Call: _6 = std::ptr::null::&lt;()&gt;() -&gt; [return: bb2, unwind: bb20]
188119:80-119:86: @2[3]: _9 = const {alloc0: &amp;std::task::RawWakerVTable}
fc512014
XL
189119:79-119:86: @2[4]: _8 = &amp;(*_9)
190119:79-119:86: @2[5]: _7 = &amp;(*_8)
6a06907d
XL
191119:46-119:87: @2.Call: _5 = std::task::RawWaker::new(move _6, move _7) -&gt; [return: bb3, unwind: bb20]
192119:30-119:88: @3.Call: _4 = std::task::Waker::from_raw(move _5) -&gt; [return: bb4, unwind: bb20]
fc512014
XL
193119:13-119:18: @4[1]: FakeRead(ForLet, _4)
194120:47-120:53: @4[7]: _12 = &amp;_4
195120:47-120:53: @4[8]: _11 = &amp;(*_12)
6a06907d 196120:27-120:54: @4.Call: _10 = std::task::Context::from_waker(move _11) -&gt; [return: bb5, unwind: bb19]
fc512014
XL
197120:13-120:24: @5[1]: FakeRead(ForLet, _10)"> );</span></span>
198<span class="line"><span class="code even" style="--layer: 1" title="111:54-111:65: @0[2]: _3 = &amp;mut _1
6a06907d 199111:35-111:66: @0.Call: _2 = std::pin::Pin::&lt;&amp;mut F&gt;::new_unchecked(move _3) -&gt; [return: bb1, unwind: bb20]
fc512014 200111:13-111:23: @1[1]: FakeRead(ForLet, _2)
6a06907d
XL
201119:60-119:77: @1.Call: _6 = std::ptr::null::&lt;()&gt;() -&gt; [return: bb2, unwind: bb20]
202119:80-119:86: @2[3]: _9 = const {alloc0: &amp;std::task::RawWakerVTable}
fc512014
XL
203119:79-119:86: @2[4]: _8 = &amp;(*_9)
204119:79-119:86: @2[5]: _7 = &amp;(*_8)
6a06907d
XL
205119:46-119:87: @2.Call: _5 = std::task::RawWaker::new(move _6, move _7) -&gt; [return: bb3, unwind: bb20]
206119:30-119:88: @3.Call: _4 = std::task::Waker::from_raw(move _5) -&gt; [return: bb4, unwind: bb20]
fc512014
XL
207119:13-119:18: @4[1]: FakeRead(ForLet, _4)
208120:47-120:53: @4[7]: _12 = &amp;_4
209120:47-120:53: @4[8]: _11 = &amp;(*_12)
6a06907d 210120:27-120:54: @4.Call: _10 = std::task::Context::from_waker(move _11) -&gt; [return: bb5, unwind: bb19]
fc512014
XL
211120:13-120:24: @5[1]: FakeRead(ForLet, _10)"> let waker = unsafe { Waker::from_raw(RawWaker::new(core::ptr::null(), &amp;VTABLE)) };</span></span>
212<span class="line"><span class="code even" style="--layer: 1" title="111:54-111:65: @0[2]: _3 = &amp;mut _1
6a06907d 213111:35-111:66: @0.Call: _2 = std::pin::Pin::&lt;&amp;mut F&gt;::new_unchecked(move _3) -&gt; [return: bb1, unwind: bb20]
fc512014 214111:13-111:23: @1[1]: FakeRead(ForLet, _2)
6a06907d
XL
215119:60-119:77: @1.Call: _6 = std::ptr::null::&lt;()&gt;() -&gt; [return: bb2, unwind: bb20]
216119:80-119:86: @2[3]: _9 = const {alloc0: &amp;std::task::RawWakerVTable}
fc512014
XL
217119:79-119:86: @2[4]: _8 = &amp;(*_9)
218119:79-119:86: @2[5]: _7 = &amp;(*_8)
6a06907d
XL
219119:46-119:87: @2.Call: _5 = std::task::RawWaker::new(move _6, move _7) -&gt; [return: bb3, unwind: bb20]
220119:30-119:88: @3.Call: _4 = std::task::Waker::from_raw(move _5) -&gt; [return: bb4, unwind: bb20]
fc512014
XL
221119:13-119:18: @4[1]: FakeRead(ForLet, _4)
222120:47-120:53: @4[7]: _12 = &amp;_4
223120:47-120:53: @4[8]: _11 = &amp;(*_12)
6a06907d 224120:27-120:54: @4.Call: _10 = std::task::Context::from_waker(move _11) -&gt; [return: bb5, unwind: bb19]
fc512014
XL
225120:13-120:24: @5[1]: FakeRead(ForLet, _10)"> let mut context = Context::from_waker(&amp;waker)<span class="annotation">⦉@0,1,2,3,4,5</span></span></span><span class="code" style="--layer: 0">;</span></span>
226<span class="line"><span class="code" style="--layer: 0"></span></span>
227<span class="line"><span class="code" style="--layer: 0"> loop {</span></span>
228<span class="line"><span class="code" style="--layer: 0"> if let Poll::Ready(</span><span><span class="code odd" style="--layer: 1" title="123:32-123:35: @12[1]: _20 = move ((_14 as Ready).0: &lt;F as std::future::Future&gt;::Output)"><span class="annotation">@10,12,14,15,16,17⦊</span>val<span class="annotation">⦉@10,12,14,15,16,17</span></span></span><span class="code" style="--layer: 0">) = </span><span><span class="code even" style="--layer: 1" title="123:39-123:45: @7[3]: _16 = &amp;mut _2
6a06907d 229123:39-123:54: @7.Call: _15 = std::pin::Pin::&lt;&amp;mut F&gt;::as_mut(move _16) -&gt; [return: bb8, unwind: bb19]
fc512014
XL
230123:60-123:72: @8[3]: _18 = &amp;mut _10
231123:60-123:72: @8[4]: _17 = &amp;mut (*_18)
6a06907d 232123:39-123:73: @8.Call: _14 = &lt;F as std::future::Future&gt;::poll(move _15, move _17) -&gt; [return: bb9, unwind: bb19]
fc512014
XL
233123:39-123:73: @9[2]: FakeRead(ForMatchedPlace, _14)"><span class="annotation">@6,7,8,9⦊</span>future.as_mut().poll(&amp;mut context)<span class="annotation">⦉@6,7,8,9</span></span></span><span class="code" style="--layer: 0"> {</span></span>
234<span class="line"><span class="code" style="--layer: 0"> break </span><span><span class="code odd" style="--layer: 1" title="124:23-124:26: @12[2]: _0 = move _20"><span class="annotation">@10,12,14,15,16,17⦊</span>val<span class="annotation">⦉@10,12,14,15,16,17</span></span></span><span class="code" style="--layer: 0">;</span></span>
235<span class="line"><span class="code" style="--layer: 0"> }</span><span><span class="code even" style="--layer: 1" title="125:14-125:14: @11[0]: _13 = const ()"><span class="annotation">@11,13⦊</span>‸<span class="annotation">⦉@11,13</span></span></span><span class="code" style="--layer: 0"></span></span>
236<span class="line"><span class="code" style="--layer: 0"> }</span></span>
237<span class="line"><span class="code" style="--layer: 0"> }</span><span><span class="code odd" style="--layer: 1" title="127:6-127:6: @17.Return: return"><span class="annotation">@10,12,14,15,16,17⦊</span>‸<span class="annotation">⦉@10,12,14,15,16,17</span></span></span></span></div>
238</body>
239</html>