[INFO] fetching crate gchemol-readwrite 0.1.10... [INFO] checking gchemol-readwrite-0.1.10 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate gchemol-readwrite 0.1.10 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate gchemol-readwrite 0.1.10 on toolchain 23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate gchemol-readwrite 0.1.10 [INFO] finished tweaking crates.io crate gchemol-readwrite 0.1.10 [INFO] tweaked toml for crates.io crate gchemol-readwrite 0.1.10 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b7e1ca96bba2c41f493f00bd143fd8e1c6c4850a9eb2a94a28c747d2d87bda11 [INFO] running `Command { std: "docker" "start" "-a" "b7e1ca96bba2c41f493f00bd143fd8e1c6c4850a9eb2a94a28c747d2d87bda11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b7e1ca96bba2c41f493f00bd143fd8e1c6c4850a9eb2a94a28c747d2d87bda11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7e1ca96bba2c41f493f00bd143fd8e1c6c4850a9eb2a94a28c747d2d87bda11", kill_on_drop: false }` [INFO] [stdout] b7e1ca96bba2c41f493f00bd143fd8e1c6c4850a9eb2a94a28c747d2d87bda11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a661847d0c1ebc00e83097a8b36af12ff87ca3d88fdbcf34138ccb4810da1fed [INFO] running `Command { std: "docker" "start" "-a" "a661847d0c1ebc00e83097a8b36af12ff87ca3d88fdbcf34138ccb4810da1fed", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Compiling memchr v2.6.3 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Checking regex-automata v0.3.8 [INFO] [stderr] Compiling rustix v0.38.13 [INFO] [stderr] Checking hashbrown v0.14.0 [INFO] [stderr] Checking bytemuck v1.14.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Checking linux-raw-sys v0.4.7 [INFO] [stderr] Checking bitflags v2.4.0 [INFO] [stderr] Compiling thiserror-impl v1.0.48 [INFO] [stderr] Checking serde v1.0.188 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking anstyle-parse v0.2.1 [INFO] [stderr] Compiling matrixmultiply v0.3.7 [INFO] [stderr] Checking anstyle v1.0.3 [INFO] [stderr] Checking safe_arch v0.7.1 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling aho-corasick v1.1.0 [INFO] [stderr] Checking wide v0.7.11 [INFO] [stderr] Checking indexmap v2.0.0 [INFO] [stderr] Checking anstream v0.5.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Checking clap_lex v0.5.1 [INFO] [stderr] Checking winnow v0.5.15 [INFO] [stderr] Compiling clap_derive v4.4.2 [INFO] [stderr] Checking clap_builder v4.4.4 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking num-integer v0.1.45 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Checking deranged v0.3.8 [INFO] [stderr] Checking time-core v0.1.1 [INFO] [stderr] Checking fastrand v2.0.0 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Compiling thiserror v1.0.48 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking shell-escape v0.1.5 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Checking encoding_rs v0.8.33 [INFO] [stderr] Checking grep-matcher v0.1.6 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking shared_child v1.0.0 [INFO] [stderr] Checking os_pipe v1.1.4 [INFO] [stderr] Compiling pest v2.7.3 [INFO] [stderr] Checking memmap2 v0.5.10 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking duct v0.13.6 [INFO] [stderr] Checking rayon-core v1.11.0 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking tempfile v3.8.0 [INFO] [stderr] Checking bytecount v0.6.3 [INFO] [stderr] Checking unic-char-range v0.9.0 [INFO] [stderr] Checking unic-common v0.9.0 [INFO] [stderr] Checking unic-char-property v0.9.0 [INFO] [stderr] Checking unic-ucd-version v0.9.0 [INFO] [stderr] Checking rayon v1.7.0 [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Checking fixedbitset v0.4.2 [INFO] [stderr] Checking base64 v0.20.0 [INFO] [stderr] Checking time v0.3.28 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking regex v1.9.5 [INFO] [stderr] Checking bstr v1.6.2 [INFO] [stderr] Checking iana-time-zone v0.1.57 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking serde_json v1.0.107 [INFO] [stderr] Checking toml_datetime v0.6.3 [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Checking serde_spanned v0.6.3 [INFO] [stderr] Checking env_logger v0.10.0 [INFO] [stderr] Checking encoding_rs_io v0.1.7 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking toml_edit v0.19.15 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking globset v0.4.13 [INFO] [stderr] Checking grep-searcher v0.1.11 [INFO] [stderr] Compiling pest_meta v2.7.3 [INFO] [stderr] Checking ignore v0.4.20 [INFO] [stderr] Checking simba v0.7.3 [INFO] [stderr] Checking grep-printer v0.1.7 [INFO] [stderr] Checking grep-cli v0.1.9 [INFO] [stderr] Checking chrono v0.4.31 [INFO] [stderr] Checking petgraph v0.6.4 [INFO] [stderr] Checking unic-ucd-segment v0.9.0 [INFO] [stderr] Checking deunicode v0.4.4 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking clap v4.4.4 [INFO] [stderr] Checking str_indices v0.4.1 [INFO] [stderr] Checking smallvec v1.11.0 [INFO] [stderr] Checking globwalk v0.8.1 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking ordered-float v3.9.1 [INFO] [stderr] Compiling pest_generator v2.7.3 [INFO] [stderr] Checking grep-regex v0.1.11 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking unic-segment v0.9.0 [INFO] [stderr] Checking ropey v1.6.0 [INFO] [stderr] Checking toml v0.7.8 [INFO] [stderr] Checking grep v0.2.12 [INFO] [stderr] Checking slug v0.1.4 [INFO] [stderr] Checking bimap v0.6.3 [INFO] [stderr] Checking envy v0.4.2 [INFO] [stderr] Checking humansize v2.1.3 [INFO] [stderr] Checking quick-error v2.0.1 [INFO] [stderr] Checking xmlparser v0.13.5 [INFO] [stderr] Checking percent-encoding v2.3.0 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling phf_codegen v0.11.2 [INFO] [stderr] Checking minijinja v1.0.8 [INFO] [stderr] Checking roxmltree v0.18.0 [INFO] [stderr] Checking gchemol-gut v0.4.4 [INFO] [stderr] Compiling nalgebra-macros v0.1.0 [INFO] [stderr] Compiling pest_derive v2.7.3 [INFO] [stderr] Compiling parse-zoneinfo v0.3.0 [INFO] [stderr] Compiling lazy-regex-proc_macros v2.4.1 [INFO] [stderr] Compiling chrono-tz-build v0.2.0 [INFO] [stderr] Checking gchemol-graph v0.1.5 [INFO] [stderr] Checking handlebars v4.0.1 [INFO] [stderr] Checking gchemol-parser v0.4.5 [INFO] [stderr] Compiling chrono-tz v0.8.3 [INFO] [stderr] Checking lazy-regex v2.5.0 [INFO] [stderr] Checking nalgebra v0.31.4 [INFO] [stderr] Checking tera v1.19.1 [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.5 [INFO] [stderr] Checking gchemol-readwrite v0.1.10 (/opt/rustwide/workdir) [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:81:24 [INFO] [stdout] | [INFO] [stdout] 80 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 81 | 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] 82 | Some(iter) [INFO] [stdout] 83 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 106 | "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:81:24 [INFO] [stdout] | [INFO] [stdout] 80 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 81 | 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] 82 | Some(iter) [INFO] [stdout] 83 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 107 | "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:81:24 [INFO] [stdout] | [INFO] [stdout] 80 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 81 | 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] 82 | Some(iter) [INFO] [stdout] 83 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 108 | "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:81:24 [INFO] [stdout] | [INFO] [stdout] 80 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 81 | 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] 82 | Some(iter) [INFO] [stdout] 83 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 88 | 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/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:81:24 [INFO] [stdout] | [INFO] [stdout] 80 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 81 | 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] 82 | Some(iter) [INFO] [stdout] 83 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 88 | 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/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:81:24 [INFO] [stdout] | [INFO] [stdout] 80 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 81 | 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] 82 | Some(iter) [INFO] [stdout] 83 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 88 | 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/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:81:24 [INFO] [stdout] | [INFO] [stdout] 80 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 81 | 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] 82 | Some(iter) [INFO] [stdout] 83 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 88 | 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 | "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:81:24 [INFO] [stdout] | [INFO] [stdout] 80 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 81 | 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] 82 | Some(iter) [INFO] [stdout] 83 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 88 | 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 | "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:81:24 [INFO] [stdout] | [INFO] [stdout] 80 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 81 | 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] 82 | Some(iter) [INFO] [stdout] 83 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 88 | 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 | "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:81:24 [INFO] [stdout] | [INFO] [stdout] 80 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 81 | 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] 82 | Some(iter) [INFO] [stdout] 83 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 88 | 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 | "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:81:24 [INFO] [stdout] | [INFO] [stdout] 80 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 81 | 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] 82 | Some(iter) [INFO] [stdout] 83 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 88 | 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 | "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:81:24 [INFO] [stdout] | [INFO] [stdout] 80 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 81 | 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] 82 | Some(iter) [INFO] [stdout] 83 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 88 | 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 | "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:81:24 [INFO] [stdout] | [INFO] [stdout] 80 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 81 | 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] 82 | Some(iter) [INFO] [stdout] 83 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 106 | "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:81:24 [INFO] [stdout] | [INFO] [stdout] 80 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 81 | 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] 82 | Some(iter) [INFO] [stdout] 83 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 107 | "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:81:24 [INFO] [stdout] | [INFO] [stdout] 80 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 81 | 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] 82 | Some(iter) [INFO] [stdout] 83 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn parse_molecules_from(&self, r: TextReader) -> Result> [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 108 | "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:81:24 [INFO] [stdout] | [INFO] [stdout] 80 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 81 | 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] 82 | Some(iter) [INFO] [stdout] 83 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 88 | 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/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:81:24 [INFO] [stdout] | [INFO] [stdout] 80 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 81 | 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] 82 | Some(iter) [INFO] [stdout] 83 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 88 | 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/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:81:24 [INFO] [stdout] | [INFO] [stdout] 80 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 81 | 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] 82 | Some(iter) [INFO] [stdout] 83 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 88 | 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/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:81:24 [INFO] [stdout] | [INFO] [stdout] 80 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 81 | 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] 82 | Some(iter) [INFO] [stdout] 83 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 88 | 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 | "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:81:24 [INFO] [stdout] | [INFO] [stdout] 80 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 81 | 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] 82 | Some(iter) [INFO] [stdout] 83 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 88 | 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 | "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:81:24 [INFO] [stdout] | [INFO] [stdout] 80 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 81 | 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] 82 | Some(iter) [INFO] [stdout] 83 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 88 | 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 | "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:81:24 [INFO] [stdout] | [INFO] [stdout] 80 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 81 | 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] 82 | Some(iter) [INFO] [stdout] 83 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 88 | 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 | "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:81:24 [INFO] [stdout] | [INFO] [stdout] 80 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 81 | 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] 82 | Some(iter) [INFO] [stdout] 83 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 88 | 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 | "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:81:24 [INFO] [stdout] | [INFO] [stdout] 80 | let cf = $chemical_file(); [INFO] [stdout] | -- binding `cf` declared here [INFO] [stdout] 81 | 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] 82 | Some(iter) [INFO] [stdout] 83 | } [INFO] [stdout] | - `cf` dropped here while still borrowed [INFO] [stdout] ... [INFO] [stdout] 88 | 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 | "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] | ^^^^^^^^^^^^^ ...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] | ^^^^^^^^^^^^^ ...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] error: aborting due to 16 previous errors; 3 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; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 16 previous errors; 3 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; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a661847d0c1ebc00e83097a8b36af12ff87ca3d88fdbcf34138ccb4810da1fed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a661847d0c1ebc00e83097a8b36af12ff87ca3d88fdbcf34138ccb4810da1fed", kill_on_drop: false }` [INFO] [stdout] a661847d0c1ebc00e83097a8b36af12ff87ca3d88fdbcf34138ccb4810da1fed