fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: the `dbg!` macro is intended as a debugging tool 2 --> $DIR/dbg_macro.rs:6:22 3 | 4LL | if let Some(n) = dbg!(n.checked_sub(4)) { n } else { n } 5 | ^^^^^^^^^^^^^^^^^^^^^^ 6 | 7 = note: `-D clippy::dbg-macro` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::dbg_macro)]` 9help: remove the invocation before committing it to a version control system 10 | 11LL | if let Some(n) = n.checked_sub(4) { n } else { n } 12 | ~~~~~~~~~~~~~~~~ 13 14error: the `dbg!` macro is intended as a debugging tool 15 --> $DIR/dbg_macro.rs:13:8 16 | 17LL | if dbg!(n <= 1) { 18 | ^^^^^^^^^^^^ 19 | 20help: remove the invocation before committing it to a version control system 21 | 22LL | if n <= 1 { 23 | ~~~~~~ 24 25error: the `dbg!` macro is intended as a debugging tool 26 --> $DIR/dbg_macro.rs:15:9 27 | 28LL | dbg!(1) 29 | ^^^^^^^ 30 | 31help: remove the invocation before committing it to a version control system 32 | 33LL | 1 34 | 35 36error: the `dbg!` macro is intended as a debugging tool 37 --> $DIR/dbg_macro.rs:18:9 38 | 39LL | dbg!(n * factorial(n - 1)) 40 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 41 | 42help: remove the invocation before committing it to a version control system 43 | 44LL | n * factorial(n - 1) 45 | 46 47error: the `dbg!` macro is intended as a debugging tool 48 --> $DIR/dbg_macro.rs:24:5 49 | 50LL | dbg!(42); 51 | ^^^^^^^^ 52 | 53help: remove the invocation before committing it to a version control system 54 | 55LL | 42; 56 | ~~ 57 58error: the `dbg!` macro is intended as a debugging tool 59 --> $DIR/dbg_macro.rs:26:5 60 | 61LL | dbg!(dbg!(dbg!(42))); 62 | ^^^^^^^^^^^^^^^^^^^^ 63 | 64help: remove the invocation before committing it to a version control system 65 | 66LL | dbg!(dbg!(42)); 67 | ~~~~~~~~~~~~~~ 68 69error: the `dbg!` macro is intended as a debugging tool 70 --> $DIR/dbg_macro.rs:28:14 71 | 72LL | foo(3) + dbg!(factorial(4)); 73 | ^^^^^^^^^^^^^^^^^^ 74 | 75help: remove the invocation before committing it to a version control system 76 | 77LL | foo(3) + factorial(4); 78 | ~~~~~~~~~~~~ 79 80error: the `dbg!` macro is intended as a debugging tool 81 --> $DIR/dbg_macro.rs:30:5 82 | 83LL | dbg!(1, 2, dbg!(3, 4)); 84 | ^^^^^^^^^^^^^^^^^^^^^^ 85 | 86help: remove the invocation before committing it to a version control system 87 | 88LL | (1, 2, dbg!(3, 4)); 89 | ~~~~~~~~~~~~~~~~~~ 90 91error: the `dbg!` macro is intended as a debugging tool 92 --> $DIR/dbg_macro.rs:32:5 93 | 94LL | dbg!(1, 2, 3, 4, 5); 95 | ^^^^^^^^^^^^^^^^^^^ 96 | 97help: remove the invocation before committing it to a version control system 98 | 99LL | (1, 2, 3, 4, 5); 100 | ~~~~~~~~~~~~~~~ 101 102error: the `dbg!` macro is intended as a debugging tool 103 --> $DIR/dbg_macro.rs:53:5 104 | 105LL | dbg!(); 106 | ^^^^^^^ 107 | 108help: remove the invocation before committing it to a version control system 109 | 110LL - dbg!(); 111LL + 112 | 113 114error: the `dbg!` macro is intended as a debugging tool 115 --> $DIR/dbg_macro.rs:56:13 116 | 117LL | let _ = dbg!(); 118 | ^^^^^^ 119 | 120help: remove the invocation before committing it to a version control system 121 | 122LL | let _ = (); 123 | ~~ 124 125error: the `dbg!` macro is intended as a debugging tool 126 --> $DIR/dbg_macro.rs:58:9 127 | 128LL | bar(dbg!()); 129 | ^^^^^^ 130 | 131help: remove the invocation before committing it to a version control system 132 | 133LL | bar(()); 134 | ~~ 135 136error: the `dbg!` macro is intended as a debugging tool 137 --> $DIR/dbg_macro.rs:60:10 138 | 139LL | foo!(dbg!()); 140 | ^^^^^^ 141 | 142help: remove the invocation before committing it to a version control system 143 | 144LL | foo!(()); 145 | ~~ 146 147error: the `dbg!` macro is intended as a debugging tool 148 --> $DIR/dbg_macro.rs:62:16 149 | 150LL | foo2!(foo!(dbg!())); 151 | ^^^^^^ 152 | 153help: remove the invocation before committing it to a version control system 154 | 155LL | foo2!(foo!(())); 156 | ~~ 157 158error: the `dbg!` macro is intended as a debugging tool 159 --> $DIR/dbg_macro.rs:84:9 160 | 161LL | dbg!(2); 162 | ^^^^^^^ 163 | 164help: remove the invocation before committing it to a version control system 165 | 166LL | 2; 167 | ~ 168 169error: the `dbg!` macro is intended as a debugging tool 170 --> $DIR/dbg_macro.rs:91:5 171 | 172LL | dbg!(1); 173 | ^^^^^^^ 174 | 175help: remove the invocation before committing it to a version control system 176 | 177LL | 1; 178 | ~ 179 180error: the `dbg!` macro is intended as a debugging tool 181 --> $DIR/dbg_macro.rs:97:5 182 | 183LL | dbg!(1); 184 | ^^^^^^^ 185 | 186help: remove the invocation before committing it to a version control system 187 | 188LL | 1; 189 | ~ 190 191error: the `dbg!` macro is intended as a debugging tool 192 --> $DIR/dbg_macro.rs:104:9 193 | 194LL | dbg!(1); 195 | ^^^^^^^ 196 | 197help: remove the invocation before committing it to a version control system 198 | 199LL | 1; 200 | ~ 201 202error: aborting due to 18 previous errors 203