]>
Commit | Line | Data |
---|---|---|
fc512014 XL |
1 | <!DOCTYPE html> |
2 | <!-- | |
3 | ||
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.used_crate/used_crate.unused_private_function.-------.InstrumentCoverage.0.html | |
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>used_crate.unused_private_function - 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> | |
6a06907d | 72 | <div class="code" style="counter-reset: line 44"><span class="line"><span><span class="code even" style="--layer: 1" title="46:19-46:35: @0.Call: _4 = std::env::args() -> [return: bb1, unwind: bb8] |
fc512014 | 73 | 46:19-46:35: @1[0]: _3 = &_4 |
6a06907d | 74 | 46:19-46:41: @1.Call: _2 = <std::env::Args as std::iter::ExactSizeIterator>::len(move _3) -> [return: bb2, unwind: bb7] |
fc512014 XL |
75 | 46:19-46:46: @2[1]: _1 = Eq(move _2, const 1_usize) |
76 | 46:9-46:16: @2[3]: FakeRead(ForLet, _1) | |
77 | 47:25-47:26: @3[2]: _5 = const 2_i32 | |
78 | 47:9-47:22: @3[3]: FakeRead(ForLet, _5) | |
79 | 48:9-48:16: @3[6]: _7 = _1 | |
5869c6ff | 80 | 48:8-48:16: @3[7]: _6 = Not(move _7)"><span class="annotation">@0,1,2,3⦊</span>fn unused_private_function() {</span></span> |
6a06907d | 81 | <span class="line"><span class="code even" style="--layer: 1" title="46:19-46:35: @0.Call: _4 = std::env::args() -> [return: bb1, unwind: bb8] |
fc512014 | 82 | 46:19-46:35: @1[0]: _3 = &_4 |
6a06907d | 83 | 46:19-46:41: @1.Call: _2 = <std::env::Args as std::iter::ExactSizeIterator>::len(move _3) -> [return: bb2, unwind: bb7] |
fc512014 XL |
84 | 46:19-46:46: @2[1]: _1 = Eq(move _2, const 1_usize) |
85 | 46:9-46:16: @2[3]: FakeRead(ForLet, _1) | |
86 | 47:25-47:26: @3[2]: _5 = const 2_i32 | |
87 | 47:9-47:22: @3[3]: FakeRead(ForLet, _5) | |
88 | 48:9-48:16: @3[6]: _7 = _1 | |
5869c6ff | 89 | 48:8-48:16: @3[7]: _6 = Not(move _7)"> let is_true = std::env::args().len() == 1;</span></span> |
6a06907d | 90 | <span class="line"><span class="code even" style="--layer: 1" title="46:19-46:35: @0.Call: _4 = std::env::args() -> [return: bb1, unwind: bb8] |
fc512014 | 91 | 46:19-46:35: @1[0]: _3 = &_4 |
6a06907d | 92 | 46:19-46:41: @1.Call: _2 = <std::env::Args as std::iter::ExactSizeIterator>::len(move _3) -> [return: bb2, unwind: bb7] |
fc512014 XL |
93 | 46:19-46:46: @2[1]: _1 = Eq(move _2, const 1_usize) |
94 | 46:9-46:16: @2[3]: FakeRead(ForLet, _1) | |
95 | 47:25-47:26: @3[2]: _5 = const 2_i32 | |
96 | 47:9-47:22: @3[3]: FakeRead(ForLet, _5) | |
97 | 48:9-48:16: @3[6]: _7 = _1 | |
5869c6ff | 98 | 48:8-48:16: @3[7]: _6 = Not(move _7)"> let mut countdown = 2;</span></span> |
6a06907d | 99 | <span class="line"><span class="code even" style="--layer: 1" title="46:19-46:35: @0.Call: _4 = std::env::args() -> [return: bb1, unwind: bb8] |
fc512014 | 100 | 46:19-46:35: @1[0]: _3 = &_4 |
6a06907d | 101 | 46:19-46:41: @1.Call: _2 = <std::env::Args as std::iter::ExactSizeIterator>::len(move _3) -> [return: bb2, unwind: bb7] |
fc512014 XL |
102 | 46:19-46:46: @2[1]: _1 = Eq(move _2, const 1_usize) |
103 | 46:9-46:16: @2[3]: FakeRead(ForLet, _1) | |
104 | 47:25-47:26: @3[2]: _5 = const 2_i32 | |
105 | 47:9-47:22: @3[3]: FakeRead(ForLet, _5) | |
106 | 48:9-48:16: @3[6]: _7 = _1 | |
5869c6ff XL |
107 | 48:8-48:16: @3[7]: _6 = Not(move _7)"> if !is_true<span class="annotation">⦉@0,1,2,3</span></span></span><span class="code" style="--layer: 0"> </span><span><span class="code odd" style="--layer: 1" title="49:9-49:23: @4[0]: _5 = const 20_i32 |
108 | 48:17-50:6: @4[1]: _0 = const ()"><span class="annotation">@4⦊</span>{</span></span> | |
109 | <span class="line"><span class="code odd" style="--layer: 1" title="49:9-49:23: @4[0]: _5 = const 20_i32 | |
110 | 48:17-50:6: @4[1]: _0 = const ()"> countdown = 20;</span></span> | |
111 | <span class="line"><span class="code odd" style="--layer: 1" title="49:9-49:23: @4[0]: _5 = const 20_i32 | |
112 | 48:17-50:6: @4[1]: _0 = const ()"> }<span class="annotation">⦉@4</span></span></span><span><span class="code even" style="--layer: 1" title="50:6-50:6: @5[0]: _0 = const ()"><span class="annotation">@5⦊</span>‸<span class="annotation">⦉@5</span></span></span><span class="code" style="--layer: 0"></span></span> | |
113 | <span class="line"><span class="code" style="--layer: 0">}</span><span><span class="code odd" style="--layer: 1" title="51:2-51:2: @6.Return: return"><span class="annotation">@6⦊</span>‸<span class="annotation">⦉@6</span></span></span></span></div> | |
fc512014 XL |
114 | </body> |
115 | </html> |