[Pkg-rust-maintainers] Bug#1117370: rust-num-integer: FTBFS: error: could not compile `num-integer` (lib test) due to 42 previous errors

Santiago Vila sanvila at debian.org
Sun Oct 5 15:15:12 BST 2025


Package: src:rust-num-integer
Version: 0.1.46-1
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202510/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:rust-num-integer, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem cargo
   dh_auto_clean -O--buildsystem=cargo
debian cargo wrapper: options = ['parallel=2'], profiles = [], parallel = ['-j2'], lto = 
debian cargo wrapper: rust_type = x86_64-unknown-linux-gnu, gnu_type = x86_64-linux-gnu
debian cargo wrapper: running subprocess (['env', 'RUST_BACKTRACE=1', '/usr/bin/cargo', 'clean', '--verbose', '--verbose'],) {'check': True}
     Removed 0 files
   dh_autoreconf_clean -O--buildsystem=cargo
   dh_clean -O--buildsystem=cargo
 debian/rules binary
dh binary --buildsystem cargo
   dh_update_autotools_config -O--buildsystem=cargo
   dh_autoreconf -O--buildsystem=cargo
   dh_auto_configure -O--buildsystem=cargo
debian cargo wrapper: options = ['parallel=2'], profiles = [], parallel = ['-j2'], lto = 

[... snipped ...]


error[E0308]: mismatched types
    --> src/lib.rs:1021:50
     |
1021 |                 assert!((0 as $T).is_multiple_of(&(0 as $T)));
     |                                   -------------- ^^^^^^^^^^ expected `u128`, found `&u128`
     |                                   |
     |                                   arguments to this method are incorrect
...
1056 | impl_integer_for_usize!(u128, test_integer_u128);
     | ------------------------------------------------ in this macro invocation
     |
note: method defined here
    --> /usr/src/rustc-1.88.0/library/core/src/num/mod.rs:1154:5
     = note: this error originates in the macro `impl_integer_for_usize` which comes from the expansion of the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider using clone here
     |
1021 |                 assert!((0 as $T).is_multiple_of(&(0 as $T).clone()));
     |                                                            ++++++++

error[E0308]: mismatched types
    --> src/lib.rs:1022:50
     |
1022 |                 assert!((6 as $T).is_multiple_of(&(6 as $T)));
     |                                   -------------- ^^^^^^^^^^ expected `u128`, found `&u128`
     |                                   |
     |                                   arguments to this method are incorrect
...
1056 | impl_integer_for_usize!(u128, test_integer_u128);
     | ------------------------------------------------ in this macro invocation
     |
note: method defined here
    --> /usr/src/rustc-1.88.0/library/core/src/num/mod.rs:1154:5
     = note: this error originates in the macro `impl_integer_for_usize` which comes from the expansion of the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider using clone here
     |
1022 |                 assert!((6 as $T).is_multiple_of(&(6 as $T).clone()));
     |                                                            ++++++++

error[E0308]: mismatched types
    --> src/lib.rs:1023:50
     |
1023 |                 assert!((6 as $T).is_multiple_of(&(3 as $T)));
     |                                   -------------- ^^^^^^^^^^ expected `u128`, found `&u128`
     |                                   |
     |                                   arguments to this method are incorrect
...
1056 | impl_integer_for_usize!(u128, test_integer_u128);
     | ------------------------------------------------ in this macro invocation
     |
note: method defined here
    --> /usr/src/rustc-1.88.0/library/core/src/num/mod.rs:1154:5
     = note: this error originates in the macro `impl_integer_for_usize` which comes from the expansion of the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider using clone here
     |
1023 |                 assert!((6 as $T).is_multiple_of(&(3 as $T).clone()));
     |                                                            ++++++++

error[E0308]: mismatched types
    --> src/lib.rs:1024:50
     |
1024 |                 assert!((6 as $T).is_multiple_of(&(1 as $T)));
     |                                   -------------- ^^^^^^^^^^ expected `u128`, found `&u128`
     |                                   |
     |                                   arguments to this method are incorrect
...
1056 | impl_integer_for_usize!(u128, test_integer_u128);
     | ------------------------------------------------ in this macro invocation
     |
note: method defined here
    --> /usr/src/rustc-1.88.0/library/core/src/num/mod.rs:1154:5
     = note: this error originates in the macro `impl_integer_for_usize` which comes from the expansion of the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider using clone here
     |
1024 |                 assert!((6 as $T).is_multiple_of(&(1 as $T).clone()));
     |                                                            ++++++++

error[E0308]: mismatched types
    --> src/lib.rs:1026:52
     |
1026 |                 assert!(!(42 as $T).is_multiple_of(&(5 as $T)));
     |                                     -------------- ^^^^^^^^^^ expected `u128`, found `&u128`
     |                                     |
     |                                     arguments to this method are incorrect
...
1056 | impl_integer_for_usize!(u128, test_integer_u128);
     | ------------------------------------------------ in this macro invocation
     |
note: method defined here
    --> /usr/src/rustc-1.88.0/library/core/src/num/mod.rs:1154:5
     = note: this error originates in the macro `impl_integer_for_usize` which comes from the expansion of the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider using clone here
     |
1026 |                 assert!(!(42 as $T).is_multiple_of(&(5 as $T).clone()));
     |                                                              ++++++++

error[E0308]: mismatched types
    --> src/lib.rs:1027:51
     |
1027 |                 assert!(!(5 as $T).is_multiple_of(&(3 as $T)));
     |                                    -------------- ^^^^^^^^^^ expected `u128`, found `&u128`
     |                                    |
     |                                    arguments to this method are incorrect
...
1056 | impl_integer_for_usize!(u128, test_integer_u128);
     | ------------------------------------------------ in this macro invocation
     |
note: method defined here
    --> /usr/src/rustc-1.88.0/library/core/src/num/mod.rs:1154:5
     = note: this error originates in the macro `impl_integer_for_usize` which comes from the expansion of the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider using clone here
     |
1027 |                 assert!(!(5 as $T).is_multiple_of(&(3 as $T).clone()));
     |                                                             ++++++++

error[E0308]: mismatched types
    --> src/lib.rs:1028:52
     |
1028 |                 assert!(!(42 as $T).is_multiple_of(&(0 as $T)));
     |                                     -------------- ^^^^^^^^^^ expected `u128`, found `&u128`
     |                                     |
     |                                     arguments to this method are incorrect
...
1056 | impl_integer_for_usize!(u128, test_integer_u128);
     | ------------------------------------------------ in this macro invocation
     |
note: method defined here
    --> /usr/src/rustc-1.88.0/library/core/src/num/mod.rs:1154:5
     = note: this error originates in the macro `impl_integer_for_usize` which comes from the expansion of the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider using clone here
     |
1028 |                 assert!(!(42 as $T).is_multiple_of(&(0 as $T).clone()));
     |                                                              ++++++++

error[E0308]: mismatched types
    --> src/lib.rs:1021:50
     |
1021 |                 assert!((0 as $T).is_multiple_of(&(0 as $T)));
     |                                   -------------- ^^^^^^^^^^ expected `usize`, found `&usize`
     |                                   |
     |                                   arguments to this method are incorrect
...
1057 | impl_integer_for_usize!(usize, test_integer_usize);
     | -------------------------------------------------- in this macro invocation
     |
note: method defined here
    --> /usr/src/rustc-1.88.0/library/core/src/num/mod.rs:1228:5
     = note: this error originates in the macro `impl_integer_for_usize` which comes from the expansion of the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider using clone here
     |
1021 |                 assert!((0 as $T).is_multiple_of(&(0 as $T).clone()));
     |                                                            ++++++++

error[E0308]: mismatched types
    --> src/lib.rs:1022:50
     |
1022 |                 assert!((6 as $T).is_multiple_of(&(6 as $T)));
     |                                   -------------- ^^^^^^^^^^ expected `usize`, found `&usize`
     |                                   |
     |                                   arguments to this method are incorrect
...
1057 | impl_integer_for_usize!(usize, test_integer_usize);
     | -------------------------------------------------- in this macro invocation
     |
note: method defined here
    --> /usr/src/rustc-1.88.0/library/core/src/num/mod.rs:1228:5
     = note: this error originates in the macro `impl_integer_for_usize` which comes from the expansion of the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider using clone here
     |
1022 |                 assert!((6 as $T).is_multiple_of(&(6 as $T).clone()));
     |                                                            ++++++++

error[E0308]: mismatched types
    --> src/lib.rs:1023:50
     |
1023 |                 assert!((6 as $T).is_multiple_of(&(3 as $T)));
     |                                   -------------- ^^^^^^^^^^ expected `usize`, found `&usize`
     |                                   |
     |                                   arguments to this method are incorrect
...
1057 | impl_integer_for_usize!(usize, test_integer_usize);
     | -------------------------------------------------- in this macro invocation
     |
note: method defined here
    --> /usr/src/rustc-1.88.0/library/core/src/num/mod.rs:1228:5
     = note: this error originates in the macro `impl_integer_for_usize` which comes from the expansion of the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider using clone here
     |
1023 |                 assert!((6 as $T).is_multiple_of(&(3 as $T).clone()));
     |                                                            ++++++++

error[E0308]: mismatched types
    --> src/lib.rs:1024:50
     |
1024 |                 assert!((6 as $T).is_multiple_of(&(1 as $T)));
     |                                   -------------- ^^^^^^^^^^ expected `usize`, found `&usize`
     |                                   |
     |                                   arguments to this method are incorrect
...
1057 | impl_integer_for_usize!(usize, test_integer_usize);
     | -------------------------------------------------- in this macro invocation
     |
note: method defined here
    --> /usr/src/rustc-1.88.0/library/core/src/num/mod.rs:1228:5
     = note: this error originates in the macro `impl_integer_for_usize` which comes from the expansion of the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider using clone here
     |
1024 |                 assert!((6 as $T).is_multiple_of(&(1 as $T).clone()));
     |                                                            ++++++++

error[E0308]: mismatched types
    --> src/lib.rs:1026:52
     |
1026 |                 assert!(!(42 as $T).is_multiple_of(&(5 as $T)));
     |                                     -------------- ^^^^^^^^^^ expected `usize`, found `&usize`
     |                                     |
     |                                     arguments to this method are incorrect
...
1057 | impl_integer_for_usize!(usize, test_integer_usize);
     | -------------------------------------------------- in this macro invocation
     |
note: method defined here
    --> /usr/src/rustc-1.88.0/library/core/src/num/mod.rs:1228:5
     = note: this error originates in the macro `impl_integer_for_usize` which comes from the expansion of the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider using clone here
     |
1026 |                 assert!(!(42 as $T).is_multiple_of(&(5 as $T).clone()));
     |                                                              ++++++++

error[E0308]: mismatched types
    --> src/lib.rs:1027:51
     |
1027 |                 assert!(!(5 as $T).is_multiple_of(&(3 as $T)));
     |                                    -------------- ^^^^^^^^^^ expected `usize`, found `&usize`
     |                                    |
     |                                    arguments to this method are incorrect
...
1057 | impl_integer_for_usize!(usize, test_integer_usize);
     | -------------------------------------------------- in this macro invocation
     |
note: method defined here
    --> /usr/src/rustc-1.88.0/library/core/src/num/mod.rs:1228:5
     = note: this error originates in the macro `impl_integer_for_usize` which comes from the expansion of the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider using clone here
     |
1027 |                 assert!(!(5 as $T).is_multiple_of(&(3 as $T).clone()));
     |                                                             ++++++++

error[E0308]: mismatched types
    --> src/lib.rs:1028:52
     |
1028 |                 assert!(!(42 as $T).is_multiple_of(&(0 as $T)));
     |                                     -------------- ^^^^^^^^^^ expected `usize`, found `&usize`
     |                                     |
     |                                     arguments to this method are incorrect
...
1057 | impl_integer_for_usize!(usize, test_integer_usize);
     | -------------------------------------------------- in this macro invocation
     |
note: method defined here
    --> /usr/src/rustc-1.88.0/library/core/src/num/mod.rs:1228:5
     = note: this error originates in the macro `impl_integer_for_usize` which comes from the expansion of the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider using clone here
     |
1028 |                 assert!(!(42 as $T).is_multiple_of(&(0 as $T).clone()));
     |                                                              ++++++++

For more information about this error, try `rustc --explain E0308`.
error: could not compile `num-integer` (lib test) due to 42 previous errors

Caused by:
  process didn't exit successfully: `CARGO=/usr/bin/cargo CA [too-long-redacted] argo/registry` (exit status: 1)
warning: build failed, waiting for other jobs to finish...
dh_auto_test: error: /usr/share/cargo/bin/cargo test --all returned exit code 101
make[1]: *** [debian/rules:6: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:3: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------



More information about the Pkg-rust-maintainers mailing list