You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to rust-lang/rust#99591
Unless we upgrade dependencies or use previous rustc, it would not compile:
> cargo test
Compiling mdbook v0.4.15
error[E0597]: `local_ctx` does not live long enough
--> /home/dieter/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/mdbook-0.4.15/src/renderer/html_handlebars/helpers/navigation.rs:154:25
|
154 | t.render(r, &local_ctx, &mut local_rc, out)
| ^^^^^^^^^^ borrowed value does not live long enough
155 | })?;
| -
| |
| `local_ctx` dropped here while still borrowed
| borrow might be used here, when `local_rc` is dropped and runs the destructor for type `handlebars::RenderContext<'_, '_>`
|
= note: values in a scope are dropped in the opposite order they are defined
For more information about this error, try `rustc --explain E0597`.
error: could not compile `mdbook` due to previous error
warning: build failed, waiting for other jobs to finish...
> rustc -V
rustc 1.64.0 (a55dd71d5 2022-09-19)
For 0.4.15 a workaround may still use 1.62 instead
rustup toolchain intall 1.62
rustup default 1.62
The text was updated successfully, but these errors were encountered:
According to rust-lang/rust#99591
Unless we upgrade dependencies or use previous rustc, it would not compile:
For 0.4.15 a workaround may still use 1.62 instead
The text was updated successfully, but these errors were encountered: