Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always structurally resolve coercion target #131483

Closed

Conversation

compiler-errors
Copy link
Member

This is morally a no-op. We have a few callsites that manually call resolve_vars_with_obligations before coercion, so let's not do that and just always structurally resolve in the coerce function itself.

r? lcnr

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 10, 2024
@rust-log-analyzer

This comment has been minimized.

@rustbot rustbot added the WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver) label Oct 10, 2024
@lcnr
Copy link
Contributor

lcnr commented Oct 10, 2024

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Oct 10, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 10, 2024
Always structurally resolve coercion target

This is morally a no-op. We have a few callsites that manually call `resolve_vars_with_obligations` before coercion, so let's not do that and just always structurally resolve in the coerce function itself.

r? lcnr
@bors
Copy link
Contributor

bors commented Oct 10, 2024

⌛ Trying commit 95e2707 with merge 3976ff6...

@bors
Copy link
Contributor

bors commented Oct 10, 2024

☀️ Try build successful - checks-actions
Build commit: 3976ff6 (3976ff69dda5b01dabe655dc91f3df9a026f339a)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (3976ff6): comparison URL.

Overall result: ❌ regressions - please read the text below

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please fix the regressions and do another perf run. If the next run shows neutral or positive results, the label will be automatically removed.

@bors rollup=never
@rustbot label: -S-waiting-on-perf +perf-regression

Instruction count

This is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.

