error while running cargo +nightly build --release
Closed this issue · 2 comments
Compiling protocols-sys v0.1.0 (/home/toluwani/Documents/PolyKervnet/Delphi/delphi/rust/protocols-sys) error[E0716]: temporary value dropped while borrowed --> /home/toluwani/.cargo/registry/src/github.com-1ecc6299db9ec823/ndarray-0.12.1/src/layout/layoutfmt.rs:29:24 | 25 | .format_with(" | ", |i, f| { | - has type
&mut dyn FnMut(&'1 (dyn std::fmt::Display + '1)) -> Result<(), std::fmt::Error>... 29 | f(&format_args!("0x{:x}", i)) | ---^^^^^^^^^^^^^^^^^^^^^^^^^- | | | | | creates a temporary which is freed while still in use | argument requires that borrow lasts for
'130 | } | - temporary value is freed at the end of this statement | = note: this error originates in the macro
format_args` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0597]: i
does not live long enough
--> /home/toluwani/.cargo/registry/src/github.com-1ecc6299db9ec823/ndarray-0.12.1/src/layout/layoutfmt.rs:29:47
|
25 | .format_with(" | ", |i, f| {
| - has type &mut dyn FnMut(&'1 (dyn std::fmt::Display + '1)) -> Result<(), std::fmt::Error>
...
29 | f(&format_args!("0x{:x}", i))
| --------------------------^--
| | |
| | borrowed value does not live long enough
| argument requires that i
is borrowed for '1
30 | }
31 | }))
| - i
dropped here while still borrowed
|
= note: this error originates in the macro format_args
(in Nightly builds, run with -Z macro-backtrace for more info)
Some errors have detailed explanations: E0597, E0716.
For more information about an error, try rustc --explain E0597
.
error: could not compile ndarray
due to 2 previous errors
warning: build failed, waiting for other jobs to finish...`
Hi, this is actually an issue with one of dependencies ndarray
. In the short-term you could try bumping the version of ndarray
that we use -- I can take a closer look myself in the next day or two if that doesn't work
Thank you.