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.loops_branches/loops_branches.main.-------.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>loops_branches.main - 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 21"><span class=
"line"><span><span class=
"code even" style=
"--layer: 1" title=
"23:22-23:31: @0[1]: _1 = DebugTest
73 23:9-23:19: @0[2]: FakeRead(ForLet, _1)
74 24:14-24:20: @0[9]: _19 = const main::promoted[0]
75 24:14-24:20: @0[10]: _7 = &(*_19)
76 24:14-24:20: @0[11]: _6 = &(*_7)
77 24:14-24:20: @0[12]: _5 = move _6 as &[&str] (Pointer(Unsize))
78 24:22-24:32: @0[20]: _14 = &_1
79 24:5-24:34: @0[21]: _13 = (move _14,)
80 24:5-24:34: @0[23]: FakeRead(ForMatchedPlace, _13)
81 24:5-24:34: @0[25]: _15 = (_13.0: &DebugTest)
82 24:5-24:34: @0[28]: _17 = &(*_15)
83 24:5-24:34: @0[30]: _18 = <DebugTest as std::fmt::Debug>::fmt as for<'r, 's, 't0> fn(&'r DebugTest, &'s mut std::fmt::Formatter<'t0>) -> std::result::Result<(), std::fmt::Error> (Pointer(ReifyFnPointer))
84 24:5-24:34: @0.Call: _16 = std::fmt::ArgumentV1::new::<DebugTest>(move _17, move _18) -> [return: bb1, unwind: bb4]
85 24:5-24:34: @1[2]: _12 = [move _16]
86 24:5-24:34: @1[5]: _11 = &_12
87 24:5-24:34: @1[6]: _10 = &(*_11)
88 24:5-24:34: @1[7]: _9 = move _10 as &[std::fmt::ArgumentV1] (Pointer(Unsize))
89 24:5-24:34: @1.Call: _4 = std::fmt::Arguments::new_v1(move _5, move _9) -> [return: bb2, unwind: bb4]
90 24:5-24:34: @2.Call: _3 = std::io::_print(move _4) -> [return: bb3, unwind: bb4]
91 24:5-24:34: @3[6]: _2 = const ()
92 22:11-25:2: @3[8]: _0 = const ()
93 25:2-25:2: @3.Return: return"><span class=
"annotation">@
0,
1,
2,
3⦊
</span>fn main() {
</span></span>
94 <span class=
"line"><span class=
"code even" style=
"--layer: 1" title=
"23:22-23:31: @0[1]: _1 = DebugTest
95 23:9-23:19: @0[2]: FakeRead(ForLet, _1)
96 24:14-24:20: @0[9]: _19 = const main::promoted[0]
97 24:14-24:20: @0[10]: _7 = &(*_19)
98 24:14-24:20: @0[11]: _6 = &(*_7)
99 24:14-24:20: @0[12]: _5 = move _6 as &[&str] (Pointer(Unsize))
100 24:22-24:32: @0[20]: _14 = &_1
101 24:5-24:34: @0[21]: _13 = (move _14,)
102 24:5-24:34: @0[23]: FakeRead(ForMatchedPlace, _13)
103 24:5-24:34: @0[25]: _15 = (_13.0: &DebugTest)
104 24:5-24:34: @0[28]: _17 = &(*_15)
105 24:5-24:34: @0[30]: _18 = <DebugTest as std::fmt::Debug>::fmt as for<'r, 's, 't0> fn(&'r DebugTest, &'s mut std::fmt::Formatter<'t0>) -> std::result::Result<(), std::fmt::Error> (Pointer(ReifyFnPointer))
106 24:5-24:34: @0.Call: _16 = std::fmt::ArgumentV1::new::<DebugTest>(move _17, move _18) -> [return: bb1, unwind: bb4]
107 24:5-24:34: @1[2]: _12 = [move _16]
108 24:5-24:34: @1[5]: _11 = &_12
109 24:5-24:34: @1[6]: _10 = &(*_11)
110 24:5-24:34: @1[7]: _9 = move _10 as &[std::fmt::ArgumentV1] (Pointer(Unsize))
111 24:5-24:34: @1.Call: _4 = std::fmt::Arguments::new_v1(move _5, move _9) -> [return: bb2, unwind: bb4]
112 24:5-24:34: @2.Call: _3 = std::io::_print(move _4) -> [return: bb3, unwind: bb4]
113 24:5-24:34: @3[6]: _2 = const ()
114 22:11-25:2: @3[8]: _0 = const ()
115 25:2-25:2: @3.Return: return"> let debug_test = DebugTest;
</span></span>
116 <span class=
"line"><span class=
"code even" style=
"--layer: 1" title=
"23:22-23:31: @0[1]: _1 = DebugTest
117 23:9-23:19: @0[2]: FakeRead(ForLet, _1)
118 24:14-24:20: @0[9]: _19 = const main::promoted[0]
119 24:14-24:20: @0[10]: _7 = &(*_19)
120 24:14-24:20: @0[11]: _6 = &(*_7)
121 24:14-24:20: @0[12]: _5 = move _6 as &[&str] (Pointer(Unsize))
122 24:22-24:32: @0[20]: _14 = &_1
123 24:5-24:34: @0[21]: _13 = (move _14,)
124 24:5-24:34: @0[23]: FakeRead(ForMatchedPlace, _13)
125 24:5-24:34: @0[25]: _15 = (_13.0: &DebugTest)
126 24:5-24:34: @0[28]: _17 = &(*_15)
127 24:5-24:34: @0[30]: _18 = <DebugTest as std::fmt::Debug>::fmt as for<'r, 's, 't0> fn(&'r DebugTest, &'s mut std::fmt::Formatter<'t0>) -> std::result::Result<(), std::fmt::Error> (Pointer(ReifyFnPointer))
128 24:5-24:34: @0.Call: _16 = std::fmt::ArgumentV1::new::<DebugTest>(move _17, move _18) -> [return: bb1, unwind: bb4]
129 24:5-24:34: @1[2]: _12 = [move _16]
130 24:5-24:34: @1[5]: _11 = &_12
131 24:5-24:34: @1[6]: _10 = &(*_11)
132 24:5-24:34: @1[7]: _9 = move _10 as &[std::fmt::ArgumentV1] (Pointer(Unsize))
133 24:5-24:34: @1.Call: _4 = std::fmt::Arguments::new_v1(move _5, move _9) -> [return: bb2, unwind: bb4]
134 24:5-24:34: @2.Call: _3 = std::io::_print(move _4) -> [return: bb3, unwind: bb4]
135 24:5-24:34: @3[6]: _2 = const ()
136 22:11-25:2: @3[8]: _0 = const ()
137 25:2-25:2: @3.Return: return"> println!(
"{:?}", debug_test);
</span></span>
138 <span class=
"line"><span class=
"code even" style=
"--layer: 1" title=
"23:22-23:31: @0[1]: _1 = DebugTest
139 23:9-23:19: @0[2]: FakeRead(ForLet, _1)
140 24:14-24:20: @0[9]: _19 = const main::promoted[0]
141 24:14-24:20: @0[10]: _7 = &(*_19)
142 24:14-24:20: @0[11]: _6 = &(*_7)
143 24:14-24:20: @0[12]: _5 = move _6 as &[&str] (Pointer(Unsize))
144 24:22-24:32: @0[20]: _14 = &_1
145 24:5-24:34: @0[21]: _13 = (move _14,)
146 24:5-24:34: @0[23]: FakeRead(ForMatchedPlace, _13)
147 24:5-24:34: @0[25]: _15 = (_13.0: &DebugTest)
148 24:5-24:34: @0[28]: _17 = &(*_15)
149 24:5-24:34: @0[30]: _18 = <DebugTest as std::fmt::Debug>::fmt as for<'r, 's, 't0> fn(&'r DebugTest, &'s mut std::fmt::Formatter<'t0>) -> std::result::Result<(), std::fmt::Error> (Pointer(ReifyFnPointer))
150 24:5-24:34: @0.Call: _16 = std::fmt::ArgumentV1::new::<DebugTest>(move _17, move _18) -> [return: bb1, unwind: bb4]
151 24:5-24:34: @1[2]: _12 = [move _16]
152 24:5-24:34: @1[5]: _11 = &_12
153 24:5-24:34: @1[6]: _10 = &(*_11)
154 24:5-24:34: @1[7]: _9 = move _10 as &[std::fmt::ArgumentV1] (Pointer(Unsize))
155 24:5-24:34: @1.Call: _4 = std::fmt::Arguments::new_v1(move _5, move _9) -> [return: bb2, unwind: bb4]
156 24:5-24:34: @2.Call: _3 = std::io::_print(move _4) -> [return: bb3, unwind: bb4]
157 24:5-24:34: @3[6]: _2 = const ()
158 22:11-25:2: @3[8]: _0 = const ()
159 25:2-25:2: @3.Return: return">}
<span class=
"annotation">⦉@
0,
1,
2,
3</span></span></span></span></div>