1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
|
<!DOCTYPE html>
<!--
Preview this file as rendered HTML from the github source at:
https://htmlpreview.github.io/?https://github.com/rust-lang/rust/blob/master/src/test/run-make-fulldeps/coverage-spanview/expected_mir_dump.inline/inline.display.-------.InstrumentCoverage.0.html
For revisions in Pull Requests (PR):
* Replace "rust-lang" with the github PR author
* Replace "master" with the PR branch name
-->
<html>
<head>
<title>inline.display - Coverage Spans</title>
<style>
.line {
counter-increment: line;
}
.line:before {
content: counter(line) ": ";
font-family: Menlo, Monaco, monospace;
font-style: italic;
width: 3.8em;
display: inline-block;
text-align: right;
filter: opacity(50%);
-webkit-user-select: none;
}
.code {
color: #dddddd;
background-color: #222222;
font-family: Menlo, Monaco, monospace;
line-height: 1.4em;
border-bottom: 2px solid #222222;
white-space: pre;
display: inline-block;
}
.odd {
background-color: #55bbff;
color: #223311;
}
.even {
background-color: #ee7756;
color: #551133;
}
.code {
--index: calc(var(--layer) - 1);
padding-top: calc(var(--index) * 0.15em);
filter:
hue-rotate(calc(var(--index) * 25deg))
saturate(calc(100% - (var(--index) * 2%)))
brightness(calc(100% - (var(--index) * 1.5%)));
}
.annotation {
color: #4444ff;
font-family: monospace;
font-style: italic;
display: none;
-webkit-user-select: none;
}
body:active .annotation {
/* requires holding mouse down anywhere on the page */
display: inline-block;
}
span:hover .annotation {
/* requires hover over a span ONLY on its first line */
display: inline-block;
}
</style>
</head>
<body>
<div class="code" style="counter-reset: line 40"><span class="line"><span><span class="code even" style="--layer: 1"><span class="annotation">@0,1⦊</span>fn display<T: Display>(xs: &[T]) <span class="annotation">⦉@0,1</span></span></span><span class="code" style="--layer: 0">{</span></span>
<span class="line"><span class="code" style="--layer: 0"> for </span><span><span class="code odd" style="--layer: 1" title="42:9-42:10: @8[1]: _13 = ((_9 as Some).0: &T)
42:9-42:10: @8[3]: _14 = _13
42:9-42:10: @8[4]: _7 = move _14
42:9-42:10: @8[5]: _8 = const ()
42:9-42:10: @8[13]: FakeRead(ForLet, _16)"><span class="annotation">@6,8,9,10,11⦊</span>x<span class="annotation">⦉@6,8,9,10,11</span></span></span><span class="code" style="--layer: 0"> in </span><span><span class="code odd" style="--layer: 1" title="42:14-42:16: @8[12]: _16 = _7
43:16-43:20: @8[20]: _47 = const display::<T>::promoted[2]
43:16-43:20: @8[21]: _22 = &(*_47)
43:16-43:20: @8[22]: _21 = &(*_22)
43:16-43:20: @8[23]: _20 = move _21 as &[&str] (Pointer(Unsize))
43:22-43:23: @8[31]: _29 = &_16
43:9-43:25: @8[32]: _28 = (move _29,)
43:9-43:25: @8[34]: FakeRead(ForMatchedPlace, _28)
43:9-43:25: @8[36]: _30 = (_28.0: &&T)
43:9-43:25: @8[39]: _32 = &(*_30)
43:9-43:25: @8[41]: _33 = <&T as std::fmt::Display>::fmt as for<'r, 's, 't0> fn(&'r &T, &'s mut std::fmt::Formatter<'t0>) -> std::result::Result<(), std::fmt::Error> (Pointer(ReifyFnPointer))
43:9-43:25: @8.Call: _31 = std::fmt::ArgumentV1::new::<&T>(move _32, move _33) -> [return: bb9, unwind: bb14]
43:9-43:25: @9[2]: _27 = [move _31]
43:9-43:25: @9[5]: _26 = &_27
43:9-43:25: @9[6]: _25 = &(*_26)
43:9-43:25: @9[7]: _24 = move _25 as &[std::fmt::ArgumentV1] (Pointer(Unsize))
43:9-43:25: @9.Call: _19 = std::fmt::Arguments::new_v1(move _20, move _24) -> [return: bb10, unwind: bb14]
43:9-43:25: @10.Call: _18 = std::io::_print(move _19) -> [return: bb11, unwind: bb14]
42:17-44:6: @11[6]: _17 = const ()"><span class="annotation">@6,8,9,10,11⦊</span>xs {</span></span>
<span class="line"><span class="code odd" style="--layer: 1" title="42:14-42:16: @8[12]: _16 = _7
43:16-43:20: @8[20]: _47 = const display::<T>::promoted[2]
43:16-43:20: @8[21]: _22 = &(*_47)
43:16-43:20: @8[22]: _21 = &(*_22)
43:16-43:20: @8[23]: _20 = move _21 as &[&str] (Pointer(Unsize))
43:22-43:23: @8[31]: _29 = &_16
43:9-43:25: @8[32]: _28 = (move _29,)
43:9-43:25: @8[34]: FakeRead(ForMatchedPlace, _28)
43:9-43:25: @8[36]: _30 = (_28.0: &&T)
43:9-43:25: @8[39]: _32 = &(*_30)
43:9-43:25: @8[41]: _33 = <&T as std::fmt::Display>::fmt as for<'r, 's, 't0> fn(&'r &T, &'s mut std::fmt::Formatter<'t0>) -> std::result::Result<(), std::fmt::Error> (Pointer(ReifyFnPointer))
43:9-43:25: @8.Call: _31 = std::fmt::ArgumentV1::new::<&T>(move _32, move _33) -> [return: bb9, unwind: bb14]
43:9-43:25: @9[2]: _27 = [move _31]
43:9-43:25: @9[5]: _26 = &_27
43:9-43:25: @9[6]: _25 = &(*_26)
43:9-43:25: @9[7]: _24 = move _25 as &[std::fmt::ArgumentV1] (Pointer(Unsize))
43:9-43:25: @9.Call: _19 = std::fmt::Arguments::new_v1(move _20, move _24) -> [return: bb10, unwind: bb14]
43:9-43:25: @10.Call: _18 = std::io::_print(move _19) -> [return: bb11, unwind: bb14]
42:17-44:6: @11[6]: _17 = const ()"> print!("{}", x);</span></span>
<span class="line"><span class="code odd" style="--layer: 1" title="42:14-42:16: @8[12]: _16 = _7
43:16-43:20: @8[20]: _47 = const display::<T>::promoted[2]
43:16-43:20: @8[21]: _22 = &(*_47)
43:16-43:20: @8[22]: _21 = &(*_22)
43:16-43:20: @8[23]: _20 = move _21 as &[&str] (Pointer(Unsize))
43:22-43:23: @8[31]: _29 = &_16
43:9-43:25: @8[32]: _28 = (move _29,)
43:9-43:25: @8[34]: FakeRead(ForMatchedPlace, _28)
43:9-43:25: @8[36]: _30 = (_28.0: &&T)
43:9-43:25: @8[39]: _32 = &(*_30)
43:9-43:25: @8[41]: _33 = <&T as std::fmt::Display>::fmt as for<'r, 's, 't0> fn(&'r &T, &'s mut std::fmt::Formatter<'t0>) -> std::result::Result<(), std::fmt::Error> (Pointer(ReifyFnPointer))
43:9-43:25: @8.Call: _31 = std::fmt::ArgumentV1::new::<&T>(move _32, move _33) -> [return: bb9, unwind: bb14]
43:9-43:25: @9[2]: _27 = [move _31]
43:9-43:25: @9[5]: _26 = &_27
43:9-43:25: @9[6]: _25 = &(*_26)
43:9-43:25: @9[7]: _24 = move _25 as &[std::fmt::ArgumentV1] (Pointer(Unsize))
43:9-43:25: @9.Call: _19 = std::fmt::Arguments::new_v1(move _20, move _24) -> [return: bb10, unwind: bb14]
43:9-43:25: @10.Call: _18 = std::io::_print(move _19) -> [return: bb11, unwind: bb14]
42:17-44:6: @11[6]: _17 = const ()"> }<span class="annotation">⦉@6,8,9,10,11</span></span></span><span class="code" style="--layer: 0"></span></span>
<span class="line"><span class="code" style="--layer: 0"> </span><span><span class="code even" style="--layer: 1" title="45:5-45:16: @5[13]: _46 = const display::<T>::promoted[1]
45:5-45:16: @5[14]: _38 = &(*_46)
45:5-45:16: @5[15]: _37 = &(*_38)
45:5-45:16: @5[16]: _36 = move _37 as &[&str] (Pointer(Unsize))
45:5-45:16: @5[22]: _44 = ()
45:5-45:16: @5[23]: FakeRead(ForMatchedPlace, _44)
45:5-45:16: @5[24]: _45 = const display::<T>::promoted[0]
45:5-45:16: @5[25]: _42 = &(*_45)
45:5-45:16: @5[26]: _41 = &(*_42)
45:5-45:16: @5[27]: _40 = move _41 as &[std::fmt::ArgumentV1] (Pointer(Unsize))
45:5-45:16: @5.Call: _35 = std::fmt::Arguments::new_v1(move _36, move _40) -> [return: bb12, unwind: bb14]
45:5-45:16: @12.Call: _34 = std::io::_print(move _35) -> [return: bb13, unwind: bb14]
46:2-46:2: @13.Return: return"><span class="annotation">@5,12,13⦊</span>println!();</span></span>
<span class="line"><span class="code even" style="--layer: 1" title="45:5-45:16: @5[13]: _46 = const display::<T>::promoted[1]
45:5-45:16: @5[14]: _38 = &(*_46)
45:5-45:16: @5[15]: _37 = &(*_38)
45:5-45:16: @5[16]: _36 = move _37 as &[&str] (Pointer(Unsize))
45:5-45:16: @5[22]: _44 = ()
45:5-45:16: @5[23]: FakeRead(ForMatchedPlace, _44)
45:5-45:16: @5[24]: _45 = const display::<T>::promoted[0]
45:5-45:16: @5[25]: _42 = &(*_45)
45:5-45:16: @5[26]: _41 = &(*_42)
45:5-45:16: @5[27]: _40 = move _41 as &[std::fmt::ArgumentV1] (Pointer(Unsize))
45:5-45:16: @5.Call: _35 = std::fmt::Arguments::new_v1(move _36, move _40) -> [return: bb12, unwind: bb14]
45:5-45:16: @12.Call: _34 = std::io::_print(move _35) -> [return: bb13, unwind: bb14]
46:2-46:2: @13.Return: return">}<span class="annotation">⦉@5,12,13</span></span></span></span></div>
</body>
</html>
|