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.assert/assert.might_fail_assert.-------.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>assert.might_fail_assert - 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 3"><span class=
"line"><span><span class=
"code even" style=
"--layer: 1"><span class=
"annotation">@
0,
1,
2,
3,
4⦊
</span>fn might_fail_assert(one_plus_one: u32)
<span class=
"annotation">⦉@
0,
1,
2,
3,
4</span></span></span><span class=
"code" style=
"--layer: 0">{
</span></span>
73 <span class=
"line"><span class=
"code" style=
"--layer: 0"> </span><span><span class=
"code even" style=
"--layer: 1" title=
"5:14-5:32: @0[6]: _73 = const might_fail_assert::promoted[4]
74 5:14-5:32: @0[7]: _7 = &(*_73)
75 5:14-5:32: @0[8]: _6 = &(*_7)
76 5:14-5:32: @0[9]: _5 = move _6 as &[&str] (Pointer(Unsize))
77 5:34-5:46: @0[17]: _14 = &_1
78 5:5-5:48: @0[18]: _13 = (move _14,)
79 5:5-5:48: @0[20]: FakeRead(ForMatchedPlace, _13)
80 5:5-5:48: @0[22]: _15 = (_13.0: &u32)
81 5:5-5:48: @0[25]: _17 = &(*_15)
82 5:5-5:48: @0[27]: _18 = <u32 as std::fmt::Display>::fmt as for<'r, 's, 't0> fn(&'r u32, &'s mut std::fmt::Formatter<'t0>) -> std::result::Result<(), std::fmt::Error> (Pointer(ReifyFnPointer))
83 5:5-5:48: @0.Call: _16 = ArgumentV1::new::<u32>(move _17, move _18) -> [return: bb1, unwind: bb12]
84 5:5-5:48: @1[2]: _12 = [move _16]
85 5:5-5:48: @1[5]: _11 = &_12
86 5:5-5:48: @1[6]: _10 = &(*_11)
87 5:5-5:48: @1[7]: _9 = move _10 as &[std::fmt::ArgumentV1] (Pointer(Unsize))
88 5:5-5:48: @1.Call: _4 = Arguments::new_v1(move _5, move _9) -> [return: bb2, unwind: bb12]
89 5:5-5:48: @2.Call: _3 = _print(move _4) -> [return: bb3, unwind: bb12]
90 5:5-5:48: @3[6]: _2 = const ()"><span class=
"annotation">@
0,
1,
2,
3,
4⦊
</span>println!(
"does 1 + 1 = {}?", one_plus_one);
<span class=
"annotation">⦉@
0,
1,
2,
3,
4</span></span></span><span class=
"code" style=
"--layer: 0"></span></span>
91 <span class=
"line"><span class=
"code" style=
"--layer: 0"> assert_eq!(
</span><span><span class=
"code even" style=
"--layer: 1" title=
"6:16-6:21: @3[11]: _23 = CheckedAdd(const 1_u32, const 1_u32)"><span class=
"annotation">@
0,
1,
2,
3,
4⦊
</span>1 +
1<span class=
"annotation">⦉@
0,
1,
2,
3,
4</span></span></span><span class=
"code" style=
"--layer: 0">, one_plus_one,
</span><span><span class=
"code odd" style=
"--layer: 1" title=
"6:37-6:61: @5[28]: _70 = const might_fail_assert::promoted[1]
92 6:37-6:61: @5[29]: _50 = &(*_70)
93 6:37-6:61: @5[30]: _49 = &(*_50)
94 6:37-6:61: @5[31]: _48 = move _49 as &[&str] (Pointer(Unsize))"><span class=
"annotation">@
5,
7,
8,
9,
10,
11⦊
</span>"the argument was wrong"<span class=
"annotation">⦉@
5,
7,
8,
9,
10,
11</span></span></span><span class=
"code" style=
"--layer: 0">);
</span></span>
95 <span class=
"line"><span class=
"code" style=
"--layer: 0">}
</span><span><span class=
"code even" style=
"--layer: 1" title=
"7:2-7:2: @6.Return: return"><span class=
"annotation">@
6⦊
</span>‸
<span class=
"annotation">⦉@
6</span></span></span></span></div>