[Pkg-rust-maintainers] Bug#1081713: rust-numbat-cli: FTBFS: error[E0599]: no method named `iter` found for opaque type `impl Iterator<Item = std::string::String> + '_` in the current scope

Sebastian Ramacher sramacher at debian.org
Sat Sep 14 08:25:54 BST 2024


Source: rust-numbat-cli
Version: 1.9.0-2
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: sramacher at debian.org

https://buildd.debian.org/status/fetch.php?pkg=rust-numbat-cli&arch=amd64&ver=1.9.0-2%2Bb2&stamp=1726261583&raw=0

warning: `nix` (lib) generated 4 warnings
warning: `rustyline` (lib) generated 3 warnings
   Compiling numbat-cli v1.9.0 (/<<PKGBUILDDIR>>)
     Running `CARGO=/usr/bin/cargo CARGO_BIN_NAME=numbat CARGO_CRATE_NAME=numbat CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='David Peter <mail at david-peter.de>' CARGO_PKG_DESCRIPTION='A statically typed programming language for scientific computations with first class support for physical dimensions and units.' CARGO_PKG_HOMEPAGE='https://numbat.dev/' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=numbat-cli CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/sharkdp/numbat' CARGO_PKG_RUST_VERSION=1.70 CARGO_PKG_VERSION=1.9.0 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=9 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_RUSTC_CURRENT_DIR=/<<PKGBUILDDIR>> LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/target/debug/deps rustc --crate-name numbat --edition=2021 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=2bb9836c94fb8066 -C extra-filename=-2bb9836c94fb8066 --out-dir /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern anyhow=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libanyhow-d77910c87ecd4bb3.rlib --extern clap=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libclap-ae7aea5245196479.rlib --extern colored=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libcolored-4008326923e6a1bd.rlib --extern dirs=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libdirs-1cba88ca4d3bb110.rlib --extern itertools=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libitertools-3eb0f1de62b22115.rlib --extern numbat=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libnumbat-1cb793a8784ca207.rlib --extern rustyline=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/librustyline-b270178b1ae625e5.rlib --extern serde=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libserde-6a08675ea7dcf65e.rlib --extern terminal_size=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libterminal_size-514eb1ba09deb860.rlib --extern toml=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libtoml-c0b99a2353739af0.rlib -C debuginfo=2 -C strip=none --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/numbat-cli-1.9.0 --remap-path-prefix /<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry -L native=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/build/ring-4444bb85a3b66fc9/out`
error[E0599]: no method named `iter` found for opaque type `impl Iterator<Item = std::string::String> + '_` in the current scope
  --> src/highlighter.rs:40:33
   |
40 |         if ctx.variable_names().iter().any(|n| n == candidate)
   |                                 ^^^^
   |
help: there is a method `filter` with a similar name, but with different arguments
  --> /usr/src/rustc-1.80.1/library/core/src/iter/traits/iterator.rs:884:5

error[E0599]: no method named `iter` found for opaque type `impl Iterator<Item = std::string::String> + '_` in the current scope
  --> src/highlighter.rs:43:18
   |
41 |               || ctx
   |  ________________-
42 | |                 .function_names()
43 | |                 .iter()
   | |_________________-^^^^
   |
help: there is a method `filter` with a similar name, but with different arguments
  --> /usr/src/rustc-1.80.1/library/core/src/iter/traits/iterator.rs:884:5

error[E0061]: this method takes 4 arguments but 3 arguments were supplied
   --> src/main.rs:472:56
    |
472 |                   let result_markup = interpreter_result.to_markup(
    |  ________________________________________________________^^^^^^^^^-
473 | |                     statements.last(),
474 | |                     &registry,
475 | |                     interactive || pretty_print,
476 | |                 );
    | |_________________- an argument of type `bool` is missing
    |
note: method defined here
   --> /usr/share/cargo/registry/numbat-1.11.0/src/interpreter.rs:60:12
    |
60  |     pub fn to_markup(
    |            ^^^^^^^^^
help: provide the argument
    |
472 |                 let result_markup = interpreter_result.to_markup(statements.last(), &registry, interactive || pretty_print, /* bool */);
    |                                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Some errors have detailed explanations: E0061, E0599.
For more information about an error, try `rustc --explain E0061`.
error: could not compile `numbat-cli` (bin "numbat") due to 3 previous errors

Caused by:
  process didn't exit successfully: `CARGO=/usr/bin/cargo CARGO_BIN_NAME=numbat CARGO_CRATE_NAME=numbat CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='David Peter <mail at david-peter.de>' CARGO_PKG_DESCRIPTION='A statically typed programming language for scientific computations with first class support for physical dimensions and units.' CARGO_PKG_HOMEPAGE='https://numbat.dev/' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=numbat-cli CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/sharkdp/numbat' CARGO_PKG_RUST_VERSION=1.70 CARGO_PKG_VERSION=1.9.0 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=9 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_RUSTC_CURRENT_DIR=/<<PKGBUILDDIR>> LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/target/debug/deps rustc --crate-name numbat --edition=2021 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=2bb9836c94fb8066 -C extra-filename=-2bb9836c94fb8066 --out-dir /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern anyhow=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libanyhow-d77910c87ecd4bb3.rlib --extern clap=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libclap-ae7aea5245196479.rlib --extern colored=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libcolored-4008326923e6a1bd.rlib --extern dirs=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libdirs-1cba88ca4d3bb110.rlib --extern itertools=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libitertools-3eb0f1de62b22115.rlib --extern numbat=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libnumbat-1cb793a8784ca207.rlib --extern rustyline=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/librustyline-b270178b1ae625e5.rlib --extern serde=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libserde-6a08675ea7dcf65e.rlib --extern terminal_size=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libterminal_size-514eb1ba09deb860.rlib --extern toml=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libtoml-c0b99a2353739af0.rlib -C debuginfo=2 -C strip=none --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/numbat-cli-1.9.0 --remap-path-prefix /<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry -L native=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/build/ring-4444bb85a3b66fc9/out` (exit status: 1)
dh_auto_test: error: /usr/share/cargo/bin/cargo build returned exit code 101

Cheers
-- 
Sebastian Ramacher



More information about the Pkg-rust-maintainers mailing list