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