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/202610/
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-numbat-cli, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Box<NumbatError>`, found `NumbatError`
|
= note: expected struct `Box<NumbatError>`
found enum `NumbatError`
error[E0308]: mismatched types
--> src/main.rs:525:17
|
474 | match result {
| ------ this expression has type `Result<(Vec<Statement<'_>>, InterpreterResult), Box<NumbatError>>`
...
525 | Err(NumbatError::RuntimeError(e)) => {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Box<NumbatError>`, found `NumbatError`
|
= note: expected struct `Box<NumbatError>`
found enum `NumbatError`
error[E0061]: this method takes 5 arguments but 4 arguments were supplied
--> src/main.rs:496:56
|
496 | let result_markup = interpreter_result.to_markup(
| ________________________________________________________^^^^^^^^^-
497 | | statements.last(),
498 | | ®istry,
499 | | interactive || pretty_print,
500 | | interactive || pretty_print,
501 | | );
| |_________________- argument #5 of type `&FormatOptions` is missing
|
note: method defined here
--> /usr/share/cargo/registry/numbat-1.24.0/src/interpreter/mod.rs:101:12
|
101 | pub fn to_markup(
| ^^^^^^^^^
help: provide the argument
|
496 | let result_markup = interpreter_result.to_markup(
...
500 | interactive || pretty_print,
501 ~ /* &FormatOptions */,
502 ~ );
|
error[E0277]: the trait bound `numbat::RuntimeError: ErrorDiagnostic` is not satisfied
--> src/main.rs:526:39
|
526 | self.print_diagnostic(e);
| ---------------- ^ the trait `ErrorDiagnostic` is not implemented for `numbat::RuntimeError`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `ErrorDiagnostic`:
ResolverDiagnostic<'_, CommandError>
ResolverDiagnostic<'_, numbat::RuntimeError>
numbat::NameResolutionError
numbat::ParseError
numbat::TypeCheckError
numbat::resolver::ResolverError
note: required by a bound in `Cli::print_diagnostic`
--> src/main.rs:532:48
|
532 | fn print_diagnostic(&mut self, error: impl ErrorDiagnostic) {
| ^^^^^^^^^^^^^^^ required by this bound in `Cli::print_diagnostic`
error[E0061]: this method takes 2 arguments but 1 argument was supplied
--> src/main.rs:533:38
|
533 | self.context.lock().unwrap().print_diagnostic(error)
| ^^^^^^^^^^^^^^^^------- argument #2 of type `bool` is missing
|
note: method defined here
--> /usr/share/cargo/registry/numbat-1.24.0/src/lib.rs:838:12
|
838 | pub fn print_diagnostic(&self, error: impl ErrorDiagnostic, colorize: bool) {
| ^^^^^^^^^^^^^^^^
help: provide the argument
|
533 | self.context.lock().unwrap().print_diagnostic(error, /* bool */)
| ++++++++++++
error[E0716]: temporary value dropped while borrowed
--> src/completer.rs:126:26
|
126 | let candidates = self
| __________________________^
127 | | .context
128 | | .lock()
129 | | .unwrap()
| |_____________________^ creates a temporary value which is freed while still in use
130 | .get_completions_for(word_part, add_paren);
| - temporary value is freed at the end of this statement
...
134 | candidates
| ---------- borrow later used here
|
note: this call may capture more lifetimes than intended, because Rust 2024 has adjusted the `impl Trait` lifetime capture rules
--> src/completer.rs:126:26
|
126 | let candidates = self
| __________________________^
127 | | .context
128 | | .lock()
129 | | .unwrap()
130 | | .get_completions_for(word_part, add_paren);
| |______________________________________________________^
help: if you can modify this crate, add a precise capturing bound to avoid overcapturing: `+ use<>`
--> /usr/share/cargo/registry/numbat-1.24.0/src/lib.rs:268:10
|
268 | ) -> impl Iterator<Item = String> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: consider using a `let` binding to create a longer lived value
|
126 ~ let binding = self
127 + .context
128 + .lock()
129 + .unwrap();
130 ~ let candidates = binding
|
error[E0521]: borrowed data escapes outside of method
--> src/highlighter.rs:43:37
|
34 | fn highlight_candidate<'c>(
| -- lifetime `'c` defined here
35 | &self,
36 | candidate: &'c str,
| --------- `candidate` is a reference that is only valid in the method body
...
43 | Cow::Owned(ansi_format(&markup::identifier(candidate), false))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| `candidate` escapes the method body here
| argument requires that `'c` must outlive `'static`
Some errors have detailed explanations: E0053, E0061, E0277, E0308, E0432, E0521, E0624, E0716.
For more information about an error, try `rustc --explain E0053`.
error: could not compile `numbat-cli` (bin "numbat") due to 17 previous errors
Caused by:
process didn't exit successfully: `CARGO=/usr/bin/cargo CA [too-long-redacted] e2aa596e9/out` (exit status: 1)
dh_auto_test: error: /usr/share/cargo/bin/cargo build returned exit code 101
make: *** [debian/rules:3: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------