]>
Commit | Line | Data |
---|---|---|
29967ef6 XL |
1 | <!DOCTYPE html> |
2 | <!-- | |
3 | ||
4 | Preview this file as rendered HTML from the github source at: | |
fc512014 | 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.%7Bimpl%230%7D-fmt.-------.InstrumentCoverage.0.html |
29967ef6 XL |
6 | |
7 | For 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>loops_branches.{impl#0}-fmt - 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> | |
5869c6ff XL |
72 | <div class="code" style="counter-reset: line 8"><span class="line"> <span><span class="code even" style="--layer: 1" title="10:12-10:16: @0[2]: _4 = const true"><span class="annotation">@0⦊</span>fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {</span></span> |
73 | <span class="line"><span class="code even" style="--layer: 1" title="10:12-10:16: @0[2]: _4 = const true"> if true<span class="annotation">⦉@0</span></span></span><span class="code" style="--layer: 0"> {</span></span> | |
74 | <span class="line"><span class="code" style="--layer: 0"> if </span><span><span class="code odd" style="--layer: 1" title="11:16-11:21: @1[2]: _6 = const false"><span class="annotation">@1⦊</span>false<span class="annotation">⦉@1</span></span></span><span class="code" style="--layer: 0"> {</span></span> | |
75 | <span class="line"><span class="code" style="--layer: 0"> while </span><span><span class="code even" style="--layer: 1" title="12:23-12:27: @5[1]: _8 = const true | |
76 | 12:23-12:27: @5[2]: FakeRead(ForMatchedPlace, _8)"><span class="annotation">@4,5⦊</span>true<span class="annotation">⦉@4,5</span></span></span><span class="code" style="--layer: 0"> </span><span><span class="code odd" style="--layer: 1" title="12:28-13:18: @8[0]: _7 = const ()"><span class="annotation">@6,8⦊</span>{</span></span> | |
77 | <span class="line"><span class="code odd" style="--layer: 1" title="12:28-13:18: @8[0]: _7 = const ()"> }<span class="annotation">⦉@6,8</span></span></span><span class="code" style="--layer: 0"></span></span> | |
78 | <span class="line"><span class="code" style="--layer: 0"> }</span><span><span class="code even" style="--layer: 1" title="14:14-14:14: @3[0]: _5 = const ()"><span class="annotation">@3⦊</span>‸<span class="annotation">⦉@3</span></span></span><span class="code" style="--layer: 0"></span></span> | |
79 | <span class="line"><span class="code" style="--layer: 0"> </span><span><span class="code odd" style="--layer: 1" title="15:20-15:21: @9[6]: _13 = &mut (*_2) | |
80 | 15:23-15:30: @9[11]: _32 = const <DebugTest as Debug>::fmt::promoted[1] | |
81 | 15:23-15:30: @9[12]: _17 = &(*_32) | |
82 | 15:23-15:30: @9[13]: _16 = &(*_17) | |
83 | 15:23-15:30: @9[14]: _15 = move _16 as &[&str] (Pointer(Unsize)) | |
84 | 15:13-15:31: @9[20]: _23 = () | |
85 | 15:13-15:31: @9[21]: FakeRead(ForMatchedPlace, _23) | |
86 | 15:13-15:31: @9[22]: _31 = const <DebugTest as Debug>::fmt::promoted[0] | |
87 | 15:13-15:31: @9[23]: _21 = &(*_31) | |
88 | 15:13-15:31: @9[24]: _20 = &(*_21) | |
89 | 15:13-15:31: @9[25]: _19 = move _20 as &[std::fmt::ArgumentV1] (Pointer(Unsize)) | |
90 | 15:13-15:31: @9.Call: _14 = Arguments::new_v1(move _15, move _19) -> [return: bb10, unwind: bb21] | |
91 | 15:13-15:31: @10.Call: _12 = Formatter::write_fmt(move _13, move _14) -> [return: bb11, unwind: bb21]"><span class="annotation">@9,10,11,12⦊</span>write!(f, "error")<span class="annotation">⦉@9,10,11,12</span></span></span><span><span class="code even" style="--layer: 1" title="15:31-15:32: @16[1]: _25 = ((_11 as Err).0: std::fmt::Error) | |
92 | 15:31-15:32: @16[4]: _28 = _25 | |
93 | 15:31-15:32: @16.Call: _27 = <std::fmt::Error as From<std::fmt::Error>>::from(move _28) -> [return: bb17, unwind: bb21]"><span class="annotation">@14,16,17,18⦊</span>?<span class="annotation">⦉@14,16,17,18</span></span></span><span class="code" style="--layer: 0">;</span></span> | |
fc512014 XL |
94 | <span class="line"><span class="code" style="--layer: 0"> } else </span><span><span class="code odd" style="--layer: 1" title="16:16-17:10: @2[0]: _3 = const ()"><span class="annotation">@2⦊</span>{</span></span> |
95 | <span class="line"><span class="code odd" style="--layer: 1" title="16:16-17:10: @2[0]: _3 = const ()"> }<span class="annotation">⦉@2</span></span></span><span class="code" style="--layer: 0"></span></span> | |
5869c6ff XL |
96 | <span class="line"><span class="code" style="--layer: 0"> </span><span><span class="code even" style="--layer: 1" title="18:12-18:14: @19[3]: _30 = () |
97 | 18:9-18:15: @19[4]: _0 = std::result::Result::<(), std::fmt::Error>::Ok(move _30)"><span class="annotation">@19⦊</span>Ok(())<span class="annotation">⦉@19</span></span></span><span class="code" style="--layer: 0"></span></span> | |
98 | <span class="line"><span class="code" style="--layer: 0"> }</span><span><span class="code odd" style="--layer: 1" title="19:6-19:6: @20.Return: return"><span class="annotation">@20⦊</span>‸<span class="annotation">⦉@20</span></span></span></span></div> | |
29967ef6 XL |
99 | </body> |
100 | </html> |