fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: `assert!(true)` will be optimized out by the compiler 2 --> $DIR/assertions_on_constants.rs:10:5 3 | 4LL | assert!(true); 5 | ^^^^^^^^^^^^^ 6 | 7 = help: remove it 8 = note: `-D clippy::assertions-on-constants` implied by `-D warnings` 9 = help: to override `-D warnings` add `#[allow(clippy::assertions_on_constants)]` 10 11error: `assert!(false)` should probably be replaced 12 --> $DIR/assertions_on_constants.rs:12:5 13 | 14LL | assert!(false); 15 | ^^^^^^^^^^^^^^ 16 | 17 = help: use `panic!()` or `unreachable!()` 18 19error: `assert!(true)` will be optimized out by the compiler 20 --> $DIR/assertions_on_constants.rs:14:5 21 | 22LL | assert!(true, "true message"); 23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 24 | 25 = help: remove it 26 27error: `assert!(false, ..)` should probably be replaced 28 --> $DIR/assertions_on_constants.rs:16:5 29 | 30LL | assert!(false, "false message"); 31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 32 | 33 = help: use `panic!(..)` or `unreachable!(..)` 34 35error: `assert!(false, ..)` should probably be replaced 36 --> $DIR/assertions_on_constants.rs:20:5 37 | 38LL | assert!(false, "{}", msg.to_uppercase()); 39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 40 | 41 = help: use `panic!(..)` or `unreachable!(..)` 42 43error: `assert!(true)` will be optimized out by the compiler 44 --> $DIR/assertions_on_constants.rs:24:5 45 | 46LL | assert!(B); 47 | ^^^^^^^^^^ 48 | 49 = help: remove it 50 51error: `assert!(false)` should probably be replaced 52 --> $DIR/assertions_on_constants.rs:28:5 53 | 54LL | assert!(C); 55 | ^^^^^^^^^^ 56 | 57 = help: use `panic!()` or `unreachable!()` 58 59error: `assert!(false, ..)` should probably be replaced 60 --> $DIR/assertions_on_constants.rs:30:5 61 | 62LL | assert!(C, "C message"); 63 | ^^^^^^^^^^^^^^^^^^^^^^^ 64 | 65 = help: use `panic!(..)` or `unreachable!(..)` 66 67error: `debug_assert!(true)` will be optimized out by the compiler 68 --> $DIR/assertions_on_constants.rs:33:5 69 | 70LL | debug_assert!(true); 71 | ^^^^^^^^^^^^^^^^^^^ 72 | 73 = help: remove it 74 75error: aborting due to 9 previous errors 76