]> git.lizzy.rs Git - rust.git/blob - tests/ui/dbg_macro.stderr
Auto merge of #68717 - petrochenkov:stabexpat, r=varkor
[rust.git] / tests / ui / dbg_macro.stderr
1 error: `dbg!` macro is intended as a debugging tool
2   --> $DIR/dbg_macro.rs:4:22
3    |
4 LL |     if let Some(n) = dbg!(n.checked_sub(4)) {
5    |                      ^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::dbg-macro` implied by `-D warnings`
8 help: ensure to avoid having uses of it in version control
9    |
10 LL |     if let Some(n) = n.checked_sub(4) {
11    |                      ^^^^^^^^^^^^^^^^
12
13 error: `dbg!` macro is intended as a debugging tool
14   --> $DIR/dbg_macro.rs:12:8
15    |
16 LL |     if dbg!(n <= 1) {
17    |        ^^^^^^^^^^^^
18    |
19 help: ensure to avoid having uses of it in version control
20    |
21 LL |     if n <= 1 {
22    |        ^^^^^^
23
24 error: `dbg!` macro is intended as a debugging tool
25   --> $DIR/dbg_macro.rs:13:9
26    |
27 LL |         dbg!(1)
28    |         ^^^^^^^
29    |
30 help: ensure to avoid having uses of it in version control
31    |
32 LL |         1
33    |
34
35 error: `dbg!` macro is intended as a debugging tool
36   --> $DIR/dbg_macro.rs:15:9
37    |
38 LL |         dbg!(n * factorial(n - 1))
39    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
40    |
41 help: ensure to avoid having uses of it in version control
42    |
43 LL |         n * factorial(n - 1)
44    |
45
46 error: `dbg!` macro is intended as a debugging tool
47   --> $DIR/dbg_macro.rs:20:5
48    |
49 LL |     dbg!(42);
50    |     ^^^^^^^^
51    |
52 help: ensure to avoid having uses of it in version control
53    |
54 LL |     42;
55    |     ^^
56
57 error: `dbg!` macro is intended as a debugging tool
58   --> $DIR/dbg_macro.rs:21:5
59    |
60 LL |     dbg!(dbg!(dbg!(42)));
61    |     ^^^^^^^^^^^^^^^^^^^^
62    |
63 help: ensure to avoid having uses of it in version control
64    |
65 LL |     dbg!(dbg!(42));
66    |     ^^^^^^^^^^^^^^
67
68 error: `dbg!` macro is intended as a debugging tool
69   --> $DIR/dbg_macro.rs:22:14
70    |
71 LL |     foo(3) + dbg!(factorial(4));
72    |              ^^^^^^^^^^^^^^^^^^
73    |
74 help: ensure to avoid having uses of it in version control
75    |
76 LL |     foo(3) + factorial(4);
77    |              ^^^^^^^^^^^^
78
79 error: aborting due to 7 previous errors
80