mean range count
Regressions ❌
(primary)
0.6% [0.4%, 0.9%] 5
Regressions ❌
(secondary)
0.5% [0.5%, 0.5%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.6% [0.4%, 0.9%] 5

Max RSS (memory usage)

Results (primary 0.1%, secondary 2.6%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
1.5% [1.4%, 1.6%] 2
Regressions ❌
(secondary)
2.6% [2.6%, 2.6%] 1
Improvements ✅
(primary)
-2.7% [-2.7%, -2.7%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.1% [-2.7%, 1.6%] 3

Cycles

This benchmark run did not return any relevant results for this metric.

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 774.605s -> 775.687s (0.14%)
Artifact size: 329.57 MiB -> 329.53 MiB (-0.01%)

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Oct 10, 2024
@compiler-errors
Copy link
Member Author

image

@compiler-errors
Copy link
Member Author

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Oct 11, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 11, 2024
Always structurally resolve coercion target

This is morally a no-op. We have a few callsites that manually call `resolve_vars_with_obligations` before coercion, so let's not do that and just always structurally resolve in the coerce function itself.

r? lcnr
@bors
Copy link
Contributor

bors commented Oct 11, 2024

⌛ Trying commit 234cb7b with merge d22a39e...

@rust-log-analyzer
Copy link
Collaborator

The job x86_64-gnu-tools failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
   Compiling memchr v2.5.0
   Compiling std v0.0.0 (/checkout/library/std)
   Compiling cc v1.1.22
   Compiling compiler_builtins v0.1.133
error[E0271]: type mismatch resolving `<i32 as Sub>::Output == usize`
    |
462 | / macro_rules! array_impl_default {
462 | / macro_rules! array_impl_default {
463 | |     {$n:expr, $t:ident $($ts:ident)*} => {
464 | |         #[stable(since = "1.4.0", feature = "array_default")]
465 | |         impl<T> Default for [T; $n] where T: Default {
...   |
470 | |         array_impl_default!{($n - 1), $($ts)*}
    | |                                 ^ expected `i32`, found `usize`
477 | |     };
478 | | }
    | |_- in this expansion of `array_impl_default!`
479 |
479 |
480 |   array_impl_default! {32, T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T}


error[E0119]: conflicting implementations of trait `default::Default` for type `[_; 32]`
    |
462 | / macro_rules! array_impl_default {
462 | / macro_rules! array_impl_default {
463 | |     {$n:expr, $t:ident $($ts:ident)*} => {
464 | |         #[stable(since = "1.4.0", feature = "array_default")]
465 | |         impl<T> Default for [T; $n] where T: Default {
    | |         |
    | |         first implementation here
    | |         first implementation here
    | |         conflicting implementation for `[_; 32]`
...   |
470 | |         array_impl_default!{($n - 1), $($ts)*}
...   |
477 | |     };
478 | | }
    | | -
    | | -
    | | |
    | |_in this expansion of `array_impl_default!` (#1)
    |   in this expansion of `array_impl_default!` (#2)
479 |
480 |   array_impl_default! {32, T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T}


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == usize`
    |
462 | / macro_rules! array_impl_default {
462 | / macro_rules! array_impl_default {
463 | |     {$n:expr, $t:ident $($ts:ident)*} => {
464 | |         #[stable(since = "1.4.0", feature = "array_default")]
465 | |         impl<T> Default for [T; $n] where T: Default {
...   |
470 | |         array_impl_default!{($n - 1), $($ts)*}
    | |         ------------------------^-------------
    | |         |                       expected `i32`, found `usize`
    | |         in this macro invocation (#2)
...   |
477 | |     };
477 | |     };
478 | | }
    | | -
    | | |
    | |_in this expansion of `array_impl_default!` (#1)
    |   in this expansion of `array_impl_default!` (#2)
479 |
480 |   array_impl_default! {32, T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T}


error[E0119]: conflicting implementations of trait `default::Default` for type `[_; 32]`
    |
462 | / macro_rules! array_impl_default {
462 | / macro_rules! array_impl_default {
463 | |     {$n:expr, $t:ident $($ts:ident)*} => {
464 | |         #[stable(since = "1.4.0", feature = "array_default")]
465 | |         impl<T> Default for [T; $n] where T: Default {
    | |         |
    | |         first implementation here
    | |         first implementation here
    | |         conflicting implementation for `[_; 32]`
...   |
470 | |         array_impl_default!{($n - 1), $($ts)*}
    | |         |
    | |         in this macro invocation (#2)
    | |         in this macro invocation (#3)
...   |
---
    | | in this expansion of `array_impl_default!` (#1)
    | |_in this expansion of `array_impl_default!` (#2)
    |   in this expansion of `array_impl_default!` (#3)
479 |
480 |   array_impl_default! {32, T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T}


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == usize`
    |
462 | / macro_rules! array_impl_default {
462 | / macro_rules! array_impl_default {
463 | |     {$n:expr, $t:ident $($ts:ident)*} => {
464 | |         #[stable(since = "1.4.0", feature = "array_default")]
465 | |         impl<T> Default for [T; $n] where T: Default {
...   |
470 | |         array_impl_default!{($n - 1), $($ts)*}
    | |         ------------------------^-------------
    | |         |                       expected `i32`, found `usize`
    | |         in this macro invocation (#2)
    | |         in this macro invocation (#3)
...   |
---
    | | in this expansion of `array_impl_default!` (#1)
    | |_in this expansion of `array_impl_default!` (#2)
    |   in this expansion of `array_impl_default!` (#3)
479 |
480 |   array_impl_default! {32, T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T}


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
   |
   |
13 |     const C1: u32 = 0b11_00000000 - 10; // 758
   |                                   ^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
   |
   |
15 |     const C2: u32 = 0b10_00000000 - 100; // 412
   |                                   ^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
   |
   |
31 |     const C1: u32 = 0b011_00000000000000000 - 10; // 393206
   |                                             ^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
   |
   |
32 |     const C2: u32 = 0b100_00000000000000000 - 100; // 524188
   |                                             ^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
   |
   |
33 |     const C3: u32 = 0b111_00000000000000000 - 1000; // 916504
   |                                             ^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
   |
   |
34 |     const C4: u32 = 0b100_00000000000000000 - 10000; // 514288
   |                                             ^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
    |
138 | / macro_rules! first_stage {
138 | / macro_rules! first_stage {
139 | |     ($original_bits:literal, $n:ident) => {{
140 | |         debug_assert!($n != 0, "`$n` is  zero in `first_stage!`.");
141 | |
142 | |         const N_SHIFT: u32 = $original_bits - 8;
    | |                                             ^ expected `i32`, found `u32`
166 | |     }};
167 | | }
    | |_- in this expansion of `first_stage!`
...
...
259 |       let (s, r) = first_stage!(16, n);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u16`
    |
229 | / macro_rules! last_stage {
229 | / macro_rules! last_stage {
230 | |     ($ty:ty, $n:ident, $s:ident, $r:ident) => {{
231 | |         debug_assert!($s != 0, "`$s` is  zero in `last_stage!`.");
...   |
235 | |         const LOWER_HALF_1_BITS: $ty = (1 << HALF_BITS) - 1;
    | |                                                         ^ expected `i32`, found `u16`
248 | |     }};
249 | | }
    | |_- in this expansion of `last_stage!`
...
...
260 |       last_stage!(u16, n, s, r)


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
    |
138 | / macro_rules! first_stage {
138 | / macro_rules! first_stage {
139 | |     ($original_bits:literal, $n:ident) => {{
140 | |         debug_assert!($n != 0, "`$n` is  zero in `first_stage!`.");
141 | |
142 | |         const N_SHIFT: u32 = $original_bits - 8;
    | |                                             ^ expected `i32`, found `u32`
166 | |     }};
167 | | }
    | |_- in this expansion of `first_stage!`
...
...
271 |       let (s, r) = first_stage!(32, n);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u16`
    |
174 | / macro_rules! middle_stage {
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
183 | |         const LOWER_HALF_1_BITS: $ty = (1 << HALF_BITS) - 1;
    | |                                                         ^ expected `i32`, found `u16`
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
...
...
272 |       let (s, r) = middle_stage!(32, u16, n, s, r);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u16`
    |
174 | / macro_rules! middle_stage {
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
184 | |         const LOWEST_QUARTER_1_BITS: $ty = (1 << QUARTER_BITS) - 1;
    | |                                                                ^ expected `i32`, found `u16`
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
...
...
272 |       let (s, r) = middle_stage!(32, u16, n, s, r);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
    |
229 | / macro_rules! last_stage {
229 | / macro_rules! last_stage {
230 | |     ($ty:ty, $n:ident, $s:ident, $r:ident) => {{
231 | |         debug_assert!($s != 0, "`$s` is  zero in `last_stage!`.");
...   |
235 | |         const LOWER_HALF_1_BITS: $ty = (1 << HALF_BITS) - 1;
    | |                                                         ^ expected `i32`, found `u32`
248 | |     }};
249 | | }
    | |_- in this expansion of `last_stage!`
...
...
273 |       last_stage!(u32, n, s, r)


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
    |
138 | / macro_rules! first_stage {
138 | / macro_rules! first_stage {
139 | |     ($original_bits:literal, $n:ident) => {{
140 | |         debug_assert!($n != 0, "`$n` is  zero in `first_stage!`.");
141 | |
142 | |         const N_SHIFT: u32 = $original_bits - 8;
    | |                                             ^ expected `i32`, found `u32`
166 | |     }};
167 | | }
    | |_- in this expansion of `first_stage!`
...
...
284 |       let (s, r) = first_stage!(64, n);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u16`
    |
174 | / macro_rules! middle_stage {
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
183 | |         const LOWER_HALF_1_BITS: $ty = (1 << HALF_BITS) - 1;
    | |                                                         ^ expected `i32`, found `u16`
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
...
...
285 |       let (s, r) = middle_stage!(64, u16, n, s, r);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u16`
    |
174 | / macro_rules! middle_stage {
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
184 | |         const LOWEST_QUARTER_1_BITS: $ty = (1 << QUARTER_BITS) - 1;
    | |                                                                ^ expected `i32`, found `u16`
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
...
...
285 |       let (s, r) = middle_stage!(64, u16, n, s, r);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
    |
174 | / macro_rules! middle_stage {
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
183 | |         const LOWER_HALF_1_BITS: $ty = (1 << HALF_BITS) - 1;
    | |                                                         ^ expected `i32`, found `u32`
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
...
...
286 |       let (s, r) = middle_stage!(64, u32, n, s, r);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
    |
174 | / macro_rules! middle_stage {
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
184 | |         const LOWEST_QUARTER_1_BITS: $ty = (1 << QUARTER_BITS) - 1;
    | |                                                                ^ expected `i32`, found `u32`
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
...
...
286 |       let (s, r) = middle_stage!(64, u32, n, s, r);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u64`
    |
229 | / macro_rules! last_stage {
229 | / macro_rules! last_stage {
230 | |     ($ty:ty, $n:ident, $s:ident, $r:ident) => {{
231 | |         debug_assert!($s != 0, "`$s` is  zero in `last_stage!`.");
...   |
235 | |         const LOWER_HALF_1_BITS: $ty = (1 << HALF_BITS) - 1;
    | |                                                         ^ expected `i32`, found `u64`
248 | |     }};
249 | | }
    | |_- in this expansion of `last_stage!`
...
...
287 |       last_stage!(u64, n, s, r)


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
    |
138 | / macro_rules! first_stage {
138 | / macro_rules! first_stage {
139 | |     ($original_bits:literal, $n:ident) => {{
140 | |         debug_assert!($n != 0, "`$n` is  zero in `first_stage!`.");
141 | |
142 | |         const N_SHIFT: u32 = $original_bits - 8;
    | |                                             ^ expected `i32`, found `u32`
166 | |     }};
167 | | }
    | |_- in this expansion of `first_stage!`
...
...
298 |       let (s, r) = first_stage!(128, n);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u16`
    |
174 | / macro_rules! middle_stage {
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
183 | |         const LOWER_HALF_1_BITS: $ty = (1 << HALF_BITS) - 1;
    | |                                                         ^ expected `i32`, found `u16`
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
...
...
299 |       let (s, r) = middle_stage!(128, u16, n, s, r);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u16`
    |
174 | / macro_rules! middle_stage {
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
184 | |         const LOWEST_QUARTER_1_BITS: $ty = (1 << QUARTER_BITS) - 1;
    | |                                                                ^ expected `i32`, found `u16`
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
...
...
299 |       let (s, r) = middle_stage!(128, u16, n, s, r);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
    |
174 | / macro_rules! middle_stage {
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
183 | |         const LOWER_HALF_1_BITS: $ty = (1 << HALF_BITS) - 1;
    | |                                                         ^ expected `i32`, found `u32`
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
...
...
300 |       let (s, r) = middle_stage!(128, u32, n, s, r);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
    |
174 | / macro_rules! middle_stage {
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
184 | |         const LOWEST_QUARTER_1_BITS: $ty = (1 << QUARTER_BITS) - 1;
    | |                                                                ^ expected `i32`, found `u32`
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
...
...
300 |       let (s, r) = middle_stage!(128, u32, n, s, r);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u64`
    |
174 | / macro_rules! middle_stage {
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
183 | |         const LOWER_HALF_1_BITS: $ty = (1 << HALF_BITS) - 1;
    | |                                                         ^ expected `i32`, found `u64`
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
...
...
301 |       let (s, r) = middle_stage!(128, u64, n, s, r);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u64`
    |
174 | / macro_rules! middle_stage {
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
184 | |         const LOWEST_QUARTER_1_BITS: $ty = (1 << QUARTER_BITS) - 1;
    | |                                                                ^ expected `i32`, found `u64`
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
...
...
301 |       let (s, r) = middle_stage!(128, u64, n, s, r);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u128`
    |
229 | / macro_rules! last_stage {
229 | / macro_rules! last_stage {
230 | |     ($ty:ty, $n:ident, $s:ident, $r:ident) => {{
231 | |         debug_assert!($s != 0, "`$s` is  zero in `last_stage!`.");
...   |
235 | |         const LOWER_HALF_1_BITS: $ty = (1 << HALF_BITS) - 1;
    | |                                                         ^ expected `i32`, found `u128`
248 | |     }};
249 | | }
    | |_- in this expansion of `last_stage!`
...
...
302 |       last_stage!(u128, n, s, r)


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
     |
     |
1077 |     pub const i8: u32 = (1 << 3) - 1;
     |                                  ^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
     |
     |
1078 |     pub const i16: u32 = (1 << 4) - 1;
     |                                   ^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
     |
     |
1079 |     pub const i32: u32 = (1 << 5) - 1;
     |                                   ^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
     |
     |
1080 |     pub const i64: u32 = (1 << 6) - 1;
     |                                   ^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
     |
     |
1081 |     pub const i128: u32 = (1 << 7) - 1;
     |                                    ^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
303 |     _Align1Shl0 = 1 << 0,
    |                     ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
304 |     _Align1Shl1 = 1 << 1,
    |                     ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
305 |     _Align1Shl2 = 1 << 2,
    |                     ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
306 |     _Align1Shl3 = 1 << 3,
    |                     ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
307 |     _Align1Shl4 = 1 << 4,
    |                     ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
308 |     _Align1Shl5 = 1 << 5,
    |                     ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
309 |     _Align1Shl6 = 1 << 6,
    |                     ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
310 |     _Align1Shl7 = 1 << 7,
    |                     ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
311 |     _Align1Shl8 = 1 << 8,
    |                     ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
312 |     _Align1Shl9 = 1 << 9,
    |                     ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
313 |     _Align1Shl10 = 1 << 10,
    |                      ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
314 |     _Align1Shl11 = 1 << 11,
    |                      ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
315 |     _Align1Shl12 = 1 << 12,
    |                      ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
316 |     _Align1Shl13 = 1 << 13,
    |                      ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
---
1626 | |             double_ty = u64,
1627 | |         )
     | |_________- in this macro invocation
     |
     = help: the trait `arith::Div<i32>` is not implemented for `i16`
     = help: the following other types implement trait `arith::Div<Rhs>`:
               `&i16` implements `arith::Div<i16>`
               `&i16` implements `arith::Div`
               `i16` implements `arith::Div<&i16>`
               `i16` implements `arith::Div`

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
     |
1481 | / macro_rules! try_from_secs {
1482 | |     (
1482 | |     (
1483 | |         secs = $secs: expr,
1484 | |         mantissa_bits = $mant_bits: literal,
...    |
1491 | |         const MANT_MASK: $bits_ty = (1 << $mant_bits) - 1;
     | |                                                       ^ expected `i32`, found `u32`
1558 | |     }};
1559 | | }
     | |_- in this expansion of `try_from_secs!`
...
---
1626 | |             double_ty = u64,
1627 | |         )
     | |_________- in this macro invocation

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
     |
1481 | / macro_rules! try_from_secs {
1482 | |     (
1482 | |     (
1483 | |         secs = $secs: expr,
1484 | |         mantissa_bits = $mant_bits: literal,
...    |
1492 | |         const EXP_MASK: $bits_ty = (1 << $exp_bits) - 1;
     | |                                                     ^ expected `i32`, found `u32`
1558 | |     }};
1559 | | }
     | |_- in this expansion of `try_from_secs!`
...
---
    --> core/src/time.rs:1490:54
     |
1481 | / macro_rules! try_from_secs {
1482 | |     (
1483 | |         secs = $secs: expr,
1484 | |         mantissa_bits = $mant_bits: literal,
...    |
1490 | |         const MIN_EXP: i16 = 1 - (1i16 << $exp_bits) / 2;
     | |                                                      ^ no implementation for `i16 / i32`
1558 | |     }};
1559 | | }
     | |_- in this expansion of `try_from_secs!`
...
---
1702 | |             double_ty = u128,
1703 | |         )
     | |_________- in this macro invocation
     |
     = help: the trait `arith::Div<i32>` is not implemented for `i16`
     = help: the following other types implement trait `arith::Div<Rhs>`:
               `&i16` implements `arith::Div<i16>`
               `&i16` implements `arith::Div`
               `i16` implements `arith::Div<&i16>`
               `i16` implements `arith::Div`

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u64`
     |
1481 | / macro_rules! try_from_secs {
1482 | |     (
1482 | |     (
1483 | |         secs = $secs: expr,
1484 | |         mantissa_bits = $mant_bits: literal,
...    |
1491 | |         const MANT_MASK: $bits_ty = (1 << $mant_bits) - 1;
     | |                                                       ^ expected `i32`, found `u64`
1558 | |     }};
1559 | | }
     | |_- in this expansion of `try_from_secs!`
...
---
1702 | |             double_ty = u128,
1703 | |         )
     | |_________- in this macro invocation

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u64`
     |
1481 | / macro_rules! try_from_secs {
1482 | |     (
1482 | |     (
1483 | |         secs = $secs: expr,
1484 | |         mantissa_bits = $mant_bits: literal,
...    |
1492 | |         const EXP_MASK: $bits_ty = (1 << $exp_bits) - 1;
     | |                                                     ^ expected `i32`, found `u64`
1558 | |     }};
1559 | | }
     | |_- in this expansion of `try_from_secs!`
...
---
1702 | |             double_ty = u128,
1703 | |         )
     | |_________- in this macro invocation

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u32`
  --> core/src/../../stdarch/crates/core_arch/src/x86/rtm.rs:38:37
   |
38 | pub const _XABORT_EXPLICIT: u32 = 1 << 0;
   |                                     ^^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u32`
  --> core/src/../../stdarch/crates/core_arch/src/x86/rtm.rs:42:34
   |
42 | pub const _XABORT_RETRY: u32 = 1 << 1;
   |                                  ^^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u32`
  --> core/src/../../stdarch/crates/core_arch/src/x86/rtm.rs:46:37
   |
46 | pub const _XABORT_CONFLICT: u32 = 1 << 2;
   |                                     ^^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u32`
  --> core/src/../../stdarch/crates/core_arch/src/x86/rtm.rs:50:37
   |
50 | pub const _XABORT_CAPACITY: u32 = 1 << 3;
   |                                     ^^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u32`
  --> core/src/../../stdarch/crates/core_arch/src/x86/rtm.rs:54:34
   |
54 | pub const _XABORT_DEBUG: u32 = 1 << 4;
   |                                  ^^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u32`
  --> core/src/../../stdarch/crates/core_arch/src/x86/rtm.rs:58:35
   |
58 | pub const _XABORT_NESTED: u32 = 1 << 5;
   |                                   ^^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Div>::Output == usize`
  --> core/src/../../portable-simd/crates/core_simd/src/lane_count.rs:30:50
26 | / macro_rules! supported_lane_count {
26 | / macro_rules! supported_lane_count {
27 | |     ($($lanes:literal),+) => {
28 | |         $(
29 | |             impl SupportedLaneCount for LaneCount<$lanes> {
30 | |                 type BitMask = [u8; ($lanes + 7) / 8];
   | |                                                  ^ expected `i32`, found `usize`
33 | |     };
34 | | }
   | |_- in this expansion of `supported_lane_count!`
35 |
35 |
36 |   supported_lane_count!(1, 2, 4, 8, 16, 32, 64);


error[E0271]: type mismatch resolving `<i32 as Mul>::Output == usize`
    |
54  | / macro_rules! impl_to_bytes {
54  | / macro_rules! impl_to_bytes {
55  | |     { $ty:tt, 1  } => { impl_to_bytes! { $ty, 1  * [1, 2, 4, 8, 16, 32, 64] } };
    | |                         ----------------------------------------------------- in this macro invocation (#2)
56  | |     { $ty:tt, 2  } => { impl_to_bytes! { $ty, 2  * [1, 2, 4, 8, 16, 32] } };
57  | |     { $ty:tt, 4  } => { impl_to_bytes! { $ty, 4  * [1, 2, 4, 8, 16] } };
...   |
66  | |             type Bytes = Simd<u8, { $size * $elems }>;
    | |                                           ^ expected `i32`, found `usize`
123 | |     }
124 | | }
    | | -
    | | |
    | | |
    | |_in this expansion of `impl_to_bytes!` (#1)
    |   in this expansion of `impl_to_bytes!` (#2)
125 |
126 |   impl_to_bytes! { u8, 1 }


error[E0271]: type mismatch resolving `<i32 as Mul>::Output == usize`
    |
54  | / macro_rules! impl_to_bytes {
54  | / macro_rules! impl_to_bytes {
55  | |     { $ty:tt, 1  } => { impl_to_bytes! { $ty, 1  * [1, 2, 4, 8, 16, 32, 64] } };
56  | |     { $ty:tt, 2  } => { impl_to_bytes! { $ty, 2  * [1, 2, 4, 8, 16, 32] } };
    | |                         ------------------------------------------------- in this macro invocation (#2)
57  | |     { $ty:tt, 4  } => { impl_to_bytes! { $ty, 4  * [1, 2, 4, 8, 16] } };
...   |
66  | |             type Bytes = Simd<u8, { $size * $elems }>;
    | |                                           ^ expected `i32`, found `usize`
123 | |     }
124 | | }
    | | -
    | | |
    | | |
    | |_in this expansion of `impl_to_bytes!` (#1)
    |   in this expansion of `impl_to_bytes!` (#2)
...
127 |   impl_to_bytes! { u16, 2 }


error[E0271]: type mismatch resolving `<i32 as Mul>::Output == usize`
    |
54  | / macro_rules! impl_to_bytes {
54  | / macro_rules! impl_to_bytes {
55  | |     { $ty:tt, 1  } => { impl_to_bytes! { $ty, 1  * [1, 2, 4, 8, 16, 32, 64] } };
56  | |     { $ty:tt, 2  } => { impl_to_bytes! { $ty, 2  * [1, 2, 4, 8, 16, 32] } };
57  | |     { $ty:tt, 4  } => { impl_to_bytes! { $ty, 4  * [1, 2, 4, 8, 16] } };
...   |
...   |
66  | |             type Bytes = Simd<u8, { $size * $elems }>;
    | |                                           ^ expected `i32`, found `usize`
123 | |     }
124 | | }
    | | -
    | | |
    | | |
    | |_in this expansion of `impl_to_bytes!` (#1)
    |   in this expansion of `impl_to_bytes!` (#2)
...
128 |   impl_to_bytes! { u32, 4 }


error[E0271]: type mismatch resolving `<i32 as Mul>::Output == usize`
    |
54  | / macro_rules! impl_to_bytes {
54  | / macro_rules! impl_to_bytes {
55  | |     { $ty:tt, 1  } => { impl_to_bytes! { $ty, 1  * [1, 2, 4, 8, 16, 32, 64] } };
56  | |     { $ty:tt, 2  } => { impl_to_bytes! { $ty, 2  * [1, 2, 4, 8, 16, 32] } };
57  | |     { $ty:tt, 4  } => { impl_to_bytes! { $ty, 4  * [1, 2, 4, 8, 16] } };
58  | |     { $ty:tt, 8  } => { impl_to_bytes! { $ty, 8  * [1, 2, 4, 8] } };
...   |
...   |
66  | |             type Bytes = Simd<u8, { $size * $elems }>;
    | |                                           ^ expected `i32`, found `usize`
123 | |     }
124 | | }
    | | -
    | | |
    | | |
    | |_in this expansion of `impl_to_bytes!` (#1)
    |   in this expansion of `impl_to_bytes!` (#2)
...
129 |   impl_to_bytes! { u64, 8 }


error[E0271]: type mismatch resolving `<i32 as Mul>::Output == usize`
    |
54  | / macro_rules! impl_to_bytes {
54  | / macro_rules! impl_to_bytes {
55  | |     { $ty:tt, 1  } => { impl_to_bytes! { $ty, 1  * [1, 2, 4, 8, 16, 32, 64] } };
56  | |     { $ty:tt, 2  } => { impl_to_bytes! { $ty, 2  * [1, 2, 4, 8, 16, 32] } };
57  | |     { $ty:tt, 4  } => { impl_to_bytes! { $ty, 4  * [1, 2, 4, 8, 16] } };
58  | |     { $ty:tt, 8  } => { impl_to_bytes! { $ty, 8  * [1, 2, 4, 8] } };
...   |
...   |
66  | |             type Bytes = Simd<u8, { $size * $elems }>;
    | |                                           ^ expected `i32`, found `usize`
123 | |     }
124 | | }
    | | -
    | | |
    | | |
    | |_in this expansion of `impl_to_bytes!` (#1)
    |   in this expansion of `impl_to_bytes!` (#2)
...
133 |   impl_to_bytes! { usize, 8 }


error[E0271]: type mismatch resolving `<i32 as Mul>::Output == usize`
    |
54  | / macro_rules! impl_to_bytes {
54  | / macro_rules! impl_to_bytes {
55  | |     { $ty:tt, 1  } => { impl_to_bytes! { $ty, 1  * [1, 2, 4, 8, 16, 32, 64] } };
    | |                         ----------------------------------------------------- in this macro invocation (#2)
56  | |     { $ty:tt, 2  } => { impl_to_bytes! { $ty, 2  * [1, 2, 4, 8, 16, 32] } };
57  | |     { $ty:tt, 4  } => { impl_to_bytes! { $ty, 4  * [1, 2, 4, 8, 16] } };
...   |
66  | |             type Bytes = Simd<u8, { $size * $elems }>;
    | |                                           ^ expected `i32`, found `usize`
123 | |     }
124 | | }
    | | -
    | | |
    | | |
    | |_in this expansion of `impl_to_bytes!` (#1)
    |   in this expansion of `impl_to_bytes!` (#2)
...
135 |   impl_to_bytes! { i8, 1 }


error[E0271]: type mismatch resolving `<i32 as Mul>::Output == usize`
    |
54  | / macro_rules! impl_to_bytes {
54  | / macro_rules! impl_to_bytes {
55  | |     { $ty:tt, 1  } => { impl_to_bytes! { $ty, 1  * [1, 2, 4, 8, 16, 32, 64] } };
56  | |     { $ty:tt, 2  } => { impl_to_bytes! { $ty, 2  * [1, 2, 4, 8, 16, 32] } };
    | |                         ------------------------------------------------- in this macro invocation (#2)
57  | |     { $ty:tt, 4  } => { impl_to_bytes! { $ty, 4  * [1, 2, 4, 8, 16] } };
...   |
66  | |             type Bytes = Simd<u8, { $size * $elems }>;
    | |                                           ^ expected `i32`, found `usize`
123 | |     }
124 | | }
    | | -
    | | |
    | | |
    | |_in this expansion of `impl_to_bytes!` (#1)
    |   in this expansion of `impl_to_bytes!` (#2)
...
136 |   impl_to_bytes! { i16, 2 }


error[E0271]: type mismatch resolving `<i32 as Mul>::Output == usize`
    |
54  | / macro_rules! impl_to_bytes {
54  | / macro_rules! impl_to_bytes {
55  | |     { $ty:tt, 1  } => { impl_to_bytes! { $ty, 1  * [1, 2, 4, 8, 16, 32, 64] } };
56  | |     { $ty:tt, 2  } => { impl_to_bytes! { $ty, 2  * [1, 2, 4, 8, 16, 32] } };
57  | |     { $ty:tt, 4  } => { impl_to_bytes! { $ty, 4  * [1, 2, 4, 8, 16] } };
...   |
...   |
66  | |             type Bytes = Simd<u8, { $size * $elems }>;
    | |                                           ^ expected `i32`, found `usize`
123 | |     }
124 | | }
    | | -
    | | |
    | | |
    | |_in this expansion of `impl_to_bytes!` (#1)
    |   in this expansion of `impl_to_bytes!` (#2)
...
137 |   impl_to_bytes! { i32, 4 }


error[E0271]: type mismatch resolving `<i32 as Mul>::Output == usize`
    |
54  | / macro_rules! impl_to_bytes {
54  | / macro_rules! impl_to_bytes {
55  | |     { $ty:tt, 1  } => { impl_to_bytes! { $ty, 1  * [1, 2, 4, 8, 16, 32, 64] } };
56  | |     { $ty:tt, 2  } => { impl_to_bytes! { $ty, 2  * [1, 2, 4, 8, 16, 32] } };
57  | |     { $ty:tt, 4  } => { impl_to_bytes! { $ty, 4  * [1, 2, 4, 8, 16] } };
58  | |     { $ty:tt, 8  } => { impl_to_bytes! { $ty, 8  * [1, 2, 4, 8] } };
...   |
...   |
66  | |             type Bytes = Simd<u8, { $size * $elems }>;
    | |                                           ^ expected `i32`, found `usize`
123 | |     }
124 | | }
    | | -
    | | |
    | | |
    | |_in this expansion of `impl_to_bytes!` (#1)
    |   in this expansion of `impl_to_bytes!` (#2)
...
138 |   impl_to_bytes! { i64, 8 }


error[E0271]: type mismatch resolving `<i32 as Mul>::Output == usize`
    |
54  | / macro_rules! impl_to_bytes {
54  | / macro_rules! impl_to_bytes {
55  | |     { $ty:tt, 1  } => { impl_to_bytes! { $ty, 1  * [1, 2, 4, 8, 16, 32, 64] } };
56  | |     { $ty:tt, 2  } => { impl_to_bytes! { $ty, 2  * [1, 2, 4, 8, 16, 32] } };
57  | |     { $ty:tt, 4  } => { impl_to_bytes! { $ty, 4  * [1, 2, 4, 8, 16] } };
58  | |     { $ty:tt, 8  } => { impl_to_bytes! { $ty, 8  * [1, 2, 4, 8] } };
...   |
...   |
66  | |             type Bytes = Simd<u8, { $size * $elems }>;
    | |                                           ^ expected `i32`, found `usize`
123 | |     }
124 | | }
    | | -
    | | |
    | | |
    | |_in this expansion of `impl_to_bytes!` (#1)
    |   in this expansion of `impl_to_bytes!` (#2)
...
142 |   impl_to_bytes! { isize, 8 }


error[E0271]: type mismatch resolving `<i32 as Mul>::Output == usize`
    |
54  | / macro_rules! impl_to_bytes {
54  | / macro_rules! impl_to_bytes {
55  | |     { $ty:tt, 1  } => { impl_to_bytes! { $ty, 1  * [1, 2, 4, 8, 16, 32, 64] } };
56  | |     { $ty:tt, 2  } => { impl_to_bytes! { $ty, 2  * [1, 2, 4, 8, 16, 32] } };
57  | |     { $ty:tt, 4  } => { impl_to_bytes! { $ty, 4  * [1, 2, 4, 8, 16] } };
...   |
...   |
66  | |             type Bytes = Simd<u8, { $size * $elems }>;
    | |                                           ^ expected `i32`, found `usize`
123 | |     }
124 | | }
    | | -
    | | |
    | | |
    | |_in this expansion of `impl_to_bytes!` (#1)
    |   in this expansion of `impl_to_bytes!` (#2)
...
144 |   impl_to_bytes! { f32, 4 }


error[E0271]: type mismatch resolving `<i32 as Mul>::Output == usize`
    |
54  | / macro_rules! impl_to_bytes {
54  | / macro_rules! impl_to_bytes {
55  | |     { $ty:tt, 1  } => { impl_to_bytes! { $ty, 1  * [1, 2, 4, 8, 16, 32, 64] } };
56  | |     { $ty:tt, 2  } => { impl_to_bytes! { $ty, 2  * [1, 2, 4, 8, 16, 32] } };
57  | |     { $ty:tt, 4  } => { impl_to_bytes! { $ty, 4  * [1, 2, 4, 8, 16] } };
58  | |     { $ty:tt, 8  } => { impl_to_bytes! { $ty, 8  * [1, 2, 4, 8] } };
...   |
...   |
66  | |             type Bytes = Simd<u8, { $size * $elems }>;
    | |                                           ^ expected `i32`, found `usize`
123 | |     }
124 | | }
    | | -
    | | |
    | | |
    | |_in this expansion of `impl_to_bytes!` (#1)
    |   in this expansion of `impl_to_bytes!` (#2)
...
145 |   impl_to_bytes! { f64, 8 }

error[E0282]: type annotations needed
   --> core/src/num/int_sqrt.rs:243:37
    |
    |
229 | / macro_rules! last_stage {
230 | |     ($ty:ty, $n:ident, $s:ident, $r:ident) => {{
231 | |         debug_assert!($s != 0, "`$s` is  zero in `last_stage!`.");
...   |
243 | |         let (s_squared, overflow) = s.overflowing_mul(s);
    | |                                     ^ cannot infer type
248 | |     }};
249 | | }
    | |_- in this expansion of `last_stage!`
...
...
260 |       last_stage!(u16, n, s, r)

error[E0282]: type annotations needed
   --> core/src/num/int_sqrt.rs:194:13
    |
    |
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
194 | |             ((u << QUARTER_BITS) | (lo & LOWEST_QUARTER_1_BITS)).overflowing_sub(q * q);
...   |
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
    | |_- in this expansion of `middle_stage!`
...
272 |       let (s, r) = middle_stage!(32, u16, n, s, r);

error[E0282]: type annotations needed
   --> core/src/num/int_sqrt.rs:194:13
    |
    |
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
194 | |             ((u << QUARTER_BITS) | (lo & LOWEST_QUARTER_1_BITS)).overflowing_sub(q * q);
...   |
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
    | |_- in this expansion of `middle_stage!`
...
285 |       let (s, r) = middle_stage!(64, u16, n, s, r);

error[E0282]: type annotations needed
   --> core/src/num/int_sqrt.rs:194:13
    |
    |
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
194 | |             ((u << QUARTER_BITS) | (lo & LOWEST_QUARTER_1_BITS)).overflowing_sub(q * q);
...   |
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
    | |_- in this expansion of `middle_stage!`
...
299 |       let (s, r) = middle_stage!(128, u16, n, s, r);


error[E0277]: no implementation for `u128 & i32`
    |
    |
504 |         (self.to_bits() & (1 << 127)) != 0
    |                         ^ no implementation for `u128 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u128`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u128` implements `bit::BitAnd<u128>`
              `&u128` implements `bit::BitAnd`
              `u128` implements `bit::BitAnd<&u128>`
              `u128` implements `bit::BitAnd`

error[E0277]: no implementation for `u16 & i32`
    |
    |
495 |         (self.to_bits() & (1 << 15)) != 0
    |                         ^ no implementation for `u16 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u16`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u16` implements `bit::BitAnd<u16>`
              `&u16` implements `bit::BitAnd`
              `u16` implements `bit::BitAnd<&u16>`
              `u16` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 |= i32`
   --> core/src/num/bignum.rs:370:43
70  | / macro_rules! define_bignum {
70  | / macro_rules! define_bignum {
71  | |     ($name:ident: type=$ty:ty, n=$n:expr) => {
72  | |         /// Stack-allocated arbitrary-precision (up to certain limit) integer.
...   |
...   |
370 | |                         q.base[digit_idx] |= 1 << bit_idx;
    | |                                           ^^ no implementation for `u32 |= i32`
420 | |     };
421 | | }
    | |_- in this expansion of `define_bignum!`
...
...
426 |   define_bignum!(Big32x40: type=Digit32, n=40);
    |
    |
    = help: the trait `BitOrAssign<i32>` is not implemented for `u32`
    = help: the following other types implement trait `BitOrAssign<Rhs>`:
              `u32` implements `BitOrAssign<&u32>`
              `u32` implements `BitOrAssign`

error[E0277]: no implementation for `u8 |= i32`
   --> core/src/num/bignum.rs:370:43
70  | / macro_rules! define_bignum {
70  | / macro_rules! define_bignum {
71  | |     ($name:ident: type=$ty:ty, n=$n:expr) => {
72  | |         /// Stack-allocated arbitrary-precision (up to certain limit) integer.
...   |
...   |
370 | |                         q.base[digit_idx] |= 1 << bit_idx;
    | |                                           ^^ no implementation for `u8 |= i32`
420 | |     };
421 | | }
    | |_- in this expansion of `define_bignum!`
...
...
431 |       define_bignum!(Big8x3: type=u8, n=3);
    |
    |
    = help: the trait `BitOrAssign<i32>` is not implemented for `u8`
    = help: the following other types implement trait `BitOrAssign<Rhs>`:
              `u8` implements `BitOrAssign<&u8>`
              `u8` implements `BitOrAssign`
error[E0277]: can't compare `u32` with `i32`
   --> core/src/num/dec2flt/float.rs:142:38
    |
    |
142 |         let sign: i8 = if bits >> 31 == 0 { 1 } else { -1 };
    |                                      ^^ no implementation for `u32 == i32`
    |
    = help: the trait `cmp::PartialEq<i32>` is not implemented for `u32`
    = help: the trait `cmp::PartialEq` is implemented for `u32`
    = help: for that trait implementation, expected `u32`, found `i32`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/num/dec2flt/float.rs:143:47
    |
143 |         let mut exponent: i16 = ((bits >> 23) & 0xff) as i16;
    |                                               ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: cannot subtract-assign `i32` from `i16`
   --> core/src/num/dec2flt/float.rs:147:18
    |
147 |         exponent -= 127 + 23;
    |                  ^^ no implementation for `i16 -= i32`
    |
    = help: the trait `SubAssign<i32>` is not implemented for `i16`
    = help: the following other types implement trait `SubAssign<Rhs>`:
              `i16` implements `SubAssign<&i16>`
              `i16` implements `SubAssign`
error[E0277]: can't compare `u64` with `i32`
---
1626 | |             double_ty = u64,
1627 | |         )
     | |_________- in this macro invocation
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u64`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u64` implements `bit::BitAnd<u64>`
               `&u64` implements `bit::BitAnd`
               `u64` implements `bit::BitAnd<&u64>`
               `u64` implements `bit::BitAnd`

error[E0277]: no implementation for `u128 & i32`
     |
1481 | / macro_rules! try_from_secs {
1482 | |     (
1482 | |     (
1483 | |         secs = $secs: expr,
1484 | |         mantissa_bits = $mant_bits: literal,
...    |
1514 | |             let rem = nanos_tmp & rem_mask;
     | |                                 ^ no implementation for `u128 & i32`
1558 | |     }};
1559 | | }
     | |_- in this expansion of `try_from_secs!`
...
---
1626 | |             double_ty = u64,
1627 | |         )
     | |_________- in this macro invocation
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u128`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u128` implements `bit::BitAnd<u128>`
               `&u128` implements `bit::BitAnd`
               `u128` implements `bit::BitAnd<&u128>`
               `u128` implements `bit::BitAnd`

error[E0277]: no implementation for `u128 & i32`
     |
1481 | / macro_rules! try_from_secs {
1482 | |     (
1482 | |     (
1483 | |         secs = $secs: expr,
1484 | |         mantissa_bits = $mant_bits: literal,
...    |
1517 | |             let rem_msb = nanos_tmp & rem_msb_mask == 0;
     | |                                     ^ no implementation for `u128 & i32`
1558 | |     }};
1559 | | }
     | |_- in this expansion of `try_from_secs!`
...
---
1626 | |             double_ty = u64,
1627 | |         )
     | |_________- in this macro invocation
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u128`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u128` implements `bit::BitAnd<u128>`
               `&u128` implements `bit::BitAnd`
               `u128` implements `bit::BitAnd<&u128>`
               `u128` implements `bit::BitAnd`

error[E0277]: no implementation for `u64 & i32`
     |
1481 | / macro_rules! try_from_secs {
1482 | |     (
1482 | |     (
1483 | |         secs = $secs: expr,
1484 | |         mantissa_bits = $mant_bits: literal,
...    |
1536 | |             let rem_msb = nanos_tmp & rem_msb_mask == 0;
     | |                                     ^ no implementation for `u64 & i32`
1558 | |     }};
1559 | | }
     | |_- in this expansion of `try_from_secs!`
...
---
1626 | |             double_ty = u64,
1627 | |         )
     | |_________- in this macro invocation
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u64`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u64` implements `bit::BitAnd<u64>`
               `&u64` implements `bit::BitAnd`
               `u64` implements `bit::BitAnd<&u64>`
               `u64` implements `bit::BitAnd`

error[E0277]: no implementation for `u128 & i32`
     |
1481 | / macro_rules! try_from_secs {
1482 | |     (
1482 | |     (
1483 | |         secs = $secs: expr,
1484 | |         mantissa_bits = $mant_bits: literal,
...    |
1533 | |             let rem = nanos_tmp & rem_mask;
     | |                                 ^ no implementation for `u128 & i32`
1558 | |     }};
1559 | | }
     | |_- in this expansion of `try_from_secs!`
...
---
1702 | |             double_ty = u128,
1703 | |         )
     | |_________- in this macro invocation
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u128`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u128` implements `bit::BitAnd<u128>`
               `&u128` implements `bit::BitAnd`
               `u128` implements `bit::BitAnd<&u128>`
               `u128` implements `bit::BitAnd`

error[E0277]: no implementation for `u128 & i32`
     |
1481 | / macro_rules! try_from_secs {
1482 | |     (
1482 | |     (
1483 | |         secs = $secs: expr,
1484 | |         mantissa_bits = $mant_bits: literal,
...    |
1514 | |             let rem = nanos_tmp & rem_mask;
     | |                                 ^ no implementation for `u128 & i32`
1558 | |     }};
1559 | | }
     | |_- in this expansion of `try_from_secs!`
...
---
1702 | |             double_ty = u128,
1703 | |         )
     | |_________- in this macro invocation
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u128`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u128` implements `bit::BitAnd<u128>`
               `&u128` implements `bit::BitAnd`
               `u128` implements `bit::BitAnd<&u128>`
               `u128` implements `bit::BitAnd`

error[E0277]: no implementation for `u128 & i32`
     |
1481 | / macro_rules! try_from_secs {
1482 | |     (
1482 | |     (
1483 | |         secs = $secs: expr,
1484 | |         mantissa_bits = $mant_bits: literal,
...    |
1517 | |             let rem_msb = nanos_tmp & rem_msb_mask == 0;
     | |                                     ^ no implementation for `u128 & i32`
1558 | |     }};
1559 | | }
     | |_- in this expansion of `try_from_secs!`
...
---
1702 | |             double_ty = u128,
1703 | |         )
     | |_________- in this macro invocation
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u128`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u128` implements `bit::BitAnd<u128>`
               `&u128` implements `bit::BitAnd`
               `u128` implements `bit::BitAnd<&u128>`
               `u128` implements `bit::BitAnd`

error[E0277]: no implementation for `u128 & i32`
     |
1481 | / macro_rules! try_from_secs {
1482 | |     (
1482 | |     (
1483 | |         secs = $secs: expr,
1484 | |         mantissa_bits = $mant_bits: literal,
...    |
1536 | |             let rem_msb = nanos_tmp & rem_msb_mask == 0;
     | |                                     ^ no implementation for `u128 & i32`
1558 | |     }};
1559 | | }
     | |_- in this expansion of `try_from_secs!`
...
---
1702 | |             double_ty = u128,
1703 | |         )
     | |_________- in this macro invocation
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u128`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u128` implements `bit::BitAnd<u128>`
               `&u128` implements `bit::BitAnd`
               `u128` implements `bit::BitAnd<&u128>`
               `u128` implements `bit::BitAnd`

error[E0277]: no implementation for `u8 & i32`
   |
   |
34 |         let should_invert = mapping & (1 << 6) != 0;
   |                                     ^ no implementation for `u8 & i32`
   |
   = help: the trait `bit::BitAnd<i32>` is not implemented for `u8`
   = help: the following other types implement trait `bit::BitAnd<Rhs>`:
             `&u8` implements `bit::BitAnd<u8>`
             `&u8` implements `bit::BitAnd`
             `u8` implements `bit::BitAnd<&u8>`
             `u8` implements `bit::BitAnd`

error[E0277]: no implementation for `u8 & i32`
   |
   |
39 |         let quantity = mapping & ((1 << 6) - 1);
   |                                ^ no implementation for `u8 & i32`
   |
   = help: the trait `bit::BitAnd<i32>` is not implemented for `u8`
   = help: the following other types implement trait `bit::BitAnd<Rhs>`:
             `&u8` implements `bit::BitAnd<u8>`
             `&u8` implements `bit::BitAnd`
             `u8` implements `bit::BitAnd<&u8>`
             `u8` implements `bit::BitAnd`

error[E0277]: no implementation for `u8 & i32`
   |
   |
40 |         if mapping & (1 << 7) != 0 {
   |                    ^ no implementation for `u8 & i32`
   |
   = help: the trait `bit::BitAnd<i32>` is not implemented for `u8`
   = help: the following other types implement trait `bit::BitAnd<Rhs>`:
             `&u8` implements `bit::BitAnd<u8>`
             `&u8` implements `bit::BitAnd`
             `u8` implements `bit::BitAnd<&u8>`
             `u8` implements `bit::BitAnd`

error[E0277]: no implementation for `u64 & i32`
   |
   |
48 |     (word & (1 << (needle % 64) as u64)) != 0
   |           ^ no implementation for `u64 & i32`
   |
   = help: the trait `bit::BitAnd<i32>` is not implemented for `u64`
   = help: the following other types implement trait `bit::BitAnd<Rhs>`:
             `&u64` implements `bit::BitAnd<u64>`
             `&u64` implements `bit::BitAnd`
             `u64` implements `bit::BitAnd<&u64>`
             `u64` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   |
   |
52 |     short_offset_run_header & ((1 << 21) - 1)
   |                             ^ no implementation for `u32 & i32`
   |
   = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
   = help: the following other types implement trait `bit::BitAnd<Rhs>`:
             `&u32` implements `bit::BitAnd<u32>`
             `&u32` implements `bit::BitAnd`
             `u32` implements `bit::BitAnd<&u32>`
             `u32` implements `bit::BitAnd`

error[E0271]: type mismatch resolving `<u32 as Shr<i32>>::Output == i32`
    |
    |
579 |         match c as u32 >> 8 {
    |                        ^^ expected `u32`, found `i32`

error[E0277]: no implementation for `u32 & i32`
   |
   |
70 |     output[3] = HEX_DIGITS[((c >> 20) & 15) as usize];
   |                                       ^ no implementation for `u32 & i32`
   |
   = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
   = help: the following other types implement trait `bit::BitAnd<Rhs>`:
             `&u32` implements `bit::BitAnd<u32>`
             `&u32` implements `bit::BitAnd`
             `u32` implements `bit::BitAnd<&u32>`
             `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   |
   |
71 |     output[4] = HEX_DIGITS[((c >> 16) & 15) as usize];
   |                                       ^ no implementation for `u32 & i32`
   |
   = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
   = help: the following other types implement trait `bit::BitAnd<Rhs>`:
             `&u32` implements `bit::BitAnd<u32>`
             `&u32` implements `bit::BitAnd`
             `u32` implements `bit::BitAnd<&u32>`
             `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   |
   |
72 |     output[5] = HEX_DIGITS[((c >> 12) & 15) as usize];
   |                                       ^ no implementation for `u32 & i32`
   |
   = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
   = help: the following other types implement trait `bit::BitAnd<Rhs>`:
             `&u32` implements `bit::BitAnd<u32>`
             `&u32` implements `bit::BitAnd`
             `u32` implements `bit::BitAnd<&u32>`
             `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   |
   |
73 |     output[6] = HEX_DIGITS[((c >> 8) & 15) as usize];
   |                                      ^ no implementation for `u32 & i32`
   |
   = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
   = help: the following other types implement trait `bit::BitAnd<Rhs>`:
             `&u32` implements `bit::BitAnd<u32>`
             `&u32` implements `bit::BitAnd`
             `u32` implements `bit::BitAnd<&u32>`
             `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   |
   |
74 |     output[7] = HEX_DIGITS[((c >> 4) & 15) as usize];
   |                                      ^ no implementation for `u32 & i32`
   |
   = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
   = help: the following other types implement trait `bit::BitAnd<Rhs>`:
             `&u32` implements `bit::BitAnd<u32>`
             `&u32` implements `bit::BitAnd`
             `u32` implements `bit::BitAnd<&u32>`
             `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   |
   |
75 |     output[8] = HEX_DIGITS[((c >> 0) & 15) as usize];
   |                                      ^ no implementation for `u32 & i32`
   |
   = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
   = help: the following other types implement trait `bit::BitAnd<Rhs>`:
             `&u32` implements `bit::BitAnd<u32>`
             `&u32` implements `bit::BitAnd`
             `u32` implements `bit::BitAnd<&u32>`
             `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
1019 |             (MASK as u32 >> 2) & 0b11,
     |                                ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
1020 |             ((MASK as u32 >> 4) & 0b11) + 4,
     |                                 ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
1021 |             ((MASK as u32 >> 6) & 0b11) + 4,
     |                                 ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
1458 |             (IMM8 as u32 >> 2) & 0b11,
     |                                ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
1459 |             (IMM8 as u32 >> 4) & 0b11,
     |                                ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
1460 |             (IMM8 as u32 >> 6) & 0b11,
     |                                ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
1490 |             ((IMM8 as u32 >> 2) & 0b11) + 4,
     |                                 ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
1491 |             ((IMM8 as u32 >> 4) & 0b11) + 4,
     |                                 ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
1492 |             ((IMM8 as u32 >> 6) & 0b11) + 4,
     |                                 ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
1518 |             (IMM8 as u32 >> 2) & 0b11,
     |                                ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
1519 |             (IMM8 as u32 >> 4) & 0b11,
     |                                ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
1520 |             (IMM8 as u32 >> 6) & 0b11,
     |                                ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
2814 |     simd_shuffle!(a, b, [MASK as u32 & 0b1, ((MASK as u32 >> 1) & 0b1) + 2])
     |                                                                 ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:123:33
    |
123 |             ((MASK as u32 >> 1) & 0b1) + 4,
    |                                 ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:124:33
    |
124 |             ((MASK as u32 >> 2) & 0b1) + 2,
    |                                 ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:125:33
    |
125 |             ((MASK as u32 >> 3) & 0b1) + 6,
    |                                 ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:146:32
    |
146 |             (MASK as u32 >> 2) & 0b11,
    |                                ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:147:33
    |
147 |             ((MASK as u32 >> 4) & 0b11) + 8,
    |                                 ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:148:33
    |
148 |             ((MASK as u32 >> 6) & 0b11) + 8,
    |                                 ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:150:33
    |
150 |             ((MASK as u32 >> 2) & 0b11) + 4,
    |                                 ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:151:33
    |
151 |             ((MASK as u32 >> 4) & 0b11) + 12,
    |                                 ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:152:33
    |
152 |             ((MASK as u32 >> 6) & 0b11) + 12,
    |                                 ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:474:33
    |
474 |             ((IMM4 as u32 >> 0) & 1) * 4 + 0,
    |                                 ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:475:33
    |
475 |             ((IMM4 as u32 >> 1) & 1) * 4 + 1,
    |                                 ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:476:33
    |
476 |             ((IMM4 as u32 >> 2) & 1) * 4 + 2,
    |                                 ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:477:33
    |
477 |             ((IMM4 as u32 >> 3) & 1) * 4 + 3,
    |                                 ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:497:33

@rust-log-analyzer
Copy link
Collaborator

The job dist-x86_64-linux failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
file:.git/config remote.origin.url=/~https://github.com/rust-lang-ci/rust
file:.git/config remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
file:.git/config gc.auto=0
file:.git/config http./~https://github.com/.extraheader=AUTHORIZATION: basic ***
file:.git/config branch.try.remote=origin
file:.git/config branch.try.merge=refs/heads/try
file:.git/config submodule.library/backtrace.url=/~https://github.com/rust-lang/backtrace-rs.git
file:.git/config submodule.library/stdarch.active=true
file:.git/config submodule.library/stdarch.url=/~https://github.com/rust-lang/stdarch.git
file:.git/config submodule.src/doc/book.active=true
---
   Compiling compiler_builtins v0.1.133
   Compiling profiler_builtins v0.0.0 (/checkout/library/profiler_builtins)
[RUSTC-TIMING] build_script_build test:false 0.108
[RUSTC-TIMING] build_script_build test:false 0.246
error[E0271]: type mismatch resolving `<i32 as Sub>::Output == usize`
    |
462 | / macro_rules! array_impl_default {
462 | / macro_rules! array_impl_default {
463 | |     {$n:expr, $t:ident $($ts:ident)*} => {
464 | |         #[stable(since = "1.4.0", feature = "array_default")]
465 | |         impl<T> Default for [T; $n] where T: Default {
...   |
470 | |         array_impl_default!{($n - 1), $($ts)*}
    | |                                 ^ expected `i32`, found `usize`
477 | |     };
478 | | }
    | |_- in this expansion of `array_impl_default!`
479 |
479 |
480 |   array_impl_default! {32, T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T}


error[E0119]: conflicting implementations of trait `default::Default` for type `[_; 32]`
    |
462 | / macro_rules! array_impl_default {
462 | / macro_rules! array_impl_default {
463 | |     {$n:expr, $t:ident $($ts:ident)*} => {
464 | |         #[stable(since = "1.4.0", feature = "array_default")]
465 | |         impl<T> Default for [T; $n] where T: Default {
    | |         |
    | |         first implementation here
    | |         first implementation here
    | |         conflicting implementation for `[_; 32]`
...   |
470 | |         array_impl_default!{($n - 1), $($ts)*}
...   |
477 | |     };
478 | | }
    | | -
    | | -
    | | |
    | |_in this expansion of `array_impl_default!` (#1)
    |   in this expansion of `array_impl_default!` (#2)
479 |
480 |   array_impl_default! {32, T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T}


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == usize`
    |
462 | / macro_rules! array_impl_default {
462 | / macro_rules! array_impl_default {
463 | |     {$n:expr, $t:ident $($ts:ident)*} => {
464 | |         #[stable(since = "1.4.0", feature = "array_default")]
465 | |         impl<T> Default for [T; $n] where T: Default {
...   |
470 | |         array_impl_default!{($n - 1), $($ts)*}
    | |         ------------------------^-------------
    | |         |                       expected `i32`, found `usize`
    | |         in this macro invocation (#2)
...   |
477 | |     };
477 | |     };
478 | | }
    | | -
    | | |
    | |_in this expansion of `array_impl_default!` (#1)
    |   in this expansion of `array_impl_default!` (#2)
479 |
480 |   array_impl_default! {32, T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T}


error[E0119]: conflicting implementations of trait `default::Default` for type `[_; 32]`
    |
462 | / macro_rules! array_impl_default {
462 | / macro_rules! array_impl_default {
463 | |     {$n:expr, $t:ident $($ts:ident)*} => {
464 | |         #[stable(since = "1.4.0", feature = "array_default")]
465 | |         impl<T> Default for [T; $n] where T: Default {
    | |         |
    | |         first implementation here
    | |         first implementation here
    | |         conflicting implementation for `[_; 32]`
...   |
470 | |         array_impl_default!{($n - 1), $($ts)*}
    | |         |
    | |         in this macro invocation (#2)
    | |         in this macro invocation (#3)
...   |
---
    | | in this expansion of `array_impl_default!` (#1)
    | |_in this expansion of `array_impl_default!` (#2)
    |   in this expansion of `array_impl_default!` (#3)
479 |
480 |   array_impl_default! {32, T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T}


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == usize`
    |
462 | / macro_rules! array_impl_default {
462 | / macro_rules! array_impl_default {
463 | |     {$n:expr, $t:ident $($ts:ident)*} => {
464 | |         #[stable(since = "1.4.0", feature = "array_default")]
465 | |         impl<T> Default for [T; $n] where T: Default {
...   |
470 | |         array_impl_default!{($n - 1), $($ts)*}
    | |         ------------------------^-------------
    | |         |                       expected `i32`, found `usize`
    | |         in this macro invocation (#2)
    | |         in this macro invocation (#3)
...   |
---
    | | in this expansion of `array_impl_default!` (#1)
    | |_in this expansion of `array_impl_default!` (#2)
    |   in this expansion of `array_impl_default!` (#3)
479 |
480 |   array_impl_default! {32, T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T}


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
   |
   |
13 |     const C1: u32 = 0b11_00000000 - 10; // 758
   |                                   ^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
   |
   |
15 |     const C2: u32 = 0b10_00000000 - 100; // 412
   |                                   ^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
   |
   |
31 |     const C1: u32 = 0b011_00000000000000000 - 10; // 393206
   |                                             ^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
   |
   |
32 |     const C2: u32 = 0b100_00000000000000000 - 100; // 524188
   |                                             ^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
   |
   |
33 |     const C3: u32 = 0b111_00000000000000000 - 1000; // 916504
   |                                             ^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
   |
   |
34 |     const C4: u32 = 0b100_00000000000000000 - 10000; // 514288
   |                                             ^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
    |
138 | / macro_rules! first_stage {
138 | / macro_rules! first_stage {
139 | |     ($original_bits:literal, $n:ident) => {{
140 | |         debug_assert!($n != 0, "`$n` is  zero in `first_stage!`.");
141 | |
142 | |         const N_SHIFT: u32 = $original_bits - 8;
    | |                                             ^ expected `i32`, found `u32`
166 | |     }};
167 | | }
    | |_- in this expansion of `first_stage!`
...
...
259 |       let (s, r) = first_stage!(16, n);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u16`
    |
229 | / macro_rules! last_stage {
229 | / macro_rules! last_stage {
230 | |     ($ty:ty, $n:ident, $s:ident, $r:ident) => {{
231 | |         debug_assert!($s != 0, "`$s` is  zero in `last_stage!`.");
...   |
235 | |         const LOWER_HALF_1_BITS: $ty = (1 << HALF_BITS) - 1;
    | |                                                         ^ expected `i32`, found `u16`
248 | |     }};
249 | | }
    | |_- in this expansion of `last_stage!`
...
...
260 |       last_stage!(u16, n, s, r)


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
    |
138 | / macro_rules! first_stage {
138 | / macro_rules! first_stage {
139 | |     ($original_bits:literal, $n:ident) => {{
140 | |         debug_assert!($n != 0, "`$n` is  zero in `first_stage!`.");
141 | |
142 | |         const N_SHIFT: u32 = $original_bits - 8;
    | |                                             ^ expected `i32`, found `u32`
166 | |     }};
167 | | }
    | |_- in this expansion of `first_stage!`
...
...
271 |       let (s, r) = first_stage!(32, n);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u16`
    |
174 | / macro_rules! middle_stage {
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
183 | |         const LOWER_HALF_1_BITS: $ty = (1 << HALF_BITS) - 1;
    | |                                                         ^ expected `i32`, found `u16`
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
...
...
272 |       let (s, r) = middle_stage!(32, u16, n, s, r);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u16`
    |
174 | / macro_rules! middle_stage {
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
184 | |         const LOWEST_QUARTER_1_BITS: $ty = (1 << QUARTER_BITS) - 1;
    | |                                                                ^ expected `i32`, found `u16`
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
...
...
272 |       let (s, r) = middle_stage!(32, u16, n, s, r);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
    |
229 | / macro_rules! last_stage {
229 | / macro_rules! last_stage {
230 | |     ($ty:ty, $n:ident, $s:ident, $r:ident) => {{
231 | |         debug_assert!($s != 0, "`$s` is  zero in `last_stage!`.");
...   |
235 | |         const LOWER_HALF_1_BITS: $ty = (1 << HALF_BITS) - 1;
    | |                                                         ^ expected `i32`, found `u32`
248 | |     }};
249 | | }
    | |_- in this expansion of `last_stage!`
...
...
273 |       last_stage!(u32, n, s, r)


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
    |
138 | / macro_rules! first_stage {
138 | / macro_rules! first_stage {
139 | |     ($original_bits:literal, $n:ident) => {{
140 | |         debug_assert!($n != 0, "`$n` is  zero in `first_stage!`.");
141 | |
142 | |         const N_SHIFT: u32 = $original_bits - 8;
    | |                                             ^ expected `i32`, found `u32`
166 | |     }};
167 | | }
    | |_- in this expansion of `first_stage!`
...
...
284 |       let (s, r) = first_stage!(64, n);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u16`
    |
174 | / macro_rules! middle_stage {
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
183 | |         const LOWER_HALF_1_BITS: $ty = (1 << HALF_BITS) - 1;
    | |                                                         ^ expected `i32`, found `u16`
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
...
...
285 |       let (s, r) = middle_stage!(64, u16, n, s, r);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u16`
    |
174 | / macro_rules! middle_stage {
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
184 | |         const LOWEST_QUARTER_1_BITS: $ty = (1 << QUARTER_BITS) - 1;
    | |                                                                ^ expected `i32`, found `u16`
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
...
...
285 |       let (s, r) = middle_stage!(64, u16, n, s, r);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
    |
174 | / macro_rules! middle_stage {
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
183 | |         const LOWER_HALF_1_BITS: $ty = (1 << HALF_BITS) - 1;
    | |                                                         ^ expected `i32`, found `u32`
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
...
...
286 |       let (s, r) = middle_stage!(64, u32, n, s, r);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
    |
174 | / macro_rules! middle_stage {
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
184 | |         const LOWEST_QUARTER_1_BITS: $ty = (1 << QUARTER_BITS) - 1;
    | |                                                                ^ expected `i32`, found `u32`
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
...
...
286 |       let (s, r) = middle_stage!(64, u32, n, s, r);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u64`
    |
229 | / macro_rules! last_stage {
229 | / macro_rules! last_stage {
230 | |     ($ty:ty, $n:ident, $s:ident, $r:ident) => {{
231 | |         debug_assert!($s != 0, "`$s` is  zero in `last_stage!`.");
...   |
235 | |         const LOWER_HALF_1_BITS: $ty = (1 << HALF_BITS) - 1;
    | |                                                         ^ expected `i32`, found `u64`
248 | |     }};
249 | | }
    | |_- in this expansion of `last_stage!`
...
...
287 |       last_stage!(u64, n, s, r)


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
    |
138 | / macro_rules! first_stage {
138 | / macro_rules! first_stage {
139 | |     ($original_bits:literal, $n:ident) => {{
140 | |         debug_assert!($n != 0, "`$n` is  zero in `first_stage!`.");
141 | |
142 | |         const N_SHIFT: u32 = $original_bits - 8;
    | |                                             ^ expected `i32`, found `u32`
166 | |     }};
167 | | }
    | |_- in this expansion of `first_stage!`
...
...
298 |       let (s, r) = first_stage!(128, n);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u16`
    |
174 | / macro_rules! middle_stage {
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
183 | |         const LOWER_HALF_1_BITS: $ty = (1 << HALF_BITS) - 1;
    | |                                                         ^ expected `i32`, found `u16`
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
...
...
299 |       let (s, r) = middle_stage!(128, u16, n, s, r);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u16`
    |
174 | / macro_rules! middle_stage {
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
184 | |         const LOWEST_QUARTER_1_BITS: $ty = (1 << QUARTER_BITS) - 1;
    | |                                                                ^ expected `i32`, found `u16`
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
...
...
299 |       let (s, r) = middle_stage!(128, u16, n, s, r);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
    |
174 | / macro_rules! middle_stage {
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
183 | |         const LOWER_HALF_1_BITS: $ty = (1 << HALF_BITS) - 1;
    | |                                                         ^ expected `i32`, found `u32`
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
...
...
300 |       let (s, r) = middle_stage!(128, u32, n, s, r);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
    |
174 | / macro_rules! middle_stage {
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
184 | |         const LOWEST_QUARTER_1_BITS: $ty = (1 << QUARTER_BITS) - 1;
    | |                                                                ^ expected `i32`, found `u32`
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
...
...
300 |       let (s, r) = middle_stage!(128, u32, n, s, r);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u64`
    |
174 | / macro_rules! middle_stage {
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
183 | |         const LOWER_HALF_1_BITS: $ty = (1 << HALF_BITS) - 1;
    | |                                                         ^ expected `i32`, found `u64`
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
...
...
301 |       let (s, r) = middle_stage!(128, u64, n, s, r);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u64`
    |
174 | / macro_rules! middle_stage {
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
184 | |         const LOWEST_QUARTER_1_BITS: $ty = (1 << QUARTER_BITS) - 1;
    | |                                                                ^ expected `i32`, found `u64`
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
...
...
301 |       let (s, r) = middle_stage!(128, u64, n, s, r);


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u128`
    |
229 | / macro_rules! last_stage {
229 | / macro_rules! last_stage {
230 | |     ($ty:ty, $n:ident, $s:ident, $r:ident) => {{
231 | |         debug_assert!($s != 0, "`$s` is  zero in `last_stage!`.");
...   |
235 | |         const LOWER_HALF_1_BITS: $ty = (1 << HALF_BITS) - 1;
    | |                                                         ^ expected `i32`, found `u128`
248 | |     }};
249 | | }
    | |_- in this expansion of `last_stage!`
...
...
302 |       last_stage!(u128, n, s, r)


error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
     |
     |
1077 |     pub const i8: u32 = (1 << 3) - 1;
     |                                  ^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
     |
     |
1078 |     pub const i16: u32 = (1 << 4) - 1;
     |                                   ^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
     |
     |
1079 |     pub const i32: u32 = (1 << 5) - 1;
     |                                   ^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
     |
     |
1080 |     pub const i64: u32 = (1 << 6) - 1;
     |                                   ^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
     |
     |
1081 |     pub const i128: u32 = (1 << 7) - 1;
     |                                    ^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
303 |     _Align1Shl0 = 1 << 0,
    |                     ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
304 |     _Align1Shl1 = 1 << 1,
    |                     ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
305 |     _Align1Shl2 = 1 << 2,
    |                     ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
306 |     _Align1Shl3 = 1 << 3,
    |                     ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
307 |     _Align1Shl4 = 1 << 4,
    |                     ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
308 |     _Align1Shl5 = 1 << 5,
    |                     ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
309 |     _Align1Shl6 = 1 << 6,
    |                     ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
310 |     _Align1Shl7 = 1 << 7,
    |                     ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
311 |     _Align1Shl8 = 1 << 8,
    |                     ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
312 |     _Align1Shl9 = 1 << 9,
    |                     ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
313 |     _Align1Shl10 = 1 << 10,
    |                      ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
314 |     _Align1Shl11 = 1 << 11,
    |                      ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
315 |     _Align1Shl12 = 1 << 12,
    |                      ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
316 |     _Align1Shl13 = 1 << 13,
    |                      ^^ expected `i32`, found `u64`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u64`
    |
    |
---
1626 | |             double_ty = u64,
1627 | |         )
     | |_________- in this macro invocation
     |
     = help: the trait `arith::Div<i32>` is not implemented for `i16`
     = help: the following other types implement trait `arith::Div<Rhs>`:
               `&i16` implements `arith::Div<i16>`
               `&i16` implements `arith::Div`
               `i16` implements `arith::Div<&i16>`
               `i16` implements `arith::Div`

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
     |
1481 | / macro_rules! try_from_secs {
1482 | |     (
1482 | |     (
1483 | |         secs = $secs: expr,
1484 | |         mantissa_bits = $mant_bits: literal,
...    |
1491 | |         const MANT_MASK: $bits_ty = (1 << $mant_bits) - 1;
     | |                                                       ^ expected `i32`, found `u32`
1558 | |     }};
1559 | | }
     | |_- in this expansion of `try_from_secs!`
...
---
1626 | |             double_ty = u64,
1627 | |         )
     | |_________- in this macro invocation

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u32`
     |
1481 | / macro_rules! try_from_secs {
1482 | |     (
1482 | |     (
1483 | |         secs = $secs: expr,
1484 | |         mantissa_bits = $mant_bits: literal,
...    |
1492 | |         const EXP_MASK: $bits_ty = (1 << $exp_bits) - 1;
     | |                                                     ^ expected `i32`, found `u32`
1558 | |     }};
1559 | | }
     | |_- in this expansion of `try_from_secs!`
...
---
    --> core/src/time.rs:1490:54
     |
1481 | / macro_rules! try_from_secs {
1482 | |     (
1483 | |         secs = $secs: expr,
1484 | |         mantissa_bits = $mant_bits: literal,
...    |
1490 | |         const MIN_EXP: i16 = 1 - (1i16 << $exp_bits) / 2;
     | |                                                      ^ no implementation for `i16 / i32`
1558 | |     }};
1559 | | }
     | |_- in this expansion of `try_from_secs!`
...
---
1702 | |             double_ty = u128,
1703 | |         )
     | |_________- in this macro invocation
     |
     = help: the trait `arith::Div<i32>` is not implemented for `i16`
     = help: the following other types implement trait `arith::Div<Rhs>`:
               `&i16` implements `arith::Div<i16>`
               `&i16` implements `arith::Div`
               `i16` implements `arith::Div<&i16>`
               `i16` implements `arith::Div`

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u64`
     |
1481 | / macro_rules! try_from_secs {
1482 | |     (
1482 | |     (
1483 | |         secs = $secs: expr,
1484 | |         mantissa_bits = $mant_bits: literal,
...    |
1491 | |         const MANT_MASK: $bits_ty = (1 << $mant_bits) - 1;
     | |                                                       ^ expected `i32`, found `u64`
1558 | |     }};
1559 | | }
     | |_- in this expansion of `try_from_secs!`
...
---
1702 | |             double_ty = u128,
1703 | |         )
     | |_________- in this macro invocation

error[E0271]: type mismatch resolving `<i32 as Sub>::Output == u64`
     |
1481 | / macro_rules! try_from_secs {
1482 | |     (
1482 | |     (
1483 | |         secs = $secs: expr,
1484 | |         mantissa_bits = $mant_bits: literal,
...    |
1492 | |         const EXP_MASK: $bits_ty = (1 << $exp_bits) - 1;
     | |                                                     ^ expected `i32`, found `u64`
1558 | |     }};
1559 | | }
     | |_- in this expansion of `try_from_secs!`
...
---
1702 | |             double_ty = u128,
1703 | |         )
     | |_________- in this macro invocation

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u32`
  --> core/src/../../stdarch/crates/core_arch/src/x86/rtm.rs:38:37
   |
38 | pub const _XABORT_EXPLICIT: u32 = 1 << 0;
   |                                     ^^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u32`
  --> core/src/../../stdarch/crates/core_arch/src/x86/rtm.rs:42:34
   |
42 | pub const _XABORT_RETRY: u32 = 1 << 1;
   |                                  ^^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u32`
  --> core/src/../../stdarch/crates/core_arch/src/x86/rtm.rs:46:37
   |
46 | pub const _XABORT_CONFLICT: u32 = 1 << 2;
   |                                     ^^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u32`
  --> core/src/../../stdarch/crates/core_arch/src/x86/rtm.rs:50:37
   |
50 | pub const _XABORT_CAPACITY: u32 = 1 << 3;
   |                                     ^^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u32`
  --> core/src/../../stdarch/crates/core_arch/src/x86/rtm.rs:54:34
   |
54 | pub const _XABORT_DEBUG: u32 = 1 << 4;
   |                                  ^^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Shl>::Output == u32`
  --> core/src/../../stdarch/crates/core_arch/src/x86/rtm.rs:58:35
   |
58 | pub const _XABORT_NESTED: u32 = 1 << 5;
   |                                   ^^ expected `i32`, found `u32`

error[E0271]: type mismatch resolving `<i32 as Div>::Output == usize`
  --> core/src/../../portable-simd/crates/core_simd/src/lane_count.rs:30:50
26 | / macro_rules! supported_lane_count {
26 | / macro_rules! supported_lane_count {
27 | |     ($($lanes:literal),+) => {
28 | |         $(
29 | |             impl SupportedLaneCount for LaneCount<$lanes> {
30 | |                 type BitMask = [u8; ($lanes + 7) / 8];
   | |                                                  ^ expected `i32`, found `usize`
33 | |     };
34 | | }
   | |_- in this expansion of `supported_lane_count!`
35 |
35 |
36 |   supported_lane_count!(1, 2, 4, 8, 16, 32, 64);


error[E0271]: type mismatch resolving `<i32 as Mul>::Output == usize`
    |
54  | / macro_rules! impl_to_bytes {
54  | / macro_rules! impl_to_bytes {
55  | |     { $ty:tt, 1  } => { impl_to_bytes! { $ty, 1  * [1, 2, 4, 8, 16, 32, 64] } };
    | |                         ----------------------------------------------------- in this macro invocation (#2)
56  | |     { $ty:tt, 2  } => { impl_to_bytes! { $ty, 2  * [1, 2, 4, 8, 16, 32] } };
57  | |     { $ty:tt, 4  } => { impl_to_bytes! { $ty, 4  * [1, 2, 4, 8, 16] } };
...   |
66  | |             type Bytes = Simd<u8, { $size * $elems }>;
    | |                                           ^ expected `i32`, found `usize`
123 | |     }
124 | | }
    | | -
    | | |
    | | |
    | |_in this expansion of `impl_to_bytes!` (#1)
    |   in this expansion of `impl_to_bytes!` (#2)
125 |
126 |   impl_to_bytes! { u8, 1 }


error[E0271]: type mismatch resolving `<i32 as Mul>::Output == usize`
    |
54  | / macro_rules! impl_to_bytes {
54  | / macro_rules! impl_to_bytes {
55  | |     { $ty:tt, 1  } => { impl_to_bytes! { $ty, 1  * [1, 2, 4, 8, 16, 32, 64] } };
56  | |     { $ty:tt, 2  } => { impl_to_bytes! { $ty, 2  * [1, 2, 4, 8, 16, 32] } };
    | |                         ------------------------------------------------- in this macro invocation (#2)
57  | |     { $ty:tt, 4  } => { impl_to_bytes! { $ty, 4  * [1, 2, 4, 8, 16] } };
...   |
66  | |             type Bytes = Simd<u8, { $size * $elems }>;
    | |                                           ^ expected `i32`, found `usize`
123 | |     }
124 | | }
    | | -
    | | |
    | | |
    | |_in this expansion of `impl_to_bytes!` (#1)
    |   in this expansion of `impl_to_bytes!` (#2)
...
127 |   impl_to_bytes! { u16, 2 }


error[E0271]: type mismatch resolving `<i32 as Mul>::Output == usize`
    |
54  | / macro_rules! impl_to_bytes {
54  | / macro_rules! impl_to_bytes {
55  | |     { $ty:tt, 1  } => { impl_to_bytes! { $ty, 1  * [1, 2, 4, 8, 16, 32, 64] } };
56  | |     { $ty:tt, 2  } => { impl_to_bytes! { $ty, 2  * [1, 2, 4, 8, 16, 32] } };
57  | |     { $ty:tt, 4  } => { impl_to_bytes! { $ty, 4  * [1, 2, 4, 8, 16] } };
...   |
...   |
66  | |             type Bytes = Simd<u8, { $size * $elems }>;
    | |                                           ^ expected `i32`, found `usize`
123 | |     }
124 | | }
    | | -
    | | |
    | | |
    | |_in this expansion of `impl_to_bytes!` (#1)
    |   in this expansion of `impl_to_bytes!` (#2)
...
128 |   impl_to_bytes! { u32, 4 }


error[E0271]: type mismatch resolving `<i32 as Mul>::Output == usize`
    |
54  | / macro_rules! impl_to_bytes {
54  | / macro_rules! impl_to_bytes {
55  | |     { $ty:tt, 1  } => { impl_to_bytes! { $ty, 1  * [1, 2, 4, 8, 16, 32, 64] } };
56  | |     { $ty:tt, 2  } => { impl_to_bytes! { $ty, 2  * [1, 2, 4, 8, 16, 32] } };
57  | |     { $ty:tt, 4  } => { impl_to_bytes! { $ty, 4  * [1, 2, 4, 8, 16] } };
58  | |     { $ty:tt, 8  } => { impl_to_bytes! { $ty, 8  * [1, 2, 4, 8] } };
...   |
...   |
66  | |             type Bytes = Simd<u8, { $size * $elems }>;
    | |                                           ^ expected `i32`, found `usize`
123 | |     }
124 | | }
    | | -
    | | |
    | | |
    | |_in this expansion of `impl_to_bytes!` (#1)
    |   in this expansion of `impl_to_bytes!` (#2)
...
129 |   impl_to_bytes! { u64, 8 }


error[E0271]: type mismatch resolving `<i32 as Mul>::Output == usize`
    |
54  | / macro_rules! impl_to_bytes {
54  | / macro_rules! impl_to_bytes {
55  | |     { $ty:tt, 1  } => { impl_to_bytes! { $ty, 1  * [1, 2, 4, 8, 16, 32, 64] } };
56  | |     { $ty:tt, 2  } => { impl_to_bytes! { $ty, 2  * [1, 2, 4, 8, 16, 32] } };
57  | |     { $ty:tt, 4  } => { impl_to_bytes! { $ty, 4  * [1, 2, 4, 8, 16] } };
58  | |     { $ty:tt, 8  } => { impl_to_bytes! { $ty, 8  * [1, 2, 4, 8] } };
...   |
...   |
66  | |             type Bytes = Simd<u8, { $size * $elems }>;
    | |                                           ^ expected `i32`, found `usize`
123 | |     }
124 | | }
    | | -
    | | |
    | | |
    | |_in this expansion of `impl_to_bytes!` (#1)
    |   in this expansion of `impl_to_bytes!` (#2)
...
133 |   impl_to_bytes! { usize, 8 }


error[E0271]: type mismatch resolving `<i32 as Mul>::Output == usize`
    |
54  | / macro_rules! impl_to_bytes {
54  | / macro_rules! impl_to_bytes {
55  | |     { $ty:tt, 1  } => { impl_to_bytes! { $ty, 1  * [1, 2, 4, 8, 16, 32, 64] } };
    | |                         ----------------------------------------------------- in this macro invocation (#2)
56  | |     { $ty:tt, 2  } => { impl_to_bytes! { $ty, 2  * [1, 2, 4, 8, 16, 32] } };
57  | |     { $ty:tt, 4  } => { impl_to_bytes! { $ty, 4  * [1, 2, 4, 8, 16] } };
...   |
66  | |             type Bytes = Simd<u8, { $size * $elems }>;
    | |                                           ^ expected `i32`, found `usize`
123 | |     }
124 | | }
    | | -
    | | |
    | | |
    | |_in this expansion of `impl_to_bytes!` (#1)
    |   in this expansion of `impl_to_bytes!` (#2)
...
135 |   impl_to_bytes! { i8, 1 }


error[E0271]: type mismatch resolving `<i32 as Mul>::Output == usize`
    |
54  | / macro_rules! impl_to_bytes {
54  | / macro_rules! impl_to_bytes {
55  | |     { $ty:tt, 1  } => { impl_to_bytes! { $ty, 1  * [1, 2, 4, 8, 16, 32, 64] } };
56  | |     { $ty:tt, 2  } => { impl_to_bytes! { $ty, 2  * [1, 2, 4, 8, 16, 32] } };
    | |                         ------------------------------------------------- in this macro invocation (#2)
57  | |     { $ty:tt, 4  } => { impl_to_bytes! { $ty, 4  * [1, 2, 4, 8, 16] } };
...   |
66  | |             type Bytes = Simd<u8, { $size * $elems }>;
    | |                                           ^ expected `i32`, found `usize`
123 | |     }
124 | | }
    | | -
    | | |
    | | |
    | |_in this expansion of `impl_to_bytes!` (#1)
    |   in this expansion of `impl_to_bytes!` (#2)
...
136 |   impl_to_bytes! { i16, 2 }


error[E0271]: type mismatch resolving `<i32 as Mul>::Output == usize`
    |
54  | / macro_rules! impl_to_bytes {
54  | / macro_rules! impl_to_bytes {
55  | |     { $ty:tt, 1  } => { impl_to_bytes! { $ty, 1  * [1, 2, 4, 8, 16, 32, 64] } };
56  | |     { $ty:tt, 2  } => { impl_to_bytes! { $ty, 2  * [1, 2, 4, 8, 16, 32] } };
57  | |     { $ty:tt, 4  } => { impl_to_bytes! { $ty, 4  * [1, 2, 4, 8, 16] } };
...   |
...   |
66  | |             type Bytes = Simd<u8, { $size * $elems }>;
    | |                                           ^ expected `i32`, found `usize`
123 | |     }
124 | | }
    | | -
    | | |
    | | |
    | |_in this expansion of `impl_to_bytes!` (#1)
    |   in this expansion of `impl_to_bytes!` (#2)
...
137 |   impl_to_bytes! { i32, 4 }


error[E0271]: type mismatch resolving `<i32 as Mul>::Output == usize`
    |
54  | / macro_rules! impl_to_bytes {
54  | / macro_rules! impl_to_bytes {
55  | |     { $ty:tt, 1  } => { impl_to_bytes! { $ty, 1  * [1, 2, 4, 8, 16, 32, 64] } };
56  | |     { $ty:tt, 2  } => { impl_to_bytes! { $ty, 2  * [1, 2, 4, 8, 16, 32] } };
57  | |     { $ty:tt, 4  } => { impl_to_bytes! { $ty, 4  * [1, 2, 4, 8, 16] } };
58  | |     { $ty:tt, 8  } => { impl_to_bytes! { $ty, 8  * [1, 2, 4, 8] } };
...   |
...   |
66  | |             type Bytes = Simd<u8, { $size * $elems }>;
    | |                                           ^ expected `i32`, found `usize`
123 | |     }
124 | | }
    | | -
    | | |
    | | |
    | |_in this expansion of `impl_to_bytes!` (#1)
    |   in this expansion of `impl_to_bytes!` (#2)
...
138 |   impl_to_bytes! { i64, 8 }


error[E0271]: type mismatch resolving `<i32 as Mul>::Output == usize`
    |
54  | / macro_rules! impl_to_bytes {
54  | / macro_rules! impl_to_bytes {
55  | |     { $ty:tt, 1  } => { impl_to_bytes! { $ty, 1  * [1, 2, 4, 8, 16, 32, 64] } };
56  | |     { $ty:tt, 2  } => { impl_to_bytes! { $ty, 2  * [1, 2, 4, 8, 16, 32] } };
57  | |     { $ty:tt, 4  } => { impl_to_bytes! { $ty, 4  * [1, 2, 4, 8, 16] } };
58  | |     { $ty:tt, 8  } => { impl_to_bytes! { $ty, 8  * [1, 2, 4, 8] } };
...   |
...   |
66  | |             type Bytes = Simd<u8, { $size * $elems }>;
    | |                                           ^ expected `i32`, found `usize`
123 | |     }
124 | | }
    | | -
    | | |
    | | |
    | |_in this expansion of `impl_to_bytes!` (#1)
    |   in this expansion of `impl_to_bytes!` (#2)
...
142 |   impl_to_bytes! { isize, 8 }


error[E0271]: type mismatch resolving `<i32 as Mul>::Output == usize`
    |
54  | / macro_rules! impl_to_bytes {
54  | / macro_rules! impl_to_bytes {
55  | |     { $ty:tt, 1  } => { impl_to_bytes! { $ty, 1  * [1, 2, 4, 8, 16, 32, 64] } };
56  | |     { $ty:tt, 2  } => { impl_to_bytes! { $ty, 2  * [1, 2, 4, 8, 16, 32] } };
57  | |     { $ty:tt, 4  } => { impl_to_bytes! { $ty, 4  * [1, 2, 4, 8, 16] } };
...   |
...   |
66  | |             type Bytes = Simd<u8, { $size * $elems }>;
    | |                                           ^ expected `i32`, found `usize`
123 | |     }
124 | | }
    | | -
    | | |
    | | |
    | |_in this expansion of `impl_to_bytes!` (#1)
    |   in this expansion of `impl_to_bytes!` (#2)
...
144 |   impl_to_bytes! { f32, 4 }


error[E0271]: type mismatch resolving `<i32 as Mul>::Output == usize`
    |
54  | / macro_rules! impl_to_bytes {
54  | / macro_rules! impl_to_bytes {
55  | |     { $ty:tt, 1  } => { impl_to_bytes! { $ty, 1  * [1, 2, 4, 8, 16, 32, 64] } };
56  | |     { $ty:tt, 2  } => { impl_to_bytes! { $ty, 2  * [1, 2, 4, 8, 16, 32] } };
57  | |     { $ty:tt, 4  } => { impl_to_bytes! { $ty, 4  * [1, 2, 4, 8, 16] } };
58  | |     { $ty:tt, 8  } => { impl_to_bytes! { $ty, 8  * [1, 2, 4, 8] } };
...   |
...   |
66  | |             type Bytes = Simd<u8, { $size * $elems }>;
    | |                                           ^ expected `i32`, found `usize`
123 | |     }
124 | | }
    | | -
    | | |
    | | |
    | |_in this expansion of `impl_to_bytes!` (#1)
    |   in this expansion of `impl_to_bytes!` (#2)
...
145 |   impl_to_bytes! { f64, 8 }

error[E0282]: type annotations needed
   --> core/src/num/int_sqrt.rs:243:37
    |
    |
229 | / macro_rules! last_stage {
230 | |     ($ty:ty, $n:ident, $s:ident, $r:ident) => {{
231 | |         debug_assert!($s != 0, "`$s` is  zero in `last_stage!`.");
...   |
243 | |         let (s_squared, overflow) = s.overflowing_mul(s);
    | |                                     ^ cannot infer type
248 | |     }};
249 | | }
    | |_- in this expansion of `last_stage!`
...
...
260 |       last_stage!(u16, n, s, r)

error[E0282]: type annotations needed
   --> core/src/num/int_sqrt.rs:194:13
    |
    |
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
194 | |             ((u << QUARTER_BITS) | (lo & LOWEST_QUARTER_1_BITS)).overflowing_sub(q * q);
...   |
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
    | |_- in this expansion of `middle_stage!`
...
272 |       let (s, r) = middle_stage!(32, u16, n, s, r);

error[E0282]: type annotations needed
   --> core/src/num/int_sqrt.rs:194:13
    |
    |
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
194 | |             ((u << QUARTER_BITS) | (lo & LOWEST_QUARTER_1_BITS)).overflowing_sub(q * q);
...   |
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
    | |_- in this expansion of `middle_stage!`
...
285 |       let (s, r) = middle_stage!(64, u16, n, s, r);

error[E0282]: type annotations needed
   --> core/src/num/int_sqrt.rs:194:13
    |
    |
174 | / macro_rules! middle_stage {
175 | |     ($original_bits:literal, $ty:ty, $n:ident, $s:ident, $r:ident) => {{
176 | |         debug_assert!($s != 0, "`$s` is  zero in `middle_stage!`.");
...   |
194 | |             ((u << QUARTER_BITS) | (lo & LOWEST_QUARTER_1_BITS)).overflowing_sub(q * q);
...   |
221 | |     }};
222 | | }
    | |_- in this expansion of `middle_stage!`
    | |_- in this expansion of `middle_stage!`
...
299 |       let (s, r) = middle_stage!(128, u16, n, s, r);


error[E0277]: no implementation for `u128 & i32`
    |
    |
504 |         (self.to_bits() & (1 << 127)) != 0
    |                         ^ no implementation for `u128 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u128`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u128` implements `bit::BitAnd<u128>`
              `&u128` implements `bit::BitAnd`
              `u128` implements `bit::BitAnd<&u128>`
              `u128` implements `bit::BitAnd`

error[E0277]: no implementation for `u16 & i32`
    |
    |
495 |         (self.to_bits() & (1 << 15)) != 0
    |                         ^ no implementation for `u16 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u16`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u16` implements `bit::BitAnd<u16>`
              `&u16` implements `bit::BitAnd`
              `u16` implements `bit::BitAnd<&u16>`
              `u16` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 |= i32`
   --> core/src/num/bignum.rs:370:43
70  | / macro_rules! define_bignum {
70  | / macro_rules! define_bignum {
71  | |     ($name:ident: type=$ty:ty, n=$n:expr) => {
72  | |         /// Stack-allocated arbitrary-precision (up to certain limit) integer.
...   |
...   |
370 | |                         q.base[digit_idx] |= 1 << bit_idx;
    | |                                           ^^ no implementation for `u32 |= i32`
420 | |     };
421 | | }
    | |_- in this expansion of `define_bignum!`
...
...
426 |   define_bignum!(Big32x40: type=Digit32, n=40);
    |
    |
    = help: the trait `BitOrAssign<i32>` is not implemented for `u32`
    = help: the following other types implement trait `BitOrAssign<Rhs>`:
              `u32` implements `BitOrAssign<&u32>`
              `u32` implements `BitOrAssign`

error[E0277]: no implementation for `u8 |= i32`
   --> core/src/num/bignum.rs:370:43
70  | / macro_rules! define_bignum {
70  | / macro_rules! define_bignum {
71  | |     ($name:ident: type=$ty:ty, n=$n:expr) => {
72  | |         /// Stack-allocated arbitrary-precision (up to certain limit) integer.
...   |
...   |
370 | |                         q.base[digit_idx] |= 1 << bit_idx;
    | |                                           ^^ no implementation for `u8 |= i32`
420 | |     };
421 | | }
    | |_- in this expansion of `define_bignum!`
...
...
431 |       define_bignum!(Big8x3: type=u8, n=3);
    |
    |
    = help: the trait `BitOrAssign<i32>` is not implemented for `u8`
    = help: the following other types implement trait `BitOrAssign<Rhs>`:
              `u8` implements `BitOrAssign<&u8>`
              `u8` implements `BitOrAssign`
error[E0277]: can't compare `u32` with `i32`
   --> core/src/num/dec2flt/float.rs:142:38
    |
    |
142 |         let sign: i8 = if bits >> 31 == 0 { 1 } else { -1 };
    |                                      ^^ no implementation for `u32 == i32`
    |
    = help: the trait `cmp::PartialEq<i32>` is not implemented for `u32`
    = help: the trait `cmp::PartialEq` is implemented for `u32`
    = help: for that trait implementation, expected `u32`, found `i32`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/num/dec2flt/float.rs:143:47
    |
143 |         let mut exponent: i16 = ((bits >> 23) & 0xff) as i16;
    |                                               ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: cannot subtract-assign `i32` from `i16`
   --> core/src/num/dec2flt/float.rs:147:18
    |
147 |         exponent -= 127 + 23;
    |                  ^^ no implementation for `i16 -= i32`
    |
    = help: the trait `SubAssign<i32>` is not implemented for `i16`
    = help: the following other types implement trait `SubAssign<Rhs>`:
              `i16` implements `SubAssign<&i16>`
              `i16` implements `SubAssign`
error[E0277]: can't compare `u64` with `i32`
---
1626 | |             double_ty = u64,
1627 | |         )
     | |_________- in this macro invocation
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u64`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u64` implements `bit::BitAnd<u64>`
               `&u64` implements `bit::BitAnd`
               `u64` implements `bit::BitAnd<&u64>`
               `u64` implements `bit::BitAnd`

error[E0277]: no implementation for `u128 & i32`
     |
1481 | / macro_rules! try_from_secs {
1482 | |     (
1482 | |     (
1483 | |         secs = $secs: expr,
1484 | |         mantissa_bits = $mant_bits: literal,
...    |
1514 | |             let rem = nanos_tmp & rem_mask;
     | |                                 ^ no implementation for `u128 & i32`
1558 | |     }};
1559 | | }
     | |_- in this expansion of `try_from_secs!`
...
---
1626 | |             double_ty = u64,
1627 | |         )
     | |_________- in this macro invocation
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u128`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u128` implements `bit::BitAnd<u128>`
               `&u128` implements `bit::BitAnd`
               `u128` implements `bit::BitAnd<&u128>`
               `u128` implements `bit::BitAnd`

error[E0277]: no implementation for `u128 & i32`
     |
1481 | / macro_rules! try_from_secs {
1482 | |     (
1482 | |     (
1483 | |         secs = $secs: expr,
1484 | |         mantissa_bits = $mant_bits: literal,
...    |
1517 | |             let rem_msb = nanos_tmp & rem_msb_mask == 0;
     | |                                     ^ no implementation for `u128 & i32`
1558 | |     }};
1559 | | }
     | |_- in this expansion of `try_from_secs!`
...
---
1626 | |             double_ty = u64,
1627 | |         )
     | |_________- in this macro invocation
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u128`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u128` implements `bit::BitAnd<u128>`
               `&u128` implements `bit::BitAnd`
               `u128` implements `bit::BitAnd<&u128>`
               `u128` implements `bit::BitAnd`

error[E0277]: no implementation for `u64 & i32`
     |
1481 | / macro_rules! try_from_secs {
1482 | |     (
1482 | |     (
1483 | |         secs = $secs: expr,
1484 | |         mantissa_bits = $mant_bits: literal,
...    |
1536 | |             let rem_msb = nanos_tmp & rem_msb_mask == 0;
     | |                                     ^ no implementation for `u64 & i32`
1558 | |     }};
1559 | | }
     | |_- in this expansion of `try_from_secs!`
...
---
1626 | |             double_ty = u64,
1627 | |         )
     | |_________- in this macro invocation
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u64`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u64` implements `bit::BitAnd<u64>`
               `&u64` implements `bit::BitAnd`
               `u64` implements `bit::BitAnd<&u64>`
               `u64` implements `bit::BitAnd`

error[E0277]: no implementation for `u128 & i32`
     |
1481 | / macro_rules! try_from_secs {
1482 | |     (
1482 | |     (
1483 | |         secs = $secs: expr,
1484 | |         mantissa_bits = $mant_bits: literal,
...    |
1533 | |             let rem = nanos_tmp & rem_mask;
     | |                                 ^ no implementation for `u128 & i32`
1558 | |     }};
1559 | | }
     | |_- in this expansion of `try_from_secs!`
...
---
1702 | |             double_ty = u128,
1703 | |         )
     | |_________- in this macro invocation
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u128`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u128` implements `bit::BitAnd<u128>`
               `&u128` implements `bit::BitAnd`
               `u128` implements `bit::BitAnd<&u128>`
               `u128` implements `bit::BitAnd`

error[E0277]: no implementation for `u128 & i32`
     |
1481 | / macro_rules! try_from_secs {
1482 | |     (
1482 | |     (
1483 | |         secs = $secs: expr,
1484 | |         mantissa_bits = $mant_bits: literal,
...    |
1514 | |             let rem = nanos_tmp & rem_mask;
     | |                                 ^ no implementation for `u128 & i32`
1558 | |     }};
1559 | | }
     | |_- in this expansion of `try_from_secs!`
...
---
1702 | |             double_ty = u128,
1703 | |         )
     | |_________- in this macro invocation
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u128`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u128` implements `bit::BitAnd<u128>`
               `&u128` implements `bit::BitAnd`
               `u128` implements `bit::BitAnd<&u128>`
               `u128` implements `bit::BitAnd`

error[E0277]: no implementation for `u128 & i32`
     |
1481 | / macro_rules! try_from_secs {
1482 | |     (
1482 | |     (
1483 | |         secs = $secs: expr,
1484 | |         mantissa_bits = $mant_bits: literal,
...    |
1517 | |             let rem_msb = nanos_tmp & rem_msb_mask == 0;
     | |                                     ^ no implementation for `u128 & i32`
1558 | |     }};
1559 | | }
     | |_- in this expansion of `try_from_secs!`
...
---
1702 | |             double_ty = u128,
1703 | |         )
     | |_________- in this macro invocation
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u128`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u128` implements `bit::BitAnd<u128>`
               `&u128` implements `bit::BitAnd`
               `u128` implements `bit::BitAnd<&u128>`
               `u128` implements `bit::BitAnd`

error[E0277]: no implementation for `u128 & i32`
     |
1481 | / macro_rules! try_from_secs {
1482 | |     (
1482 | |     (
1483 | |         secs = $secs: expr,
1484 | |         mantissa_bits = $mant_bits: literal,
...    |
1536 | |             let rem_msb = nanos_tmp & rem_msb_mask == 0;
     | |                                     ^ no implementation for `u128 & i32`
1558 | |     }};
1559 | | }
     | |_- in this expansion of `try_from_secs!`
...
---
1702 | |             double_ty = u128,
1703 | |         )
     | |_________- in this macro invocation
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u128`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u128` implements `bit::BitAnd<u128>`
               `&u128` implements `bit::BitAnd`
               `u128` implements `bit::BitAnd<&u128>`
               `u128` implements `bit::BitAnd`

error[E0277]: no implementation for `u8 & i32`
   |
   |
34 |         let should_invert = mapping & (1 << 6) != 0;
   |                                     ^ no implementation for `u8 & i32`
   |
   = help: the trait `bit::BitAnd<i32>` is not implemented for `u8`
   = help: the following other types implement trait `bit::BitAnd<Rhs>`:
             `&u8` implements `bit::BitAnd<u8>`
             `&u8` implements `bit::BitAnd`
             `u8` implements `bit::BitAnd<&u8>`
             `u8` implements `bit::BitAnd`

error[E0277]: no implementation for `u8 & i32`
   |
   |
39 |         let quantity = mapping & ((1 << 6) - 1);
   |                                ^ no implementation for `u8 & i32`
   |
   = help: the trait `bit::BitAnd<i32>` is not implemented for `u8`
   = help: the following other types implement trait `bit::BitAnd<Rhs>`:
             `&u8` implements `bit::BitAnd<u8>`
             `&u8` implements `bit::BitAnd`
             `u8` implements `bit::BitAnd<&u8>`
             `u8` implements `bit::BitAnd`

error[E0277]: no implementation for `u8 & i32`
   |
   |
40 |         if mapping & (1 << 7) != 0 {
   |                    ^ no implementation for `u8 & i32`
   |
   = help: the trait `bit::BitAnd<i32>` is not implemented for `u8`
   = help: the following other types implement trait `bit::BitAnd<Rhs>`:
             `&u8` implements `bit::BitAnd<u8>`
             `&u8` implements `bit::BitAnd`
             `u8` implements `bit::BitAnd<&u8>`
             `u8` implements `bit::BitAnd`

error[E0277]: no implementation for `u64 & i32`
   |
   |
48 |     (word & (1 << (needle % 64) as u64)) != 0
   |           ^ no implementation for `u64 & i32`
   |
   = help: the trait `bit::BitAnd<i32>` is not implemented for `u64`
   = help: the following other types implement trait `bit::BitAnd<Rhs>`:
             `&u64` implements `bit::BitAnd<u64>`
             `&u64` implements `bit::BitAnd`
             `u64` implements `bit::BitAnd<&u64>`
             `u64` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   |
   |
52 |     short_offset_run_header & ((1 << 21) - 1)
   |                             ^ no implementation for `u32 & i32`
   |
   = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
   = help: the following other types implement trait `bit::BitAnd<Rhs>`:
             `&u32` implements `bit::BitAnd<u32>`
             `&u32` implements `bit::BitAnd`
             `u32` implements `bit::BitAnd<&u32>`
             `u32` implements `bit::BitAnd`

error[E0271]: type mismatch resolving `<u32 as Shr<i32>>::Output == i32`
    |
    |
579 |         match c as u32 >> 8 {
    |                        ^^ expected `u32`, found `i32`

error[E0277]: no implementation for `u32 & i32`
   |
   |
70 |     output[3] = HEX_DIGITS[((c >> 20) & 15) as usize];
   |                                       ^ no implementation for `u32 & i32`
   |
   = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
   = help: the following other types implement trait `bit::BitAnd<Rhs>`:
             `&u32` implements `bit::BitAnd<u32>`
             `&u32` implements `bit::BitAnd`
             `u32` implements `bit::BitAnd<&u32>`
             `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   |
   |
71 |     output[4] = HEX_DIGITS[((c >> 16) & 15) as usize];
   |                                       ^ no implementation for `u32 & i32`
   |
   = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
   = help: the following other types implement trait `bit::BitAnd<Rhs>`:
             `&u32` implements `bit::BitAnd<u32>`
             `&u32` implements `bit::BitAnd`
             `u32` implements `bit::BitAnd<&u32>`
             `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   |
   |
72 |     output[5] = HEX_DIGITS[((c >> 12) & 15) as usize];
   |                                       ^ no implementation for `u32 & i32`
   |
   = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
   = help: the following other types implement trait `bit::BitAnd<Rhs>`:
             `&u32` implements `bit::BitAnd<u32>`
             `&u32` implements `bit::BitAnd`
             `u32` implements `bit::BitAnd<&u32>`
             `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   |
   |
73 |     output[6] = HEX_DIGITS[((c >> 8) & 15) as usize];
   |                                      ^ no implementation for `u32 & i32`
   |
   = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
   = help: the following other types implement trait `bit::BitAnd<Rhs>`:
             `&u32` implements `bit::BitAnd<u32>`
             `&u32` implements `bit::BitAnd`
             `u32` implements `bit::BitAnd<&u32>`
             `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   |
   |
74 |     output[7] = HEX_DIGITS[((c >> 4) & 15) as usize];
   |                                      ^ no implementation for `u32 & i32`
   |
   = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
   = help: the following other types implement trait `bit::BitAnd<Rhs>`:
             `&u32` implements `bit::BitAnd<u32>`
             `&u32` implements `bit::BitAnd`
             `u32` implements `bit::BitAnd<&u32>`
             `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   |
   |
75 |     output[8] = HEX_DIGITS[((c >> 0) & 15) as usize];
   |                                      ^ no implementation for `u32 & i32`
   |
   = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
   = help: the following other types implement trait `bit::BitAnd<Rhs>`:
             `&u32` implements `bit::BitAnd<u32>`
             `&u32` implements `bit::BitAnd`
             `u32` implements `bit::BitAnd<&u32>`
             `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
1019 |             (MASK as u32 >> 2) & 0b11,
     |                                ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
1020 |             ((MASK as u32 >> 4) & 0b11) + 4,
     |                                 ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
1021 |             ((MASK as u32 >> 6) & 0b11) + 4,
     |                                 ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
1458 |             (IMM8 as u32 >> 2) & 0b11,
     |                                ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
1459 |             (IMM8 as u32 >> 4) & 0b11,
     |                                ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
1460 |             (IMM8 as u32 >> 6) & 0b11,
     |                                ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
1490 |             ((IMM8 as u32 >> 2) & 0b11) + 4,
     |                                 ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
1491 |             ((IMM8 as u32 >> 4) & 0b11) + 4,
     |                                 ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
1492 |             ((IMM8 as u32 >> 6) & 0b11) + 4,
     |                                 ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
1518 |             (IMM8 as u32 >> 2) & 0b11,
     |                                ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
1519 |             (IMM8 as u32 >> 4) & 0b11,
     |                                ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
1520 |             (IMM8 as u32 >> 6) & 0b11,
     |                                ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
     |
     |
2814 |     simd_shuffle!(a, b, [MASK as u32 & 0b1, ((MASK as u32 >> 1) & 0b1) + 2])
     |                                                                 ^ no implementation for `u32 & i32`
     |
     = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
     = help: the following other types implement trait `bit::BitAnd<Rhs>`:
               `&u32` implements `bit::BitAnd<u32>`
               `&u32` implements `bit::BitAnd`
               `u32` implements `bit::BitAnd<&u32>`
               `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:123:33
    |
123 |             ((MASK as u32 >> 1) & 0b1) + 4,
    |                                 ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:124:33
    |
124 |             ((MASK as u32 >> 2) & 0b1) + 2,
    |                                 ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:125:33
    |
125 |             ((MASK as u32 >> 3) & 0b1) + 6,
    |                                 ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:146:32
    |
146 |             (MASK as u32 >> 2) & 0b11,
    |                                ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:147:33
    |
147 |             ((MASK as u32 >> 4) & 0b11) + 8,
    |                                 ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:148:33
    |
148 |             ((MASK as u32 >> 6) & 0b11) + 8,
    |                                 ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:150:33
    |
150 |             ((MASK as u32 >> 2) & 0b11) + 4,
    |                                 ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:151:33
    |
151 |             ((MASK as u32 >> 4) & 0b11) + 12,
    |                                 ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:152:33
    |
152 |             ((MASK as u32 >> 6) & 0b11) + 12,
    |                                 ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:474:33
    |
474 |             ((IMM4 as u32 >> 0) & 1) * 4 + 0,
    |                                 ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:475:33
    |
475 |             ((IMM4 as u32 >> 1) & 1) * 4 + 1,
    |                                 ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:476:33
    |
476 |             ((IMM4 as u32 >> 2) & 1) * 4 + 2,
    |                                 ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:477:33
    |
477 |             ((IMM4 as u32 >> 3) & 1) * 4 + 3,
    |                                 ^ no implementation for `u32 & i32`
    |
    = help: the trait `bit::BitAnd<i32>` is not implemented for `u32`
    = help: the following other types implement trait `bit::BitAnd<Rhs>`:
              `&u32` implements `bit::BitAnd<u32>`
              `&u32` implements `bit::BitAnd`
              `u32` implements `bit::BitAnd<&u32>`
              `u32` implements `bit::BitAnd`

error[E0277]: no implementation for `u32 & i32`
   --> core/src/../../stdarch/crates/core_arch/src/x86/avx.rs:497:33
---
Caused by:
    Command RUST_BACKTRACE=full python3 /checkout/x.py build --target x86_64-unknown-linux-gnu --host x86_64-unknown-linux-gnu --stage 2 library/std --rust-profile-generate /tmp/tmp-multistage/opt-artifacts/rustc-pgo --set llvm.thin-lto=false --set llvm.link-shared=true [at /checkout/obj] has failed with exit code Some(1)

Stack backtrace:
   0: <anyhow::Error>::msg::<alloc::string::String>
             at /rust/deps/anyhow-1.0.89/src/backtrace.rs:27:14
   1: <opt_dist::exec::CmdBuilder>::run
             at /rustc/d22a39e0c23aaa9f9ac0088012bfaf1ed647d26e/src/tools/opt-dist/src/exec.rs:80:17
   2: <opt_dist::exec::Bootstrap>::run
             at /rustc/d22a39e0c23aaa9f9ac0088012bfaf1ed647d26e/src/tools/opt-dist/src/exec.rs:181:9
             at /rustc/d22a39e0c23aaa9f9ac0088012bfaf1ed647d26e/src/tools/opt-dist/src/main.rs:225:13
             at /rustc/d22a39e0c23aaa9f9ac0088012bfaf1ed647d26e/src/tools/opt-dist/src/main.rs:225:13
   4: <opt_dist::timer::TimerSection>::section::<opt_dist::execute_pipeline::{closure#1}::{closure#0}, ()>
             at /rustc/d22a39e0c23aaa9f9ac0088012bfaf1ed647d26e/src/tools/opt-dist/src/timer.rs:111:22
             at /rustc/d22a39e0c23aaa9f9ac0088012bfaf1ed647d26e/src/tools/opt-dist/src/main.rs:214:9
             at /rustc/d22a39e0c23aaa9f9ac0088012bfaf1ed647d26e/src/tools/opt-dist/src/main.rs:214:9
   6: <opt_dist::timer::TimerSection>::section::<opt_dist::execute_pipeline::{closure#1}, opt_dist::training::RustcPGOProfile>
             at /rustc/d22a39e0c23aaa9f9ac0088012bfaf1ed647d26e/src/tools/opt-dist/src/timer.rs:111:22
             at /rustc/d22a39e0c23aaa9f9ac0088012bfaf1ed647d26e/src/tools/opt-dist/src/main.rs:211:29
   8: opt_dist::main
             at /rustc/d22a39e0c23aaa9f9ac0088012bfaf1ed647d26e/src/tools/opt-dist/src/main.rs:401:18
   9: <fn() -> core::result::Result<(), anyhow::Error> as core::ops::function::FnOnce<()>>::call_once
   9: <fn() -> core::result::Result<(), anyhow::Error> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/8c27a2ba6b21f3406a51118643080f0591949827/library/core/src/ops/function.rs:250:5
  10: std::sys::backtrace::__rust_begin_short_backtrace::<fn() -> core::result::Result<(), anyhow::Error>, core::result::Result<(), anyhow::Error>>
             at /rustc/8c27a2ba6b21f3406a51118643080f0591949827/library/std/src/sys/backtrace.rs:154:18
  11: std::rt::lang_start::<core::result::Result<(), anyhow::Error>>::{closure#0}
             at /rustc/8c27a2ba6b21f3406a51118643080f0591949827/library/std/src/rt.rs:164:18
  12: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
  13: std::panicking::try::do_call
             at /rustc/8c27a2ba6b21f3406a51118643080f0591949827/library/std/src/panicking.rs:554:40
  14: std::panicking::try
             at /rustc/8c27a2ba6b21f3406a51118643080f0591949827/library/std/src/panicking.rs:518:19

@bors
Copy link
Contributor

bors commented Oct 11, 2024

💔 Test failed - checks-actions

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 11, 2024
@bors
Copy link
Contributor

bors commented Oct 20, 2024

☔ The latest upstream changes (presumably #131948) made this pull request unmergeable. Please resolve the merge conflicts.

@compiler-errors
Copy link
Member Author

I'm gonna close this for now since it only affects can_coerce which only operates on bad paths. This should be fixed eventually though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
perf-regression Performance regression. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. S-waiting-on-perf Status: Waiting on a perf run to be completed. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants