fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: used `assert_eq!` with a literal bool 2 --> $DIR/bool_assert_comparison.rs:87:5 3 | 4LL | assert_eq!("a".is_empty(), false); 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | 7 = note: `-D clippy::bool-assert-comparison` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::bool_assert_comparison)]` 9help: replace it with `assert!(..)` 10 | 11LL - assert_eq!("a".is_empty(), false); 12LL + assert!(!"a".is_empty()); 13 | 14 15error: used `assert_eq!` with a literal bool 16 --> $DIR/bool_assert_comparison.rs:88:5 17 | 18LL | assert_eq!("".is_empty(), true); 19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20 | 21help: replace it with `assert!(..)` 22 | 23LL - assert_eq!("".is_empty(), true); 24LL + assert!("".is_empty()); 25 | 26 27error: used `assert_eq!` with a literal bool 28 --> $DIR/bool_assert_comparison.rs:89:5 29 | 30LL | assert_eq!(true, "".is_empty()); 31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 32 | 33help: replace it with `assert!(..)` 34 | 35LL - assert_eq!(true, "".is_empty()); 36LL + assert!("".is_empty()); 37 | 38 39error: used `assert_eq!` with a literal bool 40 --> $DIR/bool_assert_comparison.rs:94:5 41 | 42LL | assert_eq!(b, true); 43 | ^^^^^^^^^^^^^^^^^^^ 44 | 45help: replace it with `assert!(..)` 46 | 47LL - assert_eq!(b, true); 48LL + assert!(b); 49 | 50 51error: used `assert_ne!` with a literal bool 52 --> $DIR/bool_assert_comparison.rs:97:5 53 | 54LL | assert_ne!("a".is_empty(), false); 55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 56 | 57help: replace it with `assert!(..)` 58 | 59LL - assert_ne!("a".is_empty(), false); 60LL + assert!("a".is_empty()); 61 | 62 63error: used `assert_ne!` with a literal bool 64 --> $DIR/bool_assert_comparison.rs:98:5 65 | 66LL | assert_ne!("".is_empty(), true); 67 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 68 | 69help: replace it with `assert!(..)` 70 | 71LL - assert_ne!("".is_empty(), true); 72LL + assert!(!"".is_empty()); 73 | 74 75error: used `assert_ne!` with a literal bool 76 --> $DIR/bool_assert_comparison.rs:99:5 77 | 78LL | assert_ne!(true, "".is_empty()); 79 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 80 | 81help: replace it with `assert!(..)` 82 | 83LL - assert_ne!(true, "".is_empty()); 84LL + assert!(!"".is_empty()); 85 | 86 87error: used `assert_ne!` with a literal bool 88 --> $DIR/bool_assert_comparison.rs:104:5 89 | 90LL | assert_ne!(b, true); 91 | ^^^^^^^^^^^^^^^^^^^ 92 | 93help: replace it with `assert!(..)` 94 | 95LL - assert_ne!(b, true); 96LL + assert!(!b); 97 | 98 99error: used `debug_assert_eq!` with a literal bool 100 --> $DIR/bool_assert_comparison.rs:107:5 101 | 102LL | debug_assert_eq!("a".is_empty(), false); 103 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 104 | 105help: replace it with `debug_assert!(..)` 106 | 107LL - debug_assert_eq!("a".is_empty(), false); 108LL + debug_assert!(!"a".is_empty()); 109 | 110 111error: used `debug_assert_eq!` with a literal bool 112 --> $DIR/bool_assert_comparison.rs:108:5 113 | 114LL | debug_assert_eq!("".is_empty(), true); 115 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 116 | 117help: replace it with `debug_assert!(..)` 118 | 119LL - debug_assert_eq!("".is_empty(), true); 120LL + debug_assert!("".is_empty()); 121 | 122 123error: used `debug_assert_eq!` with a literal bool 124 --> $DIR/bool_assert_comparison.rs:109:5 125 | 126LL | debug_assert_eq!(true, "".is_empty()); 127 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 128 | 129help: replace it with `debug_assert!(..)` 130 | 131LL - debug_assert_eq!(true, "".is_empty()); 132LL + debug_assert!("".is_empty()); 133 | 134 135error: used `debug_assert_eq!` with a literal bool 136 --> $DIR/bool_assert_comparison.rs:114:5 137 | 138LL | debug_assert_eq!(b, true); 139 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 140 | 141help: replace it with `debug_assert!(..)` 142 | 143LL - debug_assert_eq!(b, true); 144LL + debug_assert!(b); 145 | 146 147error: used `debug_assert_ne!` with a literal bool 148 --> $DIR/bool_assert_comparison.rs:117:5 149 | 150LL | debug_assert_ne!("a".is_empty(), false); 151 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 152 | 153help: replace it with `debug_assert!(..)` 154 | 155LL - debug_assert_ne!("a".is_empty(), false); 156LL + debug_assert!("a".is_empty()); 157 | 158 159error: used `debug_assert_ne!` with a literal bool 160 --> $DIR/bool_assert_comparison.rs:118:5 161 | 162LL | debug_assert_ne!("".is_empty(), true); 163 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 164 | 165help: replace it with `debug_assert!(..)` 166 | 167LL - debug_assert_ne!("".is_empty(), true); 168LL + debug_assert!(!"".is_empty()); 169 | 170 171error: used `debug_assert_ne!` with a literal bool 172 --> $DIR/bool_assert_comparison.rs:119:5 173 | 174LL | debug_assert_ne!(true, "".is_empty()); 175 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 176 | 177help: replace it with `debug_assert!(..)` 178 | 179LL - debug_assert_ne!(true, "".is_empty()); 180LL + debug_assert!(!"".is_empty()); 181 | 182 183error: used `debug_assert_ne!` with a literal bool 184 --> $DIR/bool_assert_comparison.rs:124:5 185 | 186LL | debug_assert_ne!(b, true); 187 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 188 | 189help: replace it with `debug_assert!(..)` 190 | 191LL - debug_assert_ne!(b, true); 192LL + debug_assert!(!b); 193 | 194 195error: used `assert_eq!` with a literal bool 196 --> $DIR/bool_assert_comparison.rs:129:5 197 | 198LL | assert_eq!("a".is_empty(), false, "tadam {}", 1); 199 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 200 | 201help: replace it with `assert!(..)` 202 | 203LL - assert_eq!("a".is_empty(), false, "tadam {}", 1); 204LL + assert!(!"a".is_empty(), "tadam {}", 1); 205 | 206 207error: used `assert_eq!` with a literal bool 208 --> $DIR/bool_assert_comparison.rs:130:5 209 | 210LL | assert_eq!("a".is_empty(), false, "tadam {}", true); 211 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 212 | 213help: replace it with `assert!(..)` 214 | 215LL - assert_eq!("a".is_empty(), false, "tadam {}", true); 216LL + assert!(!"a".is_empty(), "tadam {}", true); 217 | 218 219error: used `assert_eq!` with a literal bool 220 --> $DIR/bool_assert_comparison.rs:131:5 221 | 222LL | assert_eq!(false, "a".is_empty(), "tadam {}", true); 223 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 224 | 225help: replace it with `assert!(..)` 226 | 227LL - assert_eq!(false, "a".is_empty(), "tadam {}", true); 228LL + assert!(!"a".is_empty(), "tadam {}", true); 229 | 230 231error: used `debug_assert_eq!` with a literal bool 232 --> $DIR/bool_assert_comparison.rs:136:5 233 | 234LL | debug_assert_eq!("a".is_empty(), false, "tadam {}", 1); 235 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 236 | 237help: replace it with `debug_assert!(..)` 238 | 239LL - debug_assert_eq!("a".is_empty(), false, "tadam {}", 1); 240LL + debug_assert!(!"a".is_empty(), "tadam {}", 1); 241 | 242 243error: used `debug_assert_eq!` with a literal bool 244 --> $DIR/bool_assert_comparison.rs:137:5 245 | 246LL | debug_assert_eq!("a".is_empty(), false, "tadam {}", true); 247 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 248 | 249help: replace it with `debug_assert!(..)` 250 | 251LL - debug_assert_eq!("a".is_empty(), false, "tadam {}", true); 252LL + debug_assert!(!"a".is_empty(), "tadam {}", true); 253 | 254 255error: used `debug_assert_eq!` with a literal bool 256 --> $DIR/bool_assert_comparison.rs:138:5 257 | 258LL | debug_assert_eq!(false, "a".is_empty(), "tadam {}", true); 259 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 260 | 261help: replace it with `debug_assert!(..)` 262 | 263LL - debug_assert_eq!(false, "a".is_empty(), "tadam {}", true); 264LL + debug_assert!(!"a".is_empty(), "tadam {}", true); 265 | 266 267error: used `assert_eq!` with a literal bool 268 --> $DIR/bool_assert_comparison.rs:141:5 269 | 270LL | assert_eq!(a!(), true); 271 | ^^^^^^^^^^^^^^^^^^^^^^ 272 | 273help: replace it with `assert!(..)` 274 | 275LL - assert_eq!(a!(), true); 276LL + assert!(a!()); 277 | 278 279error: used `assert_eq!` with a literal bool 280 --> $DIR/bool_assert_comparison.rs:142:5 281 | 282LL | assert_eq!(true, b!()); 283 | ^^^^^^^^^^^^^^^^^^^^^^ 284 | 285help: replace it with `assert!(..)` 286 | 287LL - assert_eq!(true, b!()); 288LL + assert!(b!()); 289 | 290 291error: used `debug_assert_eq!` with a literal bool 292 --> $DIR/bool_assert_comparison.rs:146:5 293 | 294LL | renamed!(b, true); 295 | ^^^^^^^^^^^^^^^^^ 296 | 297help: replace it with `debug_assert!(..)` 298 | 299LL - renamed!(b, true); 300LL + debug_assert!(b); 301 | 302 303error: used `assert_eq!` with a literal bool 304 --> $DIR/bool_assert_comparison.rs:160:5 305 | 306LL | assert_eq!("".is_empty(), true); 307 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 308 | 309help: replace it with `assert!(..)` 310 | 311LL - assert_eq!("".is_empty(), true); 312LL + assert!("".is_empty()); 313 | 314 315error: used `assert_ne!` with a literal bool 316 --> $DIR/bool_assert_comparison.rs:161:5 317 | 318LL | assert_ne!("".is_empty(), false); 319 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 320 | 321help: replace it with `assert!(..)` 322 | 323LL - assert_ne!("".is_empty(), false); 324LL + assert!("".is_empty()); 325 | 326 327error: used `assert_ne!` with a literal bool 328 --> $DIR/bool_assert_comparison.rs:162:5 329 | 330LL | assert_ne!("requires negation".is_empty(), true); 331 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 332 | 333help: replace it with `assert!(..)` 334 | 335LL - assert_ne!("requires negation".is_empty(), true); 336LL + assert!(!"requires negation".is_empty()); 337 | 338 339error: used `assert_eq!` with a literal bool 340 --> $DIR/bool_assert_comparison.rs:163:5 341 | 342LL | assert_eq!("requires negation".is_empty(), false); 343 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 344 | 345help: replace it with `assert!(..)` 346 | 347LL - assert_eq!("requires negation".is_empty(), false); 348LL + assert!(!"requires negation".is_empty()); 349 | 350 351error: used `debug_assert_eq!` with a literal bool 352 --> $DIR/bool_assert_comparison.rs:165:5 353 | 354LL | debug_assert_eq!("".is_empty(), true); 355 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 356 | 357help: replace it with `debug_assert!(..)` 358 | 359LL - debug_assert_eq!("".is_empty(), true); 360LL + debug_assert!("".is_empty()); 361 | 362 363error: used `debug_assert_ne!` with a literal bool 364 --> $DIR/bool_assert_comparison.rs:166:5 365 | 366LL | debug_assert_ne!("".is_empty(), false); 367 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 368 | 369help: replace it with `debug_assert!(..)` 370 | 371LL - debug_assert_ne!("".is_empty(), false); 372LL + debug_assert!("".is_empty()); 373 | 374 375error: used `debug_assert_ne!` with a literal bool 376 --> $DIR/bool_assert_comparison.rs:167:5 377 | 378LL | debug_assert_ne!("requires negation".is_empty(), true); 379 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 380 | 381help: replace it with `debug_assert!(..)` 382 | 383LL - debug_assert_ne!("requires negation".is_empty(), true); 384LL + debug_assert!(!"requires negation".is_empty()); 385 | 386 387error: used `debug_assert_eq!` with a literal bool 388 --> $DIR/bool_assert_comparison.rs:168:5 389 | 390LL | debug_assert_eq!("requires negation".is_empty(), false); 391 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 392 | 393help: replace it with `debug_assert!(..)` 394 | 395LL - debug_assert_eq!("requires negation".is_empty(), false); 396LL + debug_assert!(!"requires negation".is_empty()); 397 | 398 399error: aborting due to 33 previous errors 400