]> git.lizzy.rs Git - rust.git/blob - tests/ui/dbg_macro.stderr
Merge remote-tracking branch 'origin/beta_backport' into HEAD
[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 help: ensure to avoid having uses of it in version control
19    |
20 LL |     if n <= 1 {
21    |        ^^^^^^
22
23 error: `dbg!` macro is intended as a debugging tool
24   --> $DIR/dbg_macro.rs:13:9
25    |
26 LL |         dbg!(1)
27    |         ^^^^^^^
28 help: ensure to avoid having uses of it in version control
29    |
30 LL |         1
31    |
32
33 error: `dbg!` macro is intended as a debugging tool
34   --> $DIR/dbg_macro.rs:15:9
35    |
36 LL |         dbg!(n * factorial(n - 1))
37    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
38 help: ensure to avoid having uses of it in version control
39    |
40 LL |         n * factorial(n - 1)
41    |
42
43 error: `dbg!` macro is intended as a debugging tool
44   --> $DIR/dbg_macro.rs:20:5
45    |
46 LL |     dbg!(42);
47    |     ^^^^^^^^
48 help: ensure to avoid having uses of it in version control
49    |
50 LL |     42;
51    |     ^^
52
53 error: `dbg!` macro is intended as a debugging tool
54   --> $DIR/dbg_macro.rs:21:5
55    |
56 LL |     dbg!(dbg!(dbg!(42)));
57    |     ^^^^^^^^^^^^^^^^^^^^
58 help: ensure to avoid having uses of it in version control
59    |
60 LL |     dbg!(dbg!(42));
61    |     ^^^^^^^^^^^^^^
62
63 error: `dbg!` macro is intended as a debugging tool
64   --> $DIR/dbg_macro.rs:22:14
65    |
66 LL |     foo(3) + dbg!(factorial(4));
67    |              ^^^^^^^^^^^^^^^^^^
68 help: ensure to avoid having uses of it in version control
69    |
70 LL |     foo(3) + factorial(4);
71    |              ^^^^^^^^^^^^
72
73 error: aborting due to 7 previous errors
74