]>
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_generic_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_generic_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> | |
72 | <div class="code" style="counter-reset: line 32"><span class="line"><span><span class="code even" style="--layer: 1" title="34:14-34:49: @0[6]: _19 = const unused_generic_function::<T>::promoted[0] | |
73 | 34:14-34:49: @0[7]: _7 = &(*_19) | |
74 | 34:14-34:49: @0[8]: _6 = &(*_7) | |
75 | 34:14-34:49: @0[9]: _5 = move _6 as &[&str] (Pointer(Unsize)) | |
76 | 34:51-34:54: @0[17]: _14 = &_1 | |
77 | 34:5-34:56: @0[18]: _13 = (move _14,) | |
78 | 34:5-34:56: @0[20]: FakeRead(ForMatchedPlace, _13) | |
79 | 34:5-34:56: @0[22]: _15 = (_13.0: &T) | |
80 | 34:5-34:56: @0[25]: _17 = &(*_15) | |
6a06907d XL |
81 | 34:5-34:56: @0[27]: _18 = <T as std::fmt::Debug>::fmt as for<'r, 's, 't0> fn(&'r T, &'s mut std::fmt::Formatter<'t0>) -> std::result::Result<(), std::fmt::Error> (Pointer(ReifyFnPointer)) |
82 | 34:5-34:56: @0.Call: _16 = std::fmt::ArgumentV1::new::<T>(move _17, move _18) -> [return: bb1, unwind: bb5] | |
fc512014 XL |
83 | 34:5-34:56: @1[2]: _12 = [move _16] |
84 | 34:5-34:56: @1[5]: _11 = &_12 | |
85 | 34:5-34:56: @1[6]: _10 = &(*_11) | |
86 | 34:5-34:56: @1[7]: _9 = move _10 as &[std::fmt::ArgumentV1] (Pointer(Unsize)) | |
6a06907d XL |
87 | 34:5-34:56: @1.Call: _4 = std::fmt::Arguments::new_v1(move _5, move _9) -> [return: bb2, unwind: bb5] |
88 | 34:5-34:56: @2.Call: _3 = std::io::_print(move _4) -> [return: bb3, unwind: bb5] | |
fc512014 XL |
89 | 34:5-34:56: @3[6]: _2 = const () |
90 | 33:50-35:2: @3[8]: _0 = const () | |
91 | 35:2-35:2: @4.Return: return"><span class="annotation">@0,1,2,3,4⦊</span>pub fn unused_generic_function<T: Debug>(arg: T) {</span></span> | |
92 | <span class="line"><span class="code even" style="--layer: 1" title="34:14-34:49: @0[6]: _19 = const unused_generic_function::<T>::promoted[0] | |
93 | 34:14-34:49: @0[7]: _7 = &(*_19) | |
94 | 34:14-34:49: @0[8]: _6 = &(*_7) | |
95 | 34:14-34:49: @0[9]: _5 = move _6 as &[&str] (Pointer(Unsize)) | |
96 | 34:51-34:54: @0[17]: _14 = &_1 | |
97 | 34:5-34:56: @0[18]: _13 = (move _14,) | |
98 | 34:5-34:56: @0[20]: FakeRead(ForMatchedPlace, _13) | |
99 | 34:5-34:56: @0[22]: _15 = (_13.0: &T) | |
100 | 34:5-34:56: @0[25]: _17 = &(*_15) | |
6a06907d XL |
101 | 34:5-34:56: @0[27]: _18 = <T as std::fmt::Debug>::fmt as for<'r, 's, 't0> fn(&'r T, &'s mut std::fmt::Formatter<'t0>) -> std::result::Result<(), std::fmt::Error> (Pointer(ReifyFnPointer)) |
102 | 34:5-34:56: @0.Call: _16 = std::fmt::ArgumentV1::new::<T>(move _17, move _18) -> [return: bb1, unwind: bb5] | |
fc512014 XL |
103 | 34:5-34:56: @1[2]: _12 = [move _16] |
104 | 34:5-34:56: @1[5]: _11 = &_12 | |
105 | 34:5-34:56: @1[6]: _10 = &(*_11) | |
106 | 34:5-34:56: @1[7]: _9 = move _10 as &[std::fmt::ArgumentV1] (Pointer(Unsize)) | |
6a06907d XL |
107 | 34:5-34:56: @1.Call: _4 = std::fmt::Arguments::new_v1(move _5, move _9) -> [return: bb2, unwind: bb5] |
108 | 34:5-34:56: @2.Call: _3 = std::io::_print(move _4) -> [return: bb3, unwind: bb5] | |
fc512014 XL |
109 | 34:5-34:56: @3[6]: _2 = const () |
110 | 33:50-35:2: @3[8]: _0 = const () | |
111 | 35:2-35:2: @4.Return: return"> println!("unused_generic_function with {:?}", arg);</span></span> | |
112 | <span class="line"><span class="code even" style="--layer: 1" title="34:14-34:49: @0[6]: _19 = const unused_generic_function::<T>::promoted[0] | |
113 | 34:14-34:49: @0[7]: _7 = &(*_19) | |
114 | 34:14-34:49: @0[8]: _6 = &(*_7) | |
115 | 34:14-34:49: @0[9]: _5 = move _6 as &[&str] (Pointer(Unsize)) | |
116 | 34:51-34:54: @0[17]: _14 = &_1 | |
117 | 34:5-34:56: @0[18]: _13 = (move _14,) | |
118 | 34:5-34:56: @0[20]: FakeRead(ForMatchedPlace, _13) | |
119 | 34:5-34:56: @0[22]: _15 = (_13.0: &T) | |
120 | 34:5-34:56: @0[25]: _17 = &(*_15) | |
6a06907d XL |
121 | 34:5-34:56: @0[27]: _18 = <T as std::fmt::Debug>::fmt as for<'r, 's, 't0> fn(&'r T, &'s mut std::fmt::Formatter<'t0>) -> std::result::Result<(), std::fmt::Error> (Pointer(ReifyFnPointer)) |
122 | 34:5-34:56: @0.Call: _16 = std::fmt::ArgumentV1::new::<T>(move _17, move _18) -> [return: bb1, unwind: bb5] | |
fc512014 XL |
123 | 34:5-34:56: @1[2]: _12 = [move _16] |
124 | 34:5-34:56: @1[5]: _11 = &_12 | |
125 | 34:5-34:56: @1[6]: _10 = &(*_11) | |
126 | 34:5-34:56: @1[7]: _9 = move _10 as &[std::fmt::ArgumentV1] (Pointer(Unsize)) | |
6a06907d XL |
127 | 34:5-34:56: @1.Call: _4 = std::fmt::Arguments::new_v1(move _5, move _9) -> [return: bb2, unwind: bb5] |
128 | 34:5-34:56: @2.Call: _3 = std::io::_print(move _4) -> [return: bb3, unwind: bb5] | |
fc512014 XL |
129 | 34:5-34:56: @3[6]: _2 = const () |
130 | 33:50-35:2: @3[8]: _0 = const () | |
131 | 35:2-35:2: @4.Return: return">}<span class="annotation">⦉@0,1,2,3,4</span></span></span></span></div> | |
132 | </body> | |
133 | </html> |