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.inline/inline.permutations.-------.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>inline.permutations - 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 9"><span class=
"line"><span><span class=
"code even" style=
"--layer: 1" title=
"11:18-11:20: @0[2]: _3 = &(*_1)
73 11:18-11:31: @0.Call: _2 = <[T] as std::borrow::ToOwned>::to_owned(move _3) -> [return: bb1, unwind: bb6]
74 11:9-11:15: @1[1]: FakeRead(ForLet, _2)
75 12:15-12:22: @1[7]: _8 = &mut _2
76 12:15-12:22: @1[8]: _7 = &mut (*_8)
77 12:15-12:22: @1.Call: _6 = <std::vec::Vec<T> as std::ops::DerefMut>::deref_mut(move _7) -> [return: bb2, unwind: bb5]
78 12:15-12:22: @2[0]: _5 = &mut (*_6)
79 12:5-12:26: @2.Call: _4 = permutate::<T>(move _5, const 0_usize) -> [return: bb3, unwind: bb5]
80 10:46-13:2: @3[4]: _0 = const ()
81 13:2-13:2: @4.Return: return"><span class=
"annotation">@
0,
1,
2,
3,
4⦊
</span>fn permutations
<T: Copy + Display
>(xs:
&[T]) {
</span></span>
82 <span class=
"line"><span class=
"code even" style=
"--layer: 1" title=
"11:18-11:20: @0[2]: _3 = &(*_1)
83 11:18-11:31: @0.Call: _2 = <[T] as std::borrow::ToOwned>::to_owned(move _3) -> [return: bb1, unwind: bb6]
84 11:9-11:15: @1[1]: FakeRead(ForLet, _2)
85 12:15-12:22: @1[7]: _8 = &mut _2
86 12:15-12:22: @1[8]: _7 = &mut (*_8)
87 12:15-12:22: @1.Call: _6 = <std::vec::Vec<T> as std::ops::DerefMut>::deref_mut(move _7) -> [return: bb2, unwind: bb5]
88 12:15-12:22: @2[0]: _5 = &mut (*_6)
89 12:5-12:26: @2.Call: _4 = permutate::<T>(move _5, const 0_usize) -> [return: bb3, unwind: bb5]
90 10:46-13:2: @3[4]: _0 = const ()
91 13:2-13:2: @4.Return: return"> let mut ys = xs.to_owned();
</span></span>
92 <span class=
"line"><span class=
"code even" style=
"--layer: 1" title=
"11:18-11:20: @0[2]: _3 = &(*_1)
93 11:18-11:31: @0.Call: _2 = <[T] as std::borrow::ToOwned>::to_owned(move _3) -> [return: bb1, unwind: bb6]
94 11:9-11:15: @1[1]: FakeRead(ForLet, _2)
95 12:15-12:22: @1[7]: _8 = &mut _2
96 12:15-12:22: @1[8]: _7 = &mut (*_8)
97 12:15-12:22: @1.Call: _6 = <std::vec::Vec<T> as std::ops::DerefMut>::deref_mut(move _7) -> [return: bb2, unwind: bb5]
98 12:15-12:22: @2[0]: _5 = &mut (*_6)
99 12:5-12:26: @2.Call: _4 = permutate::<T>(move _5, const 0_usize) -> [return: bb3, unwind: bb5]
100 10:46-13:2: @3[4]: _0 = const ()
101 13:2-13:2: @4.Return: return"> permutate(
&mut ys,
0);
</span></span>
102 <span class=
"line"><span class=
"code even" style=
"--layer: 1" title=
"11:18-11:20: @0[2]: _3 = &(*_1)
103 11:18-11:31: @0.Call: _2 = <[T] as std::borrow::ToOwned>::to_owned(move _3) -> [return: bb1, unwind: bb6]
104 11:9-11:15: @1[1]: FakeRead(ForLet, _2)
105 12:15-12:22: @1[7]: _8 = &mut _2
106 12:15-12:22: @1[8]: _7 = &mut (*_8)
107 12:15-12:22: @1.Call: _6 = <std::vec::Vec<T> as std::ops::DerefMut>::deref_mut(move _7) -> [return: bb2, unwind: bb5]
108 12:15-12:22: @2[0]: _5 = &mut (*_6)
109 12:5-12:26: @2.Call: _4 = permutate::<T>(move _5, const 0_usize) -> [return: bb3, unwind: bb5]
110 10:46-13:2: @3[4]: _0 = const ()
111 13:2-13:2: @4.Return: return">}
<span class=
"annotation">⦉@
0,
1,
2,
3,
4</span></span></span></span></div>