Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1064:28
- |
- 1064 | Limb::BITS.checked_mul(x.len())
- | ^^^^^^^ expected `u32`, found `usize`
- |
- help: you can convert a `usize` to a `u32` and panic if the converted value doesn't fit
- |
- 1064 | Limb::BITS.checked_mul(x.len().try_into().unwrap())
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1065:22
- |
- 1065 | .map(|v| v - nlz)
- | ^^^ expected `u32`, found `usize`
- error[E0277]: cannot subtract `usize` from `u32`
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1065:20
- |
- 1065 | .map(|v| v - nlz)
- | ^ no implementation for `u32 - usize`
- |
- = help: the trait `Sub<usize>` is not implemented for `u32`
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1066:20
- |
- 1066 | .unwrap_or(usize::max_value())
- | ^^^^^^^^^^^^^^^^^^ expected `u32`, found `usize`
- |
- help: you can convert a `usize` to a `u32` and panic if the converted value doesn't fit
- |
- 1066 | .unwrap_or(usize::max_value().try_into().unwrap())
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1064:5
- |
- 1060 | pub fn bit_length(x: &[Limb]) -> usize {
- | ----- expected `usize` because of return type
- ...
- 1064 | / Limb::BITS.checked_mul(x.len())
- 1065 | | .map(|v| v - nlz)
- 1066 | | .unwrap_or(usize::max_value())
- | |______________________________________^ expected `usize`, found `u32`
- |
- help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit
- |
- 1064 | Limb::BITS.checked_mul(x.len())
- 1065 | .map(|v| v - nlz)
- 1066 | .unwrap_or(usize::max_value()).try_into().unwrap()
- |
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1091:23
- |
- 1091 | debug_assert!(n < bits && n != 0);
- | ^^^^ expected `usize`, found `u32`
- |
- help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit
- |
- 1091 | debug_assert!(n < bits.try_into().unwrap() && n != 0);
- | ^^^^^^^^^^^^^^^^^^^^^^^^
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1098:25
- |
- 1098 | let lshift = bits - n;
- | ^ expected `u32`, found `usize`
- error[E0277]: cannot subtract `usize` from `u32`
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1098:23
- |
- 1098 | let lshift = bits - n;
- | ^ no implementation for `u32 - usize`
- |
- = help: the trait `Sub<usize>` is not implemented for `u32`
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1140:19
- |
- 1140 | let rem = n % bits;
- | ^^^^ expected `usize`, found `u32`
- error[E0277]: cannot mod `usize` by `u32`
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1140:17
- |
- 1140 | let rem = n % bits;
- | ^ no implementation for `usize % u32`
- |
- = help: the trait `Rem<u32>` is not implemented for `usize`
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1141:19
- |
- 1141 | let div = n / bits;
- | ^^^^ expected `usize`, found `u32`
- error[E0277]: cannot divide `usize` by `u32`
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1141:17
- |
- 1141 | let div = n / bits;
- | ^ no implementation for `usize / u32`
- |
- = help: the trait `Div<u32>` is not implemented for `usize`
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1197:23
- |
- 1197 | debug_assert!(n < bits);
- | ^^^^ expected `usize`, found `u32`
- |
- help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit
- |
- 1197 | debug_assert!(n < bits.try_into().unwrap());
- | ^^^^^^^^^^^^^^^^^^^^^^^^
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1207:25
- |
- 1207 | let rshift = bits - n;
- | ^ expected `u32`, found `usize`
- error[E0277]: cannot subtract `usize` from `u32`
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1207:23
- |
- 1207 | let rshift = bits - n;
- | ^ no implementation for `u32 - usize`
- |
- = help: the trait `Sub<usize>` is not implemented for `u32`
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1259:19
- |
- 1259 | let rem = n % bits;
- | ^^^^ expected `usize`, found `u32`
- error[E0277]: cannot mod `usize` by `u32`
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1259:17
- |
- 1259 | let rem = n % bits;
- | ^ no implementation for `usize % u32`
- |
- = help: the trait `Rem<u32>` is not implemented for `usize`
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1260:19
- |
- 1260 | let div = n / bits;
- | ^^^^ expected `usize`, found `u32`
- error[E0277]: cannot divide `usize` by `u32`
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1260:17
- |
- 1260 | let div = n / bits;
- | ^ no implementation for `usize / u32`
- |
- = help: the trait `Div<u32>` is not implemented for `usize`
- error[E0277]: cannot divide `usize` by `u32`
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/bhcomp.rs:62:22
- |
- 62 | let bytes = bits / Limb::BITS;
- | ^ no implementation for `usize / u32`
- |
- = help: the trait `Div<u32>` is not implemented for `usize`
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:2071:27
- |
- 2071 | let rs = Limb::BITS - s;
- | ^ expected `u32`, found `usize`
- error[E0277]: cannot subtract `usize` from `u32`
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:2071:25
- |
- 2071 | let rs = Limb::BITS - s;
- | ^ no implementation for `u32 - usize`
- |
- = help: the trait `Sub<usize>` is not implemented for `u32`
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/bigcomp.rs:157:55
- |
- 157 | let nlz = den.leading_zeros().wrapping_sub(wlz) & (u32::BITS - 1);
- | ^^^^^^^^^^^^^^^ expected `usize`, found `u32`
- error[E0277]: no implementation for `usize & u32`
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/bigcomp.rs:157:53
- |
- 157 | let nlz = den.leading_zeros().wrapping_sub(wlz) & (u32::BITS - 1);
- | ^ no implementation for `usize & u32`
- |
- = help: the trait `BitAnd<u32>` is not implemented for `usize`
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/bigcomp.rs:175:40
- |
- 175 | let (q, r) = shift.ceil_divmod(Limb::BITS);
- | ^^^^^^^^^^ expected `usize`, found `u32`
- |
- help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit
- |
- 175 | let (q, r) = shift.ceil_divmod(Limb::BITS.try_into().unwrap());
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Compiling rand v0.7.3
- error: aborting due to 27 previous errors
- Some errors have detailed explanations: E0277, E0308.
- For more information about an error, try `rustc --explain E0277`.
- error: could not compile `lexical-core`
- To learn more, run the command again with --verbose.
- warning: build failed, waiting for other jobs to finish...
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1049:42
- |
- 1049 | let mut count = index.saturating_mul(Limb::BITS);
- | ^^^^^^^^^^ expected `usize`, found `u32`
- |
- help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit
- |
- 1049 | let mut count = index.saturating_mul(Limb::BITS.try_into().unwrap());
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1064:28
- |
- 1064 | Limb::BITS.checked_mul(x.len())
- | ^^^^^^^ expected `u32`, found `usize`
- |
- help: you can convert a `usize` to a `u32` and panic if the converted value doesn't fit
- |
- 1064 | Limb::BITS.checked_mul(x.len().try_into().unwrap())
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1065:22
- |
- 1065 | .map(|v| v - nlz)
- | ^^^ expected `u32`, found `usize`
- error[E0277]: cannot subtract `usize` from `u32`
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1065:20
- |
- 1065 | .map(|v| v - nlz)
- | ^ no implementation for `u32 - usize`
- |
- = help: the trait `Sub<usize>` is not implemented for `u32`
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1066:20
- |
- 1066 | .unwrap_or(usize::max_value())
- | ^^^^^^^^^^^^^^^^^^ expected `u32`, found `usize`
- |
- help: you can convert a `usize` to a `u32` and panic if the converted value doesn't fit
- |
- 1066 | .unwrap_or(usize::max_value().try_into().unwrap())
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1064:5
- |
- 1060 | pub fn bit_length(x: &[Limb]) -> usize {
- | ----- expected `usize` because of return type
- ...
- 1064 | / Limb::BITS.checked_mul(x.len())
- 1065 | | .map(|v| v - nlz)
- 1066 | | .unwrap_or(usize::max_value())
- | |______________________________________^ expected `usize`, found `u32`
- |
- help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit
- |
- 1064 | Limb::BITS.checked_mul(x.len())
- 1065 | .map(|v| v - nlz)
- 1066 | .unwrap_or(usize::max_value()).try_into().unwrap()
- |
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1091:23
- |
- 1091 | debug_assert!(n < bits && n != 0);
- | ^^^^ expected `usize`, found `u32`
- |
- help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit
- |
- 1091 | debug_assert!(n < bits.try_into().unwrap() && n != 0);
- | ^^^^^^^^^^^^^^^^^^^^^^^^
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1098:25
- |
- 1098 | let lshift = bits - n;
- | ^ expected `u32`, found `usize`
- error[E0277]: cannot subtract `usize` from `u32`
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1098:23
- |
- 1098 | let lshift = bits - n;
- | ^ no implementation for `u32 - usize`
- |
- = help: the trait `Sub<usize>` is not implemented for `u32`
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1140:19
- |
- 1140 | let rem = n % bits;
- | ^^^^ expected `usize`, found `u32`
- error[E0277]: cannot mod `usize` by `u32`
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1140:17
- |
- 1140 | let rem = n % bits;
- | ^ no implementation for `usize % u32`
- |
- = help: the trait `Rem<u32>` is not implemented for `usize`
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1141:19
- |
- 1141 | let div = n / bits;
- | ^^^^ expected `usize`, found `u32`
- error[E0277]: cannot divide `usize` by `u32`
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1141:17
- |
- 1141 | let div = n / bits;
- | ^ no implementation for `usize / u32`
- |
- = help: the trait `Div<u32>` is not implemented for `usize`
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1197:23
- |
- 1197 | debug_assert!(n < bits);
- | ^^^^ expected `usize`, found `u32`
- |
- help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit
- |
- 1197 | debug_assert!(n < bits.try_into().unwrap());
- | ^^^^^^^^^^^^^^^^^^^^^^^^
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1207:25
- |
- 1207 | let rshift = bits - n;
- | ^ expected `u32`, found `usize`
- error[E0277]: cannot subtract `usize` from `u32`
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1207:23
- |
- 1207 | let rshift = bits - n;
- | ^ no implementation for `u32 - usize`
- |
- = help: the trait `Sub<usize>` is not implemented for `u32`
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1259:19
- |
- 1259 | let rem = n % bits;
- | ^^^^ expected `usize`, found `u32`
- error[E0277]: cannot mod `usize` by `u32`
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1259:17
- |
- 1259 | let rem = n % bits;
- | ^ no implementation for `usize % u32`
- |
- = help: the trait `Rem<u32>` is not implemented for `usize`
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1260:19
- |
- 1260 | let div = n / bits;
- | ^^^^ expected `usize`, found `u32`
- error[E0277]: cannot divide `usize` by `u32`
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:1260:17
- |
- 1260 | let div = n / bits;
- | ^ no implementation for `usize / u32`
- |
- = help: the trait `Div<u32>` is not implemented for `usize`
- error[E0308]: mismatched types
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:2071:27
- |
- 2071 | let rs = Limb::BITS - s;
- | ^ expected `u32`, found `usize`
- error[E0277]: cannot subtract `usize` from `u32`
- --> /tmp/suricata-nfqueue/src/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/math.rs:2071:25
- |
- 2071 | let rs = Limb::BITS - s;
- | ^ no implementation for `u32 - usize`
- |
- = help: the trait `Sub<usize>` is not implemented for `u32`
- error: aborting due to 27 previous errors
- Some errors have detailed explanations: E0277, E0308.
- For more information about an error, try `rustc --explain E0277`.
- error: build failed
- make[1]: *** [Makefile:544: all-local] Error 101
- make[1]: Leaving directory '/tmp/suricata-nfqueue/src/suricata-6.0.2/rust'
- make: *** [Makefile:492: all-recursive] Error 1
- ==> ERROR: A failure occurred in build().
- Aborting...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement