Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when run cargo install mdbook-presentation-preprocessor #10

Open
Qi-Zhan opened this issue Nov 6, 2022 · 0 comments
Open

error when run cargo install mdbook-presentation-preprocessor #10

Qi-Zhan opened this issue Nov 6, 2022 · 0 comments

Comments

@Qi-Zhan
Copy link

Qi-Zhan commented Nov 6, 2022

error[E0597]: local_ctx does not live long enough
--> /Users/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/mdbook-0.3.7/src/renderer/html_handlebars/helpers/navigation.rs:155:25
|
155 | t.render(r, &local_ctx, &mut local_rc, out)
| ^^^^^^^^^^ borrowed value does not live long enough
156 | })?;
| -
| |
| 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...
error: failed to compile mdbook-presentation-preprocessor v0.2.2, intermediate artifacts can be found at /var/folders/4z/4fjzr0516z9gfpnt3ksdrh_40000gn/T/cargo-installjX5yOc

cargo --version (base)
cargo 1.64.0 (387270bc7 2022-09-16)

rustc --version (base)
rustc 1.64.0 (a55dd71d5 2022-09-19)


The whole record

➜ my_book cargo install mdbook-presentation-preprocessor (base)
Updating crates.io index
Downloaded mdbook-presentation-preprocessor v0.2.2
Downloaded 1 crate (719.5 KB) in 3.36s
Installing mdbook-presentation-preprocessor v0.2.2
Downloaded phf_generator v0.7.24
Downloaded pest_meta v2.4.1
Downloaded mime_guess v1.8.8
Downloaded rand_isaac v0.1.1
Downloaded siphasher v0.2.3
Downloaded rand_pcg v0.1.2
Downloaded sha-1 v0.8.2
Downloaded mio-extras v2.0.6
Downloaded unicode-xid v0.2.4
Downloaded open v1.7.1
Downloaded version_check v0.1.5
Downloaded autocfg v0.1.8
Downloaded unsafe-any v0.4.2
Downloaded heck v0.3.3
Downloaded error-chain v0.12.4
Downloaded env_logger v0.6.2
Downloaded typemap v0.3.3
Downloaded pest_derive v2.4.1
Downloaded pathdiff v0.2.1
Downloaded adler v1.0.2
Downloaded rand_os v0.1.3
Downloaded quick-error v2.0.1
Downloaded elasticlunr-rs v2.3.14
Downloaded getrandom v0.2.8
Downloaded quick-error v1.2.3
Downloaded ws v0.9.2
Downloaded rand_core v0.5.1
Downloaded unicode-segmentation v1.10.0
Downloaded unicase v1.4.2
Downloaded language-tags v0.2.2
Downloaded traitobject v0.1.0
Downloaded url v1.7.2
Downloaded percent-encoding v1.0.1
Downloaded iron v0.6.1
Downloaded hyper v0.10.16
Downloaded phf_codegen v0.7.24
Downloaded quote v0.6.13
Downloaded phf_shared v0.7.24
Downloaded log v0.3.9
Downloaded phf v0.7.24
Downloaded pest_generator v2.4.1
Downloaded base64 v0.9.3
Downloaded rand_chacha v0.1.1
Downloaded rand_jitter v0.1.4
Downloaded plugin v0.2.6
Downloaded pest v2.4.1
Downloaded itertools v0.8.2
Downloaded syn v0.15.44
Downloaded strum v0.21.0
Downloaded ansi_term v0.12.1
Downloaded unicode-xid v0.1.0
Downloaded ident_case v1.0.1
Downloaded fake-simd v0.1.2
Downloaded addr2line v0.17.0
Downloaded rand_core v0.3.1
Downloaded generic-array v0.12.4
Downloaded humantime v1.3.0
Downloaded filetime v0.2.18
Downloaded matches v0.1.9
Downloaded getrandom v0.1.16
Downloaded failure_derive v0.1.8
Downloaded either v1.8.0
Downloaded block-buffer v0.7.3
Downloaded failure v0.1.8
Downloaded iana-time-zone v0.1.53
Downloaded cc v1.0.74
Downloaded object v0.29.0
Downloaded typeable v0.1.2
Downloaded modifier v0.1.0
Downloaded shlex v0.1.1
Downloaded rand_core v0.4.2
Downloaded num_cpus v1.14.0
Downloaded synstructure v0.12.6
Downloaded once_cell v1.16.0
Downloaded lazycell v1.3.0
Downloaded strsim v0.8.0
Downloaded proc-macro2 v0.4.30
Downloaded ppv-lite86 v0.2.17
Downloaded net2 v0.2.38
Downloaded opaque-debug v0.2.3
Downloaded libc v0.2.137
Downloaded miniz_oxide v0.5.4
Downloaded strum_macros v0.21.1
Downloaded handlebars v3.5.5
Downloaded serde_derive v1.0.147
Downloaded clap v2.34.0
Downloaded bytes v0.4.12
Downloaded block-padding v0.1.5
Downloaded serde v1.0.147
Downloaded backtrace v0.3.66
Downloaded rand v0.7.3
Downloaded byte-tools v0.3.1
Downloaded rand_xorshift v0.1.1
Downloaded safemem v0.3.3
Downloaded regex v1.7.0
Downloaded idna v0.1.5
Downloaded sequence_trie v0.3.6
Downloaded toml-query v0.9.2
Downloaded darling_macro v0.8.6
Downloaded pulldown-cmark v0.6.1
Downloaded toml-query_derive v0.9.2
Downloaded staticfile v0.5.0
Downloaded mount v0.4.0
Downloaded digest v0.8.1
Downloaded darling v0.8.6
Downloaded mime v0.2.6
Downloaded is-match v0.1.0
Downloaded rand_hc v0.1.0
Downloaded rand_chacha v0.2.2
Downloaded docopt v1.1.1
Downloaded darling_core v0.8.6
Downloaded rand v0.6.5
Downloaded regex-syntax v0.6.28
Downloaded vec_map v0.8.2
Downloaded textwrap v0.11.0
Downloaded syn v1.0.103
Downloaded gimli v0.26.2
Downloaded mdbook v0.3.7
Downloaded 118 crates (6.6 MB) in 8.52s
Compiling libc v0.2.137
Compiling autocfg v1.1.0
Compiling proc-macro2 v1.0.47
Compiling quote v1.0.21
Compiling unicode-ident v1.0.5
Compiling cfg-if v1.0.0
Compiling syn v1.0.103
Compiling version_check v0.1.5
Compiling rand_core v0.4.2
Compiling log v0.4.17
Compiling memchr v2.5.0
Compiling serde_derive v1.0.147
Compiling tinyvec_macros v0.1.0
Compiling serde v1.0.147
Compiling unicode-bidi v0.3.8
Compiling ppv-lite86 v0.2.17
Compiling siphasher v0.2.3
Compiling thiserror v1.0.37
Compiling proc-macro2 v0.4.30
Compiling siphasher v0.3.10
Compiling byteorder v1.4.3
Compiling unicode-xid v0.1.0
Compiling parking_lot_core v0.9.4
Compiling traitobject v0.1.0
Compiling httparse v1.8.0
Compiling version_check v0.9.4
Compiling syn v0.15.44
Compiling typenum v1.15.0
Compiling matches v0.1.9
Compiling scopeguard v1.1.0
Compiling smallvec v1.10.0
Compiling getrandom v0.1.16
Compiling cc v1.0.74
Compiling new_debug_unreachable v1.0.4
Compiling adler v1.0.2
Compiling fnv v1.0.7
Compiling mac v0.1.1
Compiling ident_case v1.0.1
Compiling safemem v0.3.3
Compiling ucd-trie v0.1.5
Compiling percent-encoding v1.0.1
Compiling regex-syntax v0.6.28
Compiling gimli v0.26.2
Compiling once_cell v1.16.0
Compiling failure_derive v0.1.8
Compiling percent-encoding v2.2.0
Compiling core-foundation-sys v0.8.3
Compiling serde_json v1.0.87
Compiling cfg-if v0.1.10
Compiling rustc-demangle v0.1.21
Compiling bitflags v1.3.2
Compiling language-tags v0.2.2
Compiling utf-8 v0.7.6
Compiling unicode-width v0.1.10
Compiling typeable v0.1.2
Compiling precomputed-hash v0.1.1
Compiling unicode-xid v0.2.4
Compiling byte-tools v0.3.1
Compiling lazy_static v1.4.0
Compiling unicode-segmentation v1.10.0
Compiling modifier v0.1.0
Compiling ryu v1.0.11
Compiling itoa v1.0.4
Compiling lazycell v1.3.0
Compiling opaque-debug v0.2.3
Compiling sequence_trie v0.3.6
Compiling fake-simd v0.1.2
Compiling pulldown-cmark v0.6.1
Compiling quick-error v1.2.3
Compiling same-file v1.0.6
Compiling fastrand v1.8.0
Compiling is-match v0.1.0
Compiling strsim v0.8.0
Compiling vec_map v0.8.2
Compiling maplit v1.0.2
Compiling quick-error v2.0.1
Compiling ansi_term v0.12.1
Compiling termcolor v1.1.3
Compiling remove_dir_all v0.5.3
Compiling strum v0.21.0
Compiling either v1.8.0
Compiling glob v0.3.0
Compiling pathdiff v0.2.1
Compiling shlex v0.1.1
Compiling strsim v0.10.0
Compiling autocfg v0.1.8
Compiling rand_core v0.3.1
Compiling unicase v1.4.2
Compiling tinyvec v1.6.0
Compiling lock_api v0.4.9
Compiling slab v0.4.7
Compiling num-traits v0.2.15
Compiling num-integer v0.1.45
Compiling unsafe-any v0.4.2
Compiling phf_shared v0.10.0
Compiling unicase v2.6.0
Compiling error-chain v0.12.4
Compiling miniz_oxide v0.5.4
Compiling futf v0.1.5
Compiling base64 v0.9.3
Compiling form_urlencoded v1.1.0
Compiling textwrap v0.11.0
Compiling getopts v0.2.21
Compiling block-padding v0.1.5
Compiling backtrace v0.3.66
Compiling heck v0.3.3
Compiling humantime v1.3.0
Compiling walkdir v2.3.2
Compiling addr2line v0.17.0
Compiling itertools v0.8.2
Compiling gitignore v1.0.7
Compiling open v1.7.1
Compiling rand_chacha v0.1.1
Compiling rand_pcg v0.1.2
Compiling rand v0.6.5
Compiling rand_isaac v0.1.1
Compiling rand_hc v0.1.0
Compiling rand_xorshift v0.1.1
Compiling unicode-normalization v0.1.22
Compiling typemap v0.3.3
Compiling phf v0.10.1
Compiling tendril v0.4.3
Compiling idna v0.1.5
Compiling idna v0.3.0
Compiling getrandom v0.2.8
Compiling rand_jitter v0.1.4
Compiling rand_os v0.1.3
Compiling time v0.1.44
Compiling num_cpus v1.14.0
Compiling iovec v0.1.4
Compiling net2 v0.2.38
Compiling fsevent-sys v2.0.1
Compiling atty v0.2.14
Compiling filetime v0.2.18
Compiling tempfile v3.3.0
Compiling plugin v0.2.6
Compiling log v0.3.9
Compiling aho-corasick v0.7.19
Compiling object v0.29.0
Compiling quote v0.6.13
Compiling generic-array v0.12.4
Compiling url v1.7.2
Compiling url v2.3.1
Compiling iana-time-zone v0.1.53
Compiling rand_core v0.6.4
Compiling rand_core v0.5.1
Compiling bytes v0.4.12
Compiling fsevent v0.4.0
Compiling clap v2.34.0
Compiling mime v0.2.6
Compiling phf_shared v0.7.24
Compiling regex v1.7.0
Compiling parking_lot v0.12.1
Compiling digest v0.8.1
Compiling block-buffer v0.7.3
Compiling mio v0.6.23
Compiling rand_chacha v0.3.1
Compiling rand_chacha v0.2.2
Compiling notify v4.0.17
Compiling hyper v0.10.16
Compiling phf v0.7.24
Compiling env_logger v0.6.2
Compiling sha-1 v0.8.2
Compiling mio-extras v2.0.6
Compiling chrono v0.4.22
Compiling synstructure v0.12.6
Compiling rand v0.8.5
Compiling rand v0.7.3
Compiling darling_core v0.8.6
Compiling thiserror-impl v1.0.37
Compiling html5ever v0.26.0
Compiling strum_macros v0.21.1
Compiling phf_generator v0.7.24
Compiling phf_generator v0.10.0
Compiling ws v0.9.2
Compiling darling_macro v0.8.6
Compiling phf_codegen v0.7.24
Compiling phf_codegen v0.10.0
Compiling string_cache_codegen v0.5.2
Compiling failure v0.1.8
Compiling darling v0.8.6
Compiling mime_guess v1.8.8
Compiling markup5ever v0.11.0
Compiling pest v2.4.1
Compiling toml-query_derive v0.9.2
Compiling pest_meta v2.4.1
Compiling pest_generator v2.4.1
Compiling pest_derive v2.4.1
Compiling iron v0.6.1
Compiling mount v0.4.0
Compiling staticfile v0.5.0
Compiling string_cache v0.8.4
Compiling toml v0.5.9
Compiling docopt v1.1.1
Compiling toml-query v0.9.2
Compiling handlebars v3.5.5
Compiling elasticlunr-rs v2.3.14
Compiling ammonia v3.2.1
Compiling mdbook v0.3.7
error[E0597]: local_ctx does not live long enough
--> /Users/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/mdbook-0.3.7/src/renderer/html_handlebars/helpers/navigation.rs:155:25
|
155 | t.render(r, &local_ctx, &mut local_rc, out)
| ^^^^^^^^^^ borrowed value does not live long enough
156 | })?;
| -
| |
| 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...
error: failed to compile mdbook-presentation-preprocessor v0.2.2, intermediate artifacts can be found at /var/folders/4z/4fjzr0516z9gfpnt3ksdrh_40000gn/T/cargo-installjX5yOc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant