fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error: attempt to divide with overflow 2 --> $DIR/issue-8460-const.rs:9:36 3 | 4LL | assert!(thread::spawn(move|| { isize::MIN / -1; }).join().is_err()); 5 | ^^^^^^^^^^^^^^^ 6 | 7note: lint level defined here 8 --> $DIR/issue-8460-const.rs:3:9 9 | 10LL | #![deny(const_err)] 11 | ^^^^^^^^^ 12 13error: this expression will panic at runtime 14 --> $DIR/issue-8460-const.rs:9:36 15 | 16LL | assert!(thread::spawn(move|| { isize::MIN / -1; }).join().is_err()); 17 | ^^^^^^^^^^^^^^^ attempt to divide with overflow 18 19error: attempt to divide with overflow 20 --> $DIR/issue-8460-const.rs:12:36 21 | 22LL | assert!(thread::spawn(move|| { i8::MIN / -1; }).join().is_err()); 23 | ^^^^^^^^^^^^ 24 25error: this expression will panic at runtime 26 --> $DIR/issue-8460-const.rs:12:36 27 | 28LL | assert!(thread::spawn(move|| { i8::MIN / -1; }).join().is_err()); 29 | ^^^^^^^^^^^^ attempt to divide with overflow 30 31error: attempt to divide with overflow 32 --> $DIR/issue-8460-const.rs:15:36 33 | 34LL | assert!(thread::spawn(move|| { i16::MIN / -1; }).join().is_err()); 35 | ^^^^^^^^^^^^^ 36 37error: this expression will panic at runtime 38 --> $DIR/issue-8460-const.rs:15:36 39 | 40LL | assert!(thread::spawn(move|| { i16::MIN / -1; }).join().is_err()); 41 | ^^^^^^^^^^^^^ attempt to divide with overflow 42 43error: attempt to divide with overflow 44 --> $DIR/issue-8460-const.rs:18:36 45 | 46LL | assert!(thread::spawn(move|| { i32::MIN / -1; }).join().is_err()); 47 | ^^^^^^^^^^^^^ 48 49error: this expression will panic at runtime 50 --> $DIR/issue-8460-const.rs:18:36 51 | 52LL | assert!(thread::spawn(move|| { i32::MIN / -1; }).join().is_err()); 53 | ^^^^^^^^^^^^^ attempt to divide with overflow 54 55error: attempt to divide with overflow 56 --> $DIR/issue-8460-const.rs:21:36 57 | 58LL | assert!(thread::spawn(move|| { i64::MIN / -1; }).join().is_err()); 59 | ^^^^^^^^^^^^^ 60 61error: this expression will panic at runtime 62 --> $DIR/issue-8460-const.rs:21:36 63 | 64LL | assert!(thread::spawn(move|| { i64::MIN / -1; }).join().is_err()); 65 | ^^^^^^^^^^^^^ attempt to divide with overflow 66 67error: attempt to divide by zero 68 --> $DIR/issue-8460-const.rs:24:36 69 | 70LL | assert!(thread::spawn(move|| { 1isize / 0; }).join().is_err()); 71 | ^^^^^^^^^^ 72 73error: attempt to divide by zero 74 --> $DIR/issue-8460-const.rs:26:36 75 | 76LL | assert!(thread::spawn(move|| { 1i8 / 0; }).join().is_err()); 77 | ^^^^^^^ 78 79error: attempt to divide by zero 80 --> $DIR/issue-8460-const.rs:28:36 81 | 82LL | assert!(thread::spawn(move|| { 1i16 / 0; }).join().is_err()); 83 | ^^^^^^^^ 84 85error: attempt to divide by zero 86 --> $DIR/issue-8460-const.rs:30:36 87 | 88LL | assert!(thread::spawn(move|| { 1i32 / 0; }).join().is_err()); 89 | ^^^^^^^^ 90 91error: attempt to divide by zero 92 --> $DIR/issue-8460-const.rs:32:36 93 | 94LL | assert!(thread::spawn(move|| { 1i64 / 0; }).join().is_err()); 95 | ^^^^^^^^ 96 97error: attempt to calculate the remainder with overflow 98 --> $DIR/issue-8460-const.rs:34:36 99 | 100LL | assert!(thread::spawn(move|| { isize::MIN % -1; }).join().is_err()); 101 | ^^^^^^^^^^^^^^^ 102 103error: this expression will panic at runtime 104 --> $DIR/issue-8460-const.rs:34:36 105 | 106LL | assert!(thread::spawn(move|| { isize::MIN % -1; }).join().is_err()); 107 | ^^^^^^^^^^^^^^^ attempt to calculate the remainder with overflow 108 109error: attempt to calculate the remainder with overflow 110 --> $DIR/issue-8460-const.rs:37:36 111 | 112LL | assert!(thread::spawn(move|| { i8::MIN % -1; }).join().is_err()); 113 | ^^^^^^^^^^^^ 114 115error: this expression will panic at runtime 116 --> $DIR/issue-8460-const.rs:37:36 117 | 118LL | assert!(thread::spawn(move|| { i8::MIN % -1; }).join().is_err()); 119 | ^^^^^^^^^^^^ attempt to calculate the remainder with overflow 120 121error: attempt to calculate the remainder with overflow 122 --> $DIR/issue-8460-const.rs:40:36 123 | 124LL | assert!(thread::spawn(move|| { i16::MIN % -1; }).join().is_err()); 125 | ^^^^^^^^^^^^^ 126 127error: this expression will panic at runtime 128 --> $DIR/issue-8460-const.rs:40:36 129 | 130LL | assert!(thread::spawn(move|| { i16::MIN % -1; }).join().is_err()); 131 | ^^^^^^^^^^^^^ attempt to calculate the remainder with overflow 132 133error: attempt to calculate the remainder with overflow 134 --> $DIR/issue-8460-const.rs:43:36 135 | 136LL | assert!(thread::spawn(move|| { i32::MIN % -1; }).join().is_err()); 137 | ^^^^^^^^^^^^^ 138 139error: this expression will panic at runtime 140 --> $DIR/issue-8460-const.rs:43:36 141 | 142LL | assert!(thread::spawn(move|| { i32::MIN % -1; }).join().is_err()); 143 | ^^^^^^^^^^^^^ attempt to calculate the remainder with overflow 144 145error: attempt to calculate the remainder with overflow 146 --> $DIR/issue-8460-const.rs:46:36 147 | 148LL | assert!(thread::spawn(move|| { i64::MIN % -1; }).join().is_err()); 149 | ^^^^^^^^^^^^^ 150 151error: this expression will panic at runtime 152 --> $DIR/issue-8460-const.rs:46:36 153 | 154LL | assert!(thread::spawn(move|| { i64::MIN % -1; }).join().is_err()); 155 | ^^^^^^^^^^^^^ attempt to calculate the remainder with overflow 156 157error: attempt to calculate the remainder with a divisor of zero 158 --> $DIR/issue-8460-const.rs:49:36 159 | 160LL | assert!(thread::spawn(move|| { 1isize % 0; }).join().is_err()); 161 | ^^^^^^^^^^ 162 163error: attempt to calculate the remainder with a divisor of zero 164 --> $DIR/issue-8460-const.rs:51:36 165 | 166LL | assert!(thread::spawn(move|| { 1i8 % 0; }).join().is_err()); 167 | ^^^^^^^ 168 169error: attempt to calculate the remainder with a divisor of zero 170 --> $DIR/issue-8460-const.rs:53:36 171 | 172LL | assert!(thread::spawn(move|| { 1i16 % 0; }).join().is_err()); 173 | ^^^^^^^^ 174 175error: attempt to calculate the remainder with a divisor of zero 176 --> $DIR/issue-8460-const.rs:55:36 177 | 178LL | assert!(thread::spawn(move|| { 1i32 % 0; }).join().is_err()); 179 | ^^^^^^^^ 180 181error: attempt to calculate the remainder with a divisor of zero 182 --> $DIR/issue-8460-const.rs:57:36 183 | 184LL | assert!(thread::spawn(move|| { 1i64 % 0; }).join().is_err()); 185 | ^^^^^^^^ 186 187error: aborting due to 30 previous errors 188