4 Preview this file as rendered HTML from the github source at:
5 https://htmlpreview.github.io/?https://github.com/rust-lang/rust/blob/master/src/test/run-make-fulldeps/coverage-spanview/expected_mir_dump.closure/closure.main-%7Bclosure%230%7D.-------.InstrumentCoverage.0.html
7 For revisions in Pull Requests (PR):
8 * Replace "rust-lang" with the github PR author
9 * Replace "master" with the PR branch name
14 <title>closure.main-{closure#
0} - Coverage Spans
</title>
17 counter-increment: line;
20 content: counter(line)
": ";
21 font-family: Menlo, Monaco, monospace;
24 display: inline-block;
27 -webkit-user-select: none;
31 background-color: #
222222;
32 font-family: Menlo, Monaco, monospace;
34 border-bottom:
2px solid #
222222;
36 display: inline-block;
39 background-color: #
55bbff;
43 background-color: #ee7756;
47 --index: calc(var(--layer) -
1);
48 padding-top: calc(var(--index) *
0.15em);
50 hue-rotate(calc(var(--index) *
25deg))
51 saturate(calc(
100% - (var(--index) *
2%)))
52 brightness(calc(
100% - (var(--index) *
1.5%)));
56 font-family: monospace;
59 -webkit-user-select: none;
61 body:active .annotation {
62 /* requires holding mouse down anywhere on the page */
63 display: inline-block;
65 span:hover .annotation {
66 /* requires hover over a span ONLY on its first line */
67 display: inline-block;
72 <div class=
"code" style=
"counter-reset: line 32"><span class=
"line"> <span class=
"code" style=
"--layer: 0">||
</span></span>
73 <span class=
"line"><span class=
"code" style=
"--layer: 0"> </span><span><span class=
"code even" style=
"--layer: 1" title=
"35:29-35:30: @0[1]: _2 = const 0_i32
74 35:13-35:26: @0[2]: FakeRead(ForLet, _2)
75 36:12-36:20: @0[5]: _4 = (*((*_1).0: &bool))
76 36:12-36:20: @0[6]: FakeRead(ForMatchedPlace, _4)"><span class=
"annotation">@
0⦊
</span>{
</span></span>
77 <span class=
"line"><span class=
"code even" style=
"--layer: 1" title=
"35:29-35:30: @0[1]: _2 = const 0_i32
78 35:13-35:26: @0[2]: FakeRead(ForLet, _2)
79 36:12-36:20: @0[5]: _4 = (*((*_1).0: &bool))
80 36:12-36:20: @0[6]: FakeRead(ForMatchedPlace, _4)"> let mut countdown =
0;
</span></span>
81 <span class=
"line"><span class=
"code even" style=
"--layer: 1" title=
"35:29-35:30: @0[1]: _2 = const 0_i32
82 35:13-35:26: @0[2]: FakeRead(ForLet, _2)
83 36:12-36:20: @0[5]: _4 = (*((*_1).0: &bool))
84 36:12-36:20: @0[6]: FakeRead(ForMatchedPlace, _4)"> if is_false
<span class=
"annotation">⦉@
0</span></span></span><span class=
"code" style=
"--layer: 0"> </span><span><span class=
"code odd" style=
"--layer: 1" title=
"37:13-37:27: @3[0]: _2 = const 10_i32
85 36:21-38:10: @3[1]: _3 = const ()"><span class=
"annotation">@
1,
3⦊
</span>{
</span></span>
86 <span class=
"line"><span class=
"code odd" style=
"--layer: 1" title=
"37:13-37:27: @3[0]: _2 = const 10_i32
87 36:21-38:10: @3[1]: _3 = const ()"> countdown =
10;
</span></span>
88 <span class=
"line"><span class=
"code odd" style=
"--layer: 1" title=
"37:13-37:27: @3[0]: _2 = const 10_i32
89 36:21-38:10: @3[1]: _3 = const ()"> }
<span class=
"annotation">⦉@
1,
3</span></span></span><span><span class=
"code even" style=
"--layer: 1" title=
"38:10-38:10: @2[0]: _3 = const ()"><span class=
"annotation">@
2⦊
</span>‸
<span class=
"annotation">⦉@
2</span></span></span><span class=
"code" style=
"--layer: 0"></span></span>
90 <span class=
"line"><span class=
"code" style=
"--layer: 0"> </span><span><span class=
"code odd" style=
"--layer: 1" title=
"39:9-39:23: @4[4]: _6 = const "alt string 2"
91 39:9-39:23: @4[5]: _5 = &(*_6)
92 39:9-39:34: @4.Call: _0 = <str as ToOwned>::to_owned(move _5) -> [return: bb5, unwind: bb6]
93 40:6-40:6: @5.Return: return"><span class=
"annotation">@
4,
5⦊
</span>"alt string 2".to_owned()
</span></span>
94 <span class=
"line"><span class=
"code odd" style=
"--layer: 1" title=
"39:9-39:23: @4[4]: _6 = const "alt string 2"
95 39:9-39:23: @4[5]: _5 = &(*_6)
96 39:9-39:34: @4.Call: _0 = <str as ToOwned>::to_owned(move _5) -> [return: bb5, unwind: bb6]
97 40:6-40:6: @5.Return: return"> }
<span class=
"annotation">⦉@
4,
5</span></span></span></span></div>