[INFO] fetching crate gchemol-readwrite 0.1.11... [INFO] checking gchemol-readwrite-0.1.11 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate gchemol-readwrite 0.1.11 into /workspace/builds/worker-7-tc2/source [INFO] validating manifest of crates.io crate gchemol-readwrite 0.1.11 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate gchemol-readwrite 0.1.11 [INFO] finished tweaking crates.io crate gchemol-readwrite 0.1.11 [INFO] tweaked toml for crates.io crate gchemol-readwrite 0.1.11 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 206 packages to latest compatible versions [INFO] [stderr] Adding base64 v0.20.0 (available: v0.22.1) [INFO] [stderr] Adding chrono-tz v0.9.0 (available: v0.10.0) [INFO] [stderr] Adding chrono-tz-build v0.3.0 (available: v0.4.0) [INFO] [stderr] Adding env_logger v0.10.2 (available: v0.11.5) [INFO] [stderr] Adding fixedbitset v0.4.2 (available: v0.5.7) [INFO] [stderr] Adding gchemol-parser v0.4.6 (available: v0.5.1) [INFO] [stderr] Adding generic-array v0.14.7 (available: v1.1.0) [INFO] [stderr] Adding grep v0.2.13 (available: v0.3.2) [INFO] [stderr] Adding grep-printer v0.1.7 (available: v0.2.2) [INFO] [stderr] Adding handlebars v4.0.1 (available: v4.5.0) [INFO] [stderr] Adding hashbrown v0.12.3 (available: v0.14.5) [INFO] [stderr] Adding indexmap v1.9.3 (available: v2.5.0) [INFO] [stderr] Adding itertools v0.10.5 (available: v0.13.0) [INFO] [stderr] Adding lazy-regex v2.5.0 (available: v3.3.0) [INFO] [stderr] Adding lazy-regex-proc_macros v2.4.1 (available: v3.3.0) [INFO] [stderr] Adding linux-raw-sys v0.4.14 (available: v0.6.5) [INFO] [stderr] Adding minijinja v1.0.21 (available: v2.3.1) [INFO] [stderr] Adding nalgebra v0.31.4 (available: v0.33.0) [INFO] [stderr] Adding nalgebra-macros v0.1.0 (available: v0.2.2) [INFO] [stderr] Adding ordered-float v3.9.2 (available: v4.3.0) [INFO] [stderr] Adding roxmltree v0.18.1 (available: v0.20.0) [INFO] [stderr] Adding simba v0.7.3 (available: v0.9.0) [INFO] [stderr] Adding siphasher v0.3.11 (available: v1.0.1) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.77) [INFO] [stderr] Adding toml v0.7.8 (available: v0.8.19) [INFO] [stderr] Adding toml_edit v0.19.15 (available: v0.22.22) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding windows-core v0.52.0 (available: v0.58.0) [INFO] [stderr] Adding windows-sys v0.52.0 (available: v0.59.0) [INFO] [stderr] Adding winnow v0.5.40 (available: v0.6.20) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7f822bc652a145eafb4657efb527d218fc22a54529404a77708baf01461f78d5 [INFO] running `Command { std: "docker" "start" "-a" "7f822bc652a145eafb4657efb527d218fc22a54529404a77708baf01461f78d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7f822bc652a145eafb4657efb527d218fc22a54529404a77708baf01461f78d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f822bc652a145eafb4657efb527d218fc22a54529404a77708baf01461f78d5", kill_on_drop: false }` [INFO] [stdout] 7f822bc652a145eafb4657efb527d218fc22a54529404a77708baf01461f78d5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 47b8820862cb60ebda06bbd98b1bc6ba79a5c4bd56e076b060d20b757aefd78c [INFO] running `Command { std: "docker" "start" "-a" "47b8820862cb60ebda06bbd98b1bc6ba79a5c4bd56e076b060d20b757aefd78c", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Checking indexmap v2.5.0 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking bytemuck v1.18.0 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking safe_arch v0.7.2 [INFO] [stderr] Checking anstyle-parse v0.2.5 [INFO] [stderr] Checking grep-matcher v0.1.7 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Checking winnow v0.5.40 [INFO] [stderr] Checking colorchoice v1.0.2 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Checking anstyle v1.0.8 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking anstyle-query v1.1.1 [INFO] [stderr] Checking anstream v0.6.15 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Checking encoding_rs_io v0.1.7 [INFO] [stderr] Checking wide v0.7.28 [INFO] [stderr] Checking memmap2 v0.9.5 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking bstr v1.10.0 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking clap_lex v0.7.2 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking globset v0.4.15 [INFO] [stderr] Checking grep-searcher v0.1.14 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling clap_derive v4.5.18 [INFO] [stderr] Checking clap_builder v4.5.18 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling nalgebra-macros v0.1.0 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking shared_child v1.0.1 [INFO] [stderr] Checking is-terminal v0.4.13 [INFO] [stderr] Checking os_pipe v1.2.1 [INFO] [stderr] Checking num-conv v0.1.0 [INFO] [stderr] Checking fastrand v2.1.1 [INFO] [stderr] Checking time-core v0.1.2 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking duct v0.13.7 [INFO] [stderr] Checking clap v4.5.18 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking tempfile v3.12.0 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking shell-escape v0.1.5 [INFO] [stderr] Compiling pest v2.7.13 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Checking grep-cli v0.1.11 [INFO] [stderr] Checking grep-regex v0.1.13 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking unic-common v0.9.0 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking unic-char-range v0.9.0 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking unic-char-property v0.9.0 [INFO] [stderr] Checking unic-ucd-version v0.9.0 [INFO] [stderr] Checking fixedbitset v0.4.2 [INFO] [stderr] Checking base64 v0.20.0 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking unic-ucd-segment v0.9.0 [INFO] [stderr] Checking ignore v0.4.23 [INFO] [stderr] Checking deunicode v1.6.0 [INFO] [stderr] Compiling pest_meta v2.7.13 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking str_indices v0.4.3 [INFO] [stderr] Checking ropey v1.6.1 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking slug v0.1.6 [INFO] [stderr] Checking globwalk v0.9.1 [INFO] [stderr] Checking unic-segment v0.9.0 [INFO] [stderr] Compiling lazy-regex-proc_macros v2.4.1 [INFO] [stderr] Checking humansize v2.1.3 [INFO] [stderr] Checking quick-error v2.0.1 [INFO] [stderr] Checking xmlparser v0.13.6 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Compiling pest_generator v2.7.13 [INFO] [stderr] Checking roxmltree v0.18.1 [INFO] [stderr] Checking lazy-regex v2.5.0 [INFO] [stderr] Compiling pest_derive v2.7.13 [INFO] [stderr] Checking serde_json v1.0.128 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking serde_spanned v0.6.8 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking petgraph v0.6.5 [INFO] [stderr] Checking bimap v0.6.3 [INFO] [stderr] Checking envy v0.4.2 [INFO] [stderr] Checking toml_edit v0.19.15 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking minijinja v1.0.21 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking simba v0.7.3 [INFO] [stderr] Checking grep-printer v0.2.2 [INFO] [stderr] Checking grep-printer v0.1.7 [INFO] [stderr] Checking grep v0.2.13 [INFO] [stderr] Checking handlebars v4.0.1 [INFO] [stderr] Checking grep v0.3.2 [INFO] [stderr] Checking ordered-float v3.9.2 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking toml v0.7.8 [INFO] [stderr] Checking grep-reader v0.1.3 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Checking extxyz v0.2.0 [INFO] [stderr] Compiling phf_codegen v0.11.2 [INFO] [stderr] Checking gchemol-graph v0.1.6 [INFO] [stderr] Compiling chrono-tz-build v0.3.0 [INFO] [stderr] Checking gchemol-gut v0.4.4 [INFO] [stderr] Compiling chrono-tz v0.9.0 [INFO] [stderr] Checking gchemol-parser v0.4.6 [INFO] [stderr] Checking nalgebra v0.31.4 [INFO] [stderr] Checking tera v1.20.0 [INFO] [stderr] Checking vecfx v0.1.6 [INFO] [stderr] Checking octree v0.1.0 [INFO] [stderr] Checking gchemol-lattice v0.1.2 [INFO] [stderr] Checking gchemol-geometry v0.1.1 [INFO] [stderr] Checking gchemol-neighbors v0.1.3 [INFO] [stderr] Checking gchemol-core v0.1.7 [INFO] [stderr] Checking gchemol-readwrite v0.1.11 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `gchemol_readwrite` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/formats.rs [INFO] [stderr] * src/formats/mol2.rs [INFO] [stderr] * src/formats/pdb.rs [INFO] [stderr] * src/template/hbs.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/formats.rs:81:6 [INFO] [stderr] | [INFO] [stderr] 81 | ($chemical_file:expr_2021, $parsed_mols_iter:expr_2021, $reader:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/formats.rs:81:32 [INFO] [stderr] | [INFO] [stderr] 81 | ($chemical_file:expr_2021, $parsed_mols_iter:expr_2021, $reader:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/formats.rs:81:61 [INFO] [stderr] | [INFO] [stderr] 81 | ($chemical_file:expr_2021, $parsed_mols_iter:expr_2021, $reader:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `gchemol_core::Atom::label`: use get_label instead [INFO] [stderr] --> src/formats/mol2.rs:113:18 [INFO] [stderr] | [INFO] [stderr] 113 | name = a.label(), [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `gchemol_core::Atom::label`: use get_label instead [INFO] [stderr] --> src/formats/pdb.rs:150:16 [INFO] [stderr] | [INFO] [stderr] 150 | name=a.label(), [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rc` [INFO] [stderr] --> src/template/hbs.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | rc: &mut RenderContext, [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_rc` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/template/hbs.rs:108:9 [INFO] [stderr] | [INFO] [stderr] 108 | let x = render_molecule_with(&mol, &template).unwrap(); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors; 4 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/formats.rs:81:21 [INFO] [stdout] | [INFO] [stdout] 81 | ($chemical_file:expr, $parsed_mols_iter:expr, $reader:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 81 | ($chemical_file:expr_2021, $parsed_mols_iter:expr, $reader:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/formats.rs:81:45 [INFO] [stdout] | [INFO] [stdout] 81 | ($chemical_file:expr, $parsed_mols_iter:expr, $reader:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 81 | ($chemical_file:expr, $parsed_mols_iter:expr_2021, $reader:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/formats.rs:81:59 [INFO] [stdout] | [INFO] [stdout] 81 | ($chemical_file:expr, $parsed_mols_iter:expr, $reader:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 81 | ($chemical_file:expr, $parsed_mols_iter:expr, $reader:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/template/jinja.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `gchemol_core::Atom::label`: use get_label instead [INFO] [stdout] --> src/formats/mol2.rs:113:18 [INFO] [stdout] | [INFO] [stdout] 113 | name = a.label(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `gchemol_core::Atom::label`: use get_label instead [INFO] [stdout] --> src/formats/pdb.rs:150:16 [INFO] [stdout] | [INFO] [stdout] 150 | name=a.label(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rc` [INFO] [stdout] --> src/template/hbs.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | rc: &mut RenderContext, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/template/hbs.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | let x = render_molecule_with(&mol, &template).unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/template/jinja.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | let mut env = Environment::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `GLOBAL_REX` is never used [INFO] [stdout] --> src/template/jinja.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | static GLOBAL_REX: Lazy = lazy_regex!("^ab+$"i); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render` is never used [INFO] [stdout] --> src/template/jinja.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn render(json_source: &str, template: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats.rs:91:71 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats.rs:91:36 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result + use> [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats.rs:203:58 [INFO] [stdout] | [INFO] [stdout] 203 | pub fn parse_molecules(&self, path: &Path) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats.rs:203:28 [INFO] [stdout] | [INFO] [stdout] 203 | pub fn parse_molecules(&self, path: &Path) -> Result> { [INFO] [stdout] | ^ ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 203 | pub fn parse_molecules(&self, path: &Path) -> Result + use<>> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/formats.rs:217:8 [INFO] [stdout] | [INFO] [stdout] 217 | if let Some(cf) = guess_chemical_file_format(path, fmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/formats.rs:223:5 [INFO] [stdout] | [INFO] [stdout] 223 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 217 ~ match guess_chemical_file_format(path, fmt) { Some(cf) => { [INFO] [stdout] 218 | let mut fp = File::create(path).with_context(|| format!("Failed to create file: {:?}", path))?; [INFO] [stdout] ... [INFO] [stdout] 222 | } [INFO] [stdout] 223 ~ } _ => { [INFO] [stdout] 224 | bail!("No suitable chemical file format found for {:?}", path); [INFO] [stdout] 225 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats.rs:158:93 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/formats/car.rs:140:1 [INFO] [stdout] | [INFO] [stdout] 140 | crate::cf_impl_partitions!(CarFile); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats.rs:158:54 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/formats/car.rs:140:1 [INFO] [stdout] | [INFO] [stdout] 140 | crate::cf_impl_partitions!(CarFile); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the macro `crate::cf_impl_partitions` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats/cif.rs:406:81 [INFO] [stdout] | [INFO] [stdout] 406 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats/cif.rs:406:42 [INFO] [stdout] | [INFO] [stdout] 406 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 406 | pub fn partitions(&self, mut r: TextReader) -> Result + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats.rs:158:93 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/formats/cjson.rs:149:1 [INFO] [stdout] | [INFO] [stdout] 149 | crate::cf_impl_partitions!(ChemicalJsonFile); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats.rs:158:54 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/formats/cjson.rs:149:1 [INFO] [stdout] | [INFO] [stdout] 149 | crate::cf_impl_partitions!(ChemicalJsonFile); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the macro `crate::cf_impl_partitions` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats.rs:158:93 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/formats/cml.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | crate::cf_impl_partitions!(CmlFile); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats.rs:158:54 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/formats/cml.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | crate::cf_impl_partitions!(CmlFile); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the macro `crate::cf_impl_partitions` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats/mol2.rs:433:81 [INFO] [stdout] | [INFO] [stdout] 433 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats/mol2.rs:433:42 [INFO] [stdout] | [INFO] [stdout] 433 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 433 | pub fn partitions(&self, mut r: TextReader) -> Result + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats/pdb.rs:466:81 [INFO] [stdout] | [INFO] [stdout] 466 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats/pdb.rs:466:42 [INFO] [stdout] | [INFO] [stdout] 466 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 466 | pub fn partitions(&self, mut r: TextReader) -> Result + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats/sdf.rs:232:81 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats/sdf.rs:232:42 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 232 | pub fn partitions(&self, mut r: TextReader) -> Result + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats.rs:158:93 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/formats/xsd.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | crate::cf_impl_partitions!(XsdFile); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats.rs:158:54 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/formats/xsd.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | crate::cf_impl_partitions!(XsdFile); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the macro `crate::cf_impl_partitions` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats/xyz.rs:263:86 [INFO] [stdout] | [INFO] [stdout] 263 | pub fn partitions(&self, mut reader: TextReader) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats/xyz.rs:263:42 [INFO] [stdout] | [INFO] [stdout] 263 | pub fn partitions(&self, mut reader: TextReader) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 263 | pub fn partitions(&self, mut reader: TextReader) -> Result + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats/xyz.rs:295:86 [INFO] [stdout] | [INFO] [stdout] 295 | pub fn partitions(&self, mut reader: TextReader) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats/xyz.rs:295:42 [INFO] [stdout] | [INFO] [stdout] 295 | pub fn partitions(&self, mut reader: TextReader) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 295 | pub fn partitions(&self, mut reader: TextReader) -> Result + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/formats/xyz.rs:301:20 [INFO] [stdout] | [INFO] [stdout] 301 | if let Some(n) = reader.read_line(&mut buf) { [INFO] [stdout] | ^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/formats/xyz.rs:306:17 [INFO] [stdout] | [INFO] [stdout] 306 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 301 ~ match reader.read_line(&mut buf) { Some(n) => { [INFO] [stdout] 302 | let m = buf.len(); [INFO] [stdout] ... [INFO] [stdout] 305 | } [INFO] [stdout] 306 ~ } _ => { [INFO] [stdout] 307 | // we should not miss the last part when reach EOF [INFO] [stdout] ... [INFO] [stdout] 312 | } [INFO] [stdout] 313 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/formats/gaussian_input.rs:623:8 [INFO] [stdout] | [INFO] [stdout] 623 | if let Ok(extra) = GaussianAtomInfo::extract(&a) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^----------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/formats/gaussian_input.rs:626:5 [INFO] [stdout] | [INFO] [stdout] 626 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 623 ~ match GaussianAtomInfo::extract(&a) { Ok(extra) => { [INFO] [stdout] 624 | let oniom = extra.oniom_info; [INFO] [stdout] 625 | format!("{part} {oniom}\n") [INFO] [stdout] 626 ~ } _ => { [INFO] [stdout] 627 | format!("{part}\n") [INFO] [stdout] 628 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats/gaussian_input.rs:733:81 [INFO] [stdout] | [INFO] [stdout] 733 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats/gaussian_input.rs:733:42 [INFO] [stdout] | [INFO] [stdout] 733 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 733 | pub fn partitions(&self, mut r: TextReader) -> Result + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats.rs:158:93 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/formats/vasp_input.rs:431:1 [INFO] [stdout] | [INFO] [stdout] 431 | crate::cf_impl_partitions!(PoscarFile); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats.rs:158:54 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/formats/vasp_input.rs:431:1 [INFO] [stdout] | [INFO] [stdout] 431 | crate::cf_impl_partitions!(PoscarFile); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the macro `crate::cf_impl_partitions` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator + 'a` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/io.rs:121:78 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn find_files<'a>(pattern: &'a str, root: &Path, recursive: bool) -> impl Iterator + 'a { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/io.rs:121:51 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn find_files<'a>(pattern: &'a str, root: &Path, recursive: bool) -> impl Iterator + 'a { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 121 | pub fn find_files<'a>(pattern: &'a str, root: &Path, recursive: bool) -> impl Iterator + 'a + use<'a> { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `gchemol_readwrite` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/formats.rs [INFO] [stderr] * src/formats/mol2.rs [INFO] [stderr] * src/formats/pdb.rs [INFO] [stderr] * src/template/hbs.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/formats.rs:81:6 [INFO] [stderr] | [INFO] [stderr] 81 | ($chemical_file:expr_2021, $parsed_mols_iter:expr_2021, $reader:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/formats.rs:81:32 [INFO] [stderr] | [INFO] [stderr] 81 | ($chemical_file:expr_2021, $parsed_mols_iter:expr_2021, $reader:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/formats.rs:81:61 [INFO] [stderr] | [INFO] [stderr] 81 | ($chemical_file:expr_2021, $parsed_mols_iter:expr_2021, $reader:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `gchemol_core::Atom::label`: use get_label instead [INFO] [stderr] --> src/formats/mol2.rs:113:18 [INFO] [stderr] | [INFO] [stderr] 113 | name = a.label(), [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `gchemol_core::Atom::label`: use get_label instead [INFO] [stderr] --> src/formats/pdb.rs:150:16 [INFO] [stderr] | [INFO] [stderr] 150 | name=a.label(), [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rc` [INFO] [stderr] --> src/template/hbs.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | rc: &mut RenderContext, [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_rc` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors; 3 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/formats.rs:81:21 [INFO] [stdout] | [INFO] [stdout] 81 | ($chemical_file:expr, $parsed_mols_iter:expr, $reader:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 81 | ($chemical_file:expr_2021, $parsed_mols_iter:expr, $reader:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/formats.rs:81:45 [INFO] [stdout] | [INFO] [stdout] 81 | ($chemical_file:expr, $parsed_mols_iter:expr, $reader:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 81 | ($chemical_file:expr, $parsed_mols_iter:expr_2021, $reader:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/formats.rs:81:59 [INFO] [stdout] | [INFO] [stdout] 81 | ($chemical_file:expr, $parsed_mols_iter:expr, $reader:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 81 | ($chemical_file:expr, $parsed_mols_iter:expr, $reader:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/template/jinja.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `gchemol_core::Atom::label`: use get_label instead [INFO] [stdout] --> src/formats/mol2.rs:113:18 [INFO] [stdout] | [INFO] [stdout] 113 | name = a.label(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `gchemol_core::Atom::label`: use get_label instead [INFO] [stdout] --> src/formats/pdb.rs:150:16 [INFO] [stdout] | [INFO] [stdout] 150 | name=a.label(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rc` [INFO] [stdout] --> src/template/hbs.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | rc: &mut RenderContext, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/template/jinja.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | let mut env = Environment::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `GLOBAL_REX` is never used [INFO] [stdout] --> src/template/jinja.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | static GLOBAL_REX: Lazy = lazy_regex!("^ab+$"i); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render` is never used [INFO] [stdout] --> src/template/jinja.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn render(json_source: &str, template: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats.rs:91:71 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats.rs:91:36 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result + use> [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats.rs:203:58 [INFO] [stdout] | [INFO] [stdout] 203 | pub fn parse_molecules(&self, path: &Path) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats.rs:203:28 [INFO] [stdout] | [INFO] [stdout] 203 | pub fn parse_molecules(&self, path: &Path) -> Result> { [INFO] [stdout] | ^ ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 203 | pub fn parse_molecules(&self, path: &Path) -> Result + use<>> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/formats.rs:217:8 [INFO] [stdout] | [INFO] [stdout] 217 | if let Some(cf) = guess_chemical_file_format(path, fmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/formats.rs:223:5 [INFO] [stdout] | [INFO] [stdout] 223 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 217 ~ match guess_chemical_file_format(path, fmt) { Some(cf) => { [INFO] [stdout] 218 | let mut fp = File::create(path).with_context(|| format!("Failed to create file: {:?}", path))?; [INFO] [stdout] ... [INFO] [stdout] 222 | } [INFO] [stdout] 223 ~ } _ => { [INFO] [stdout] 224 | bail!("No suitable chemical file format found for {:?}", path); [INFO] [stdout] 225 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats.rs:158:93 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/formats/car.rs:140:1 [INFO] [stdout] | [INFO] [stdout] 140 | crate::cf_impl_partitions!(CarFile); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats.rs:158:54 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/formats/car.rs:140:1 [INFO] [stdout] | [INFO] [stdout] 140 | crate::cf_impl_partitions!(CarFile); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the macro `crate::cf_impl_partitions` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats/cif.rs:406:81 [INFO] [stdout] | [INFO] [stdout] 406 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats/cif.rs:406:42 [INFO] [stdout] | [INFO] [stdout] 406 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 406 | pub fn partitions(&self, mut r: TextReader) -> Result + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats.rs:158:93 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/formats/cjson.rs:149:1 [INFO] [stdout] | [INFO] [stdout] 149 | crate::cf_impl_partitions!(ChemicalJsonFile); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats.rs:158:54 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/formats/cjson.rs:149:1 [INFO] [stdout] | [INFO] [stdout] 149 | crate::cf_impl_partitions!(ChemicalJsonFile); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the macro `crate::cf_impl_partitions` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats.rs:158:93 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/formats/cml.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | crate::cf_impl_partitions!(CmlFile); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats.rs:158:54 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/formats/cml.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | crate::cf_impl_partitions!(CmlFile); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the macro `crate::cf_impl_partitions` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats/mol2.rs:433:81 [INFO] [stdout] | [INFO] [stdout] 433 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats/mol2.rs:433:42 [INFO] [stdout] | [INFO] [stdout] 433 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 433 | pub fn partitions(&self, mut r: TextReader) -> Result + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats/pdb.rs:466:81 [INFO] [stdout] | [INFO] [stdout] 466 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats/pdb.rs:466:42 [INFO] [stdout] | [INFO] [stdout] 466 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 466 | pub fn partitions(&self, mut r: TextReader) -> Result + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats/sdf.rs:232:81 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats/sdf.rs:232:42 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 232 | pub fn partitions(&self, mut r: TextReader) -> Result + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats.rs:158:93 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/formats/xsd.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | crate::cf_impl_partitions!(XsdFile); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats.rs:158:54 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/formats/xsd.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | crate::cf_impl_partitions!(XsdFile); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the macro `crate::cf_impl_partitions` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats/xyz.rs:263:86 [INFO] [stdout] | [INFO] [stdout] 263 | pub fn partitions(&self, mut reader: TextReader) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats/xyz.rs:263:42 [INFO] [stdout] | [INFO] [stdout] 263 | pub fn partitions(&self, mut reader: TextReader) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 263 | pub fn partitions(&self, mut reader: TextReader) -> Result + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats/xyz.rs:295:86 [INFO] [stdout] | [INFO] [stdout] 295 | pub fn partitions(&self, mut reader: TextReader) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats/xyz.rs:295:42 [INFO] [stdout] | [INFO] [stdout] 295 | pub fn partitions(&self, mut reader: TextReader) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 295 | pub fn partitions(&self, mut reader: TextReader) -> Result + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/formats/xyz.rs:301:20 [INFO] [stdout] | [INFO] [stdout] 301 | if let Some(n) = reader.read_line(&mut buf) { [INFO] [stdout] | ^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/formats/xyz.rs:306:17 [INFO] [stdout] | [INFO] [stdout] 306 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 301 ~ match reader.read_line(&mut buf) { Some(n) => { [INFO] [stdout] 302 | let m = buf.len(); [INFO] [stdout] ... [INFO] [stdout] 305 | } [INFO] [stdout] 306 ~ } _ => { [INFO] [stdout] 307 | // we should not miss the last part when reach EOF [INFO] [stdout] ... [INFO] [stdout] 312 | } [INFO] [stdout] 313 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/formats/gaussian_input.rs:623:8 [INFO] [stdout] | [INFO] [stdout] 623 | if let Ok(extra) = GaussianAtomInfo::extract(&a) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^----------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/formats/gaussian_input.rs:626:5 [INFO] [stdout] | [INFO] [stdout] 626 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 623 ~ match GaussianAtomInfo::extract(&a) { Ok(extra) => { [INFO] [stdout] 624 | let oniom = extra.oniom_info; [INFO] [stdout] 625 | format!("{part} {oniom}\n") [INFO] [stdout] 626 ~ } _ => { [INFO] [stdout] 627 | format!("{part}\n") [INFO] [stdout] 628 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats/gaussian_input.rs:733:81 [INFO] [stdout] | [INFO] [stdout] 733 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats/gaussian_input.rs:733:42 [INFO] [stdout] | [INFO] [stdout] 733 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 733 | pub fn partitions(&self, mut r: TextReader) -> Result + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/formats.rs:158:93 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/formats/vasp_input.rs:431:1 [INFO] [stdout] | [INFO] [stdout] 431 | crate::cf_impl_partitions!(PoscarFile); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/formats.rs:158:54 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result> { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/formats/vasp_input.rs:431:1 [INFO] [stdout] | [INFO] [stdout] 431 | crate::cf_impl_partitions!(PoscarFile); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: this warning originates in the macro `crate::cf_impl_partitions` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 158 | pub fn partitions(&self, mut r: TextReader) -> Result + use> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::iter::Iterator + 'a` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/io.rs:121:78 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn find_files<'a>(pattern: &'a str, root: &Path, recursive: bool) -> impl Iterator + 'a { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/io.rs:121:51 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn find_files<'a>(pattern: &'a str, root: &Path, recursive: bool) -> impl Iterator + 'a { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 121 | pub fn find_files<'a>(pattern: &'a str, root: &Path, recursive: bool) -> impl Iterator + 'a + use<'a> { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/basic.rs from 2021 edition to 2024 [INFO] [stderr] Fixed tests/basic.rs (1 fix) [INFO] [stderr] Migrating tests/cif.rs from 2021 edition to 2024 [INFO] [stderr] Fixed tests/cif.rs (2 fixes) [INFO] [stderr] Migrating tests/pxyz.rs from 2021 edition to 2024 [INFO] [stdout] warning: unused import: `gut::prelude` [INFO] [stdout] --> tests/cif.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use gut::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed tests/pxyz.rs (2 fixes) [INFO] [stderr] Migrating tests/xyz.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/pdb.rs from 2021 edition to 2024 [INFO] [stderr] Fixed tests/pdb.rs (2 fixes) [INFO] [stderr] Migrating tests/cml.rs from 2021 edition to 2024 [INFO] [stderr] Fixed tests/cml.rs (1 fix) [INFO] [stderr] Migrating tests/xsd.rs from 2021 edition to 2024 [INFO] [stderr] Fixed tests/xsd.rs (1 fix) [INFO] [stderr] Migrating tests/template.rs from 2021 edition to 2024 [INFO] [stderr] Fixed tests/template.rs (1 fix) [INFO] [stderr] Migrating tests/gaussian.rs from 2021 edition to 2024 [INFO] [stderr] Fixed tests/gaussian.rs (2 fixes) [INFO] [stderr] Migrating tests/vasp.rs from 2021 edition to 2024 [INFO] [stderr] Fixed tests/vasp.rs (2 fixes) [INFO] [stderr] Migrating tests/sdf.rs from 2021 edition to 2024 [INFO] [stderr] Fixed tests/sdf.rs (2 fixes) [INFO] [stderr] Migrating tests/cjson.rs from 2021 edition to 2024 [INFO] [stderr] Fixed tests/cjson.rs (1 fix) [INFO] [stderr] Migrating tests/mol2.rs from 2021 edition to 2024 [INFO] [stderr] Fixed tests/mol2.rs (1 fix) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 41.49s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking gchemol-readwrite v0.1.11 (/tmp/fixit) [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/template/jinja.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/template/jinja.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/formats.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 83 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 84 | let iter = cf.partitions($reader)?.map(move |part| cf.parse_molecule(part.as_str())); [INFO] [stdout] | ^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'1` [INFO] [stdout] 85 | Some(iter) [INFO] [stdout] 86 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 109 | "text/xyz" => cf_parse!(XyzFile, p1, r), [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `cf_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/formats.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 83 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 84 | let iter = cf.partitions($reader)?.map(move |part| cf.parse_molecule(part.as_str())); [INFO] [stdout] | ^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'1` [INFO] [stdout] 85 | Some(iter) [INFO] [stdout] 86 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 110 | "text/pxyz" => cf_parse!(PlainXyzFile, p2, r), [INFO] [stdout] | ------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `cf_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/formats.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 83 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 84 | let iter = cf.partitions($reader)?.map(move |part| cf.parse_molecule(part.as_str())); [INFO] [stdout] | ^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'1` [INFO] [stdout] 85 | Some(iter) [INFO] [stdout] 86 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 111 | "text/mol2" => cf_parse!(Mol2File, p3, r), [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `cf_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/formats.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 83 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 84 | let iter = cf.partitions($reader)?.map(move |part| cf.parse_molecule(part.as_str())); [INFO] [stdout] | ^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'1` [INFO] [stdout] 85 | Some(iter) [INFO] [stdout] 86 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 112 | "text/cif" => cf_parse!(CifFile, p4, r), [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `cf_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/formats.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 83 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 84 | let iter = cf.partitions($reader)?.map(move |part| cf.parse_molecule(part.as_str())); [INFO] [stdout] | ^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'1` [INFO] [stdout] 85 | Some(iter) [INFO] [stdout] 86 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 113 | "text/sdf" => cf_parse!(SdfFile, p5, r), [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `cf_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/formats.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 83 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 84 | let iter = cf.partitions($reader)?.map(move |part| cf.parse_molecule(part.as_str())); [INFO] [stdout] | ^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'1` [INFO] [stdout] 85 | Some(iter) [INFO] [stdout] 86 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 114 | "text/pdb" => cf_parse!(PdbFile, p6, r), [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `cf_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/formats.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 83 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 84 | let iter = cf.partitions($reader)?.map(move |part| cf.parse_molecule(part.as_str())); [INFO] [stdout] | ^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'1` [INFO] [stdout] 85 | Some(iter) [INFO] [stdout] 86 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 115 | "vasp/input" => cf_parse!(PoscarFile, p7, r), [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `cf_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/formats.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 83 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 84 | let iter = cf.partitions($reader)?.map(move |part| cf.parse_molecule(part.as_str())); [INFO] [stdout] | ^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'1` [INFO] [stdout] 85 | Some(iter) [INFO] [stdout] 86 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 116 | "gaussian/input" => cf_parse!(GaussianInputFile, p8, r), [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `cf_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/formats.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 83 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 84 | let iter = cf.partitions($reader)?.map(move |part| cf.parse_molecule(part.as_str())); [INFO] [stdout] | ^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'1` [INFO] [stdout] 85 | Some(iter) [INFO] [stdout] 86 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 117 | "xml/xsd" => cf_parse!(XsdFile, p9, r), [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `cf_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/formats.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 83 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 84 | let iter = cf.partitions($reader)?.map(move |part| cf.parse_molecule(part.as_str())); [INFO] [stdout] | ^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'1` [INFO] [stdout] 85 | Some(iter) [INFO] [stdout] 86 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 118 | "xml/cml" => cf_parse!(CmlFile, p10, r), [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `cf_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/formats.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 83 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 84 | let iter = cf.partitions($reader)?.map(move |part| cf.parse_molecule(part.as_str())); [INFO] [stdout] | ^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'1` [INFO] [stdout] 85 | Some(iter) [INFO] [stdout] 86 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 119 | "text/car" => cf_parse!(CarFile, p11, r), [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `cf_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/formats.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 83 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 84 | let iter = cf.partitions($reader)?.map(move |part| cf.parse_molecule(part.as_str())); [INFO] [stdout] | ^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'1` [INFO] [stdout] 85 | Some(iter) [INFO] [stdout] 86 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 120 | "text/cjson" => cf_parse!(ChemicalJsonFile, p12, r), [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `cf_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/formats.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 83 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 84 | let iter = cf.partitions($reader)?.map(move |part| cf.parse_molecule(part.as_str())); [INFO] [stdout] | ^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'1` [INFO] [stdout] 85 | Some(iter) [INFO] [stdout] 86 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 109 | "text/xyz" => cf_parse!(XyzFile, p1, r), [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `cf_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/formats.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 83 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 84 | let iter = cf.partitions($reader)?.map(move |part| cf.parse_molecule(part.as_str())); [INFO] [stdout] | ^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'1` [INFO] [stdout] 85 | Some(iter) [INFO] [stdout] 86 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 110 | "text/pxyz" => cf_parse!(PlainXyzFile, p2, r), [INFO] [stdout] | ------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `cf_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/formats.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 83 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 84 | let iter = cf.partitions($reader)?.map(move |part| cf.parse_molecule(part.as_str())); [INFO] [stdout] | ^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'1` [INFO] [stdout] 85 | Some(iter) [INFO] [stdout] 86 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 111 | "text/mol2" => cf_parse!(Mol2File, p3, r), [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `cf_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/formats.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 83 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 84 | let iter = cf.partitions($reader)?.map(move |part| cf.parse_molecule(part.as_str())); [INFO] [stdout] | ^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'1` [INFO] [stdout] 85 | Some(iter) [INFO] [stdout] 86 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 112 | "text/cif" => cf_parse!(CifFile, p4, r), [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `cf_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/formats.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 83 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 84 | let iter = cf.partitions($reader)?.map(move |part| cf.parse_molecule(part.as_str())); [INFO] [stdout] | ^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'1` [INFO] [stdout] 85 | Some(iter) [INFO] [stdout] 86 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 113 | "text/sdf" => cf_parse!(SdfFile, p5, r), [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `cf_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/formats.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 83 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 84 | let iter = cf.partitions($reader)?.map(move |part| cf.parse_molecule(part.as_str())); [INFO] [stdout] | ^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'1` [INFO] [stdout] 85 | Some(iter) [INFO] [stdout] 86 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 114 | "text/pdb" => cf_parse!(PdbFile, p6, r), [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `cf_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/formats.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 83 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 84 | let iter = cf.partitions($reader)?.map(move |part| cf.parse_molecule(part.as_str())); [INFO] [stdout] | ^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'1` [INFO] [stdout] 85 | Some(iter) [INFO] [stdout] 86 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 115 | "vasp/input" => cf_parse!(PoscarFile, p7, r), [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `cf_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/formats.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 83 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 84 | let iter = cf.partitions($reader)?.map(move |part| cf.parse_molecule(part.as_str())); [INFO] [stdout] | ^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'1` [INFO] [stdout] 85 | Some(iter) [INFO] [stdout] 86 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 116 | "gaussian/input" => cf_parse!(GaussianInputFile, p8, r), [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `cf_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/formats.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 83 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 84 | let iter = cf.partitions($reader)?.map(move |part| cf.parse_molecule(part.as_str())); [INFO] [stdout] | ^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'1` [INFO] [stdout] 85 | Some(iter) [INFO] [stdout] 86 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 117 | "xml/xsd" => cf_parse!(XsdFile, p9, r), [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `cf_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/formats.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 83 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 84 | let iter = cf.partitions($reader)?.map(move |part| cf.parse_molecule(part.as_str())); [INFO] [stdout] | ^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'1` [INFO] [stdout] 85 | Some(iter) [INFO] [stdout] 86 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 118 | "xml/cml" => cf_parse!(CmlFile, p10, r), [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `cf_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/formats.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 83 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 84 | let iter = cf.partitions($reader)?.map(move |part| cf.parse_molecule(part.as_str())); [INFO] [stdout] | ^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'1` [INFO] [stdout] 85 | Some(iter) [INFO] [stdout] 86 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 119 | "text/car" => cf_parse!(CarFile, p11, r), [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `cf_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/formats.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 83 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 84 | let iter = cf.partitions($reader)?.map(move |part| cf.parse_molecule(part.as_str())); [INFO] [stdout] | ^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'1` [INFO] [stdout] 85 | Some(iter) [INFO] [stdout] 86 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 120 | "text/cjson" => cf_parse!(ChemicalJsonFile, p12, r), [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `cf_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `path` does not live long enough [INFO] [stdout] --> src/io.rs:162:16 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn read>(path: P) -> Result> { [INFO] [stdout] | ---- binding `path` declared here [INFO] [stdout] 162 | let path = path.as_ref(); [INFO] [stdout] | ^^^^ borrowed value does not live long enough [INFO] [stdout] 163 | / crate::formats::ChemicalFileParser::guess_from_path(path) [INFO] [stdout] 164 | | .ok_or(format_err!("No parser for path: {:?}", path))? [INFO] [stdout] 165 | | .parse_molecules(path.as_ref()) [INFO] [stdout] | |_______________________________________- argument requires that `path` is borrowed for `'static` [INFO] [stdout] 166 | } [INFO] [stdout] | - `path` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0310]: the parameter type `P` may not live long enough [INFO] [stdout] --> src/io.rs:162:16 [INFO] [stdout] | [INFO] [stdout] 162 | let path = path.as_ref(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | the parameter type `P` must be valid for the static lifetime... [INFO] [stdout] | ...so that the type `P` will meet its required lifetime bounds [INFO] [stdout] | [INFO] [stdout] help: consider adding an explicit lifetime bound [INFO] [stdout] | [INFO] [stdout] 161 | pub fn read + 'static>(path: P) -> Result> { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/io.rs:163:5 [INFO] [stdout] | [INFO] [stdout] 163 | // crate::formats::ChemicalFileParser::guess_from_path(path) [INFO] [stdout] 164 | || .ok_or(format_err!("No parser for path: {:?}", path))? [INFO] [stdout] | ||______________________________________________________________^ creates a temporary value which is freed while still in use [INFO] [stdout] 165 | | .parse_molecules(path.as_ref()) [INFO] [stdout] | |________________________________________- argument requires that borrow lasts for `'static` [INFO] [stdout] 166 | } [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/io.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 177 | let cf = crate::formats::ChemicalFileParser::new(fmt.as_ref()); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 178 | let r = gchemol_parser::TextReader::new(source); [INFO] [stdout] 179 | cf.parse_molecules_from(r) [INFO] [stdout] | ^^------------------------ [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'static` [INFO] [stdout] 180 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `path` does not live long enough [INFO] [stdout] --> src/io.rs:162:16 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn read>(path: P) -> Result> { [INFO] [stdout] | ---- binding `path` declared here [INFO] [stdout] 162 | let path = path.as_ref(); [INFO] [stdout] | ^^^^ borrowed value does not live long enough [INFO] [stdout] 163 | / crate::formats::ChemicalFileParser::guess_from_path(path) [INFO] [stdout] 164 | | .ok_or(format_err!("No parser for path: {:?}", path))? [INFO] [stdout] 165 | | .parse_molecules(path.as_ref()) [INFO] [stdout] | |_______________________________________- argument requires that `path` is borrowed for `'static` [INFO] [stdout] 166 | } [INFO] [stdout] | - `path` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0310]: the parameter type `P` may not live long enough [INFO] [stdout] --> src/io.rs:162:16 [INFO] [stdout] | [INFO] [stdout] 162 | let path = path.as_ref(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | the parameter type `P` must be valid for the static lifetime... [INFO] [stdout] | ...so that the type `P` will meet its required lifetime bounds [INFO] [stdout] | [INFO] [stdout] help: consider adding an explicit lifetime bound [INFO] [stdout] | [INFO] [stdout] 161 | pub fn read + 'static>(path: P) -> Result> { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/io.rs:163:5 [INFO] [stdout] | [INFO] [stdout] 163 | // crate::formats::ChemicalFileParser::guess_from_path(path) [INFO] [stdout] 164 | || .ok_or(format_err!("No parser for path: {:?}", path))? [INFO] [stdout] | ||______________________________________________________________^ creates a temporary value which is freed while still in use [INFO] [stdout] 165 | | .parse_molecules(path.as_ref()) [INFO] [stdout] | |________________________________________- argument requires that borrow lasts for `'static` [INFO] [stdout] 166 | } [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `cf` does not live long enough [INFO] [stdout] --> src/io.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 177 | let cf = crate::formats::ChemicalFileParser::new(fmt.as_ref()); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 178 | let r = gchemol_parser::TextReader::new(source); [INFO] [stdout] 179 | cf.parse_molecules_from(r) [INFO] [stdout] | ^^------------------------ [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `cf` is borrowed for `'static` [INFO] [stdout] 180 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `gchemol_core::Atom::label`: use get_label instead [INFO] [stdout] --> src/formats/mol2.rs:113:18 [INFO] [stdout] | [INFO] [stdout] 113 | name = a.label(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `gchemol_core::Atom::label`: use get_label instead [INFO] [stdout] --> src/formats/pdb.rs:150:16 [INFO] [stdout] | [INFO] [stdout] 150 | name=a.label(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `gchemol_core::Atom::label`: use get_label instead [INFO] [stdout] --> src/formats/mol2.rs:113:18 [INFO] [stdout] | [INFO] [stdout] 113 | name = a.label(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `gchemol_core::Atom::label`: use get_label instead [INFO] [stdout] --> src/formats/pdb.rs:150:16 [INFO] [stdout] | [INFO] [stdout] 150 | name=a.label(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rc` [INFO] [stdout] --> src/template/hbs.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | rc: &mut RenderContext, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/template/jinja.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | let mut env = Environment::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0310, E0597, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0310`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gchemol-readwrite` (lib) due to 17 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `rc` [INFO] [stdout] --> src/template/hbs.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | rc: &mut RenderContext, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/template/hbs.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | let x = render_molecule_with(&mol, &template).unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/template/jinja.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | let mut env = Environment::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0310, E0597, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0310`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gchemol-readwrite` (lib test) due to 17 previous errors; 6 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "47b8820862cb60ebda06bbd98b1bc6ba79a5c4bd56e076b060d20b757aefd78c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47b8820862cb60ebda06bbd98b1bc6ba79a5c4bd56e076b060d20b757aefd78c", kill_on_drop: false }` [INFO] [stdout] 47b8820862cb60ebda06bbd98b1bc6ba79a5c4bd56e076b060d20b757aefd78c