[INFO] cloning repository https://github.com/vivlim/rust-gallery-generator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vivlim/rust-gallery-generator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvivlim%2Frust-gallery-generator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvivlim%2Frust-gallery-generator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cc35acc56b7f2617e61b5c6743968c547b3e910c [INFO] documenting vivlim/rust-gallery-generator against beta-2022-07-10 for beta-1.63-rustdoc-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvivlim%2Frust-gallery-generator" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vivlim/rust-gallery-generator on toolchain beta-2022-07-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-07-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/vivlim/rust-gallery-generator [INFO] finished tweaking git repo https://github.com/vivlim/rust-gallery-generator [INFO] tweaked toml for git repo https://github.com/vivlim/rust-gallery-generator written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/vivlim/rust-gallery-generator already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-07-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-07-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1416d59913073b5a7cf400dd9fae22de3b05e48d498223db57976ea30f7849ad [INFO] running `Command { std: "docker" "start" "-a" "1416d59913073b5a7cf400dd9fae22de3b05e48d498223db57976ea30f7849ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1416d59913073b5a7cf400dd9fae22de3b05e48d498223db57976ea30f7849ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1416d59913073b5a7cf400dd9fae22de3b05e48d498223db57976ea30f7849ad", kill_on_drop: false }` [INFO] [stdout] 1416d59913073b5a7cf400dd9fae22de3b05e48d498223db57976ea30f7849ad [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "RUSTDOCFLAGS=--cap-lints=warn" "-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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-07-10" "doc" "--frozen" "--no-deps" "--document-private-items" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 96263519e20b69013d9c36aa4c7949cf65abf23802200f5abdb38332ea1f2ac1 [INFO] running `Command { std: "docker" "start" "-a" "96263519e20b69013d9c36aa4c7949cf65abf23802200f5abdb38332ea1f2ac1", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling num-rational v0.2.1 [INFO] [stderr] Compiling libc v0.2.43 [INFO] [stderr] Compiling rand_core v0.3.0 [INFO] [stderr] Compiling cfg-if v0.1.6 [INFO] [stderr] Compiling safemem v0.3.0 [INFO] [stderr] Compiling either v1.5.0 [INFO] [stderr] Compiling byteorder v1.2.7 [INFO] [stderr] Compiling md5 v0.3.8 [INFO] [stderr] Compiling itertools v0.7.8 [INFO] [stderr] Compiling rand_core v0.2.2 [INFO] [stderr] Compiling base64 v0.9.3 [INFO] [stderr] Compiling rand v0.5.5 [INFO] [stderr] Compiling memchr v2.1.1 [INFO] [stderr] Compiling lazy_static v1.1.0 [INFO] [stderr] Compiling unicase v2.2.0 [INFO] [stderr] Checking mime v0.3.12 [INFO] [stderr] Checking nom v4.0.0 [INFO] [stderr] Checking rsass v0.9.4 [INFO] [stderr] Checking ructe v0.4.6 [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ructe-0.4.6/src/templateexpression.rs:87:63 [INFO] [stdout] | [INFO] [stdout] 87 | else_body.iter().format_with("", |body, f| f(&format_args!( [INFO] [stdout] | _________________________________________________________-__-__^ [INFO] [stdout] | |_________________________________________________________|__| [INFO] [stdout] | || | [INFO] [stdout] | || has type `&mut dyn FnMut(&'1 (dyn std::fmt::Display + '1)) -> Result<(), std::fmt::Error>` [INFO] [stdout] 88 | || " else {{\n{}}}", [INFO] [stdout] 89 | || body.iter().map(|b| b.code()).format(""), [INFO] [stdout] 90 | || ))), [INFO] [stdout] | || ^- [INFO] [stdout] | || || [INFO] [stdout] | ||_________________|temporary value is freed at the end of this statement [INFO] [stdout] | |_________________|argument requires that borrow lasts for `'1` [INFO] [stdout] | creates a temporary which is freed while still in use [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `format_args` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ructe-0.4.6/src/templateexpression.rs:89:21 [INFO] [stdout] | [INFO] [stdout] 87 | else_body.iter().format_with("", |body, f| f(&format_args!( [INFO] [stdout] | _________________________________________________________-__- [INFO] [stdout] | | | [INFO] [stdout] | | has type `&mut dyn FnMut(&'1 (dyn std::fmt::Display + '1)) -> Result<(), std::fmt::Error>` [INFO] [stdout] 88 | | " else {{\n{}}}", [INFO] [stdout] 89 | | body.iter().map(|b| b.code()).format(""), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary which is freed while still in use [INFO] [stdout] 90 | | ))), [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |__________________temporary value is freed at the end of this statement [INFO] [stdout] | argument requires that borrow lasts for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ructe-0.4.6/src/templateexpression.rs:96:61 [INFO] [stdout] | [INFO] [stdout] 96 | args.iter().format_with("", |arg, f| f(&format_args!( [INFO] [stdout] | _______________________________________________________-__-__^ [INFO] [stdout] | |_______________________________________________________|__| [INFO] [stdout] | || | [INFO] [stdout] | || has type `&mut dyn FnMut(&'1 (dyn std::fmt::Display + '1)) -> Result<(), std::fmt::Error>` [INFO] [stdout] 97 | || ", {}", [INFO] [stdout] 98 | || arg [INFO] [stdout] 99 | || ))), [INFO] [stdout] | || ^- [INFO] [stdout] | || || [INFO] [stdout] | ||_____________________|temporary value is freed at the end of this statement [INFO] [stdout] | |_____________________|argument requires that borrow lasts for `'1` [INFO] [stdout] | creates a temporary which is freed while still in use [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `format_args` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `arg` does not live long enough [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ructe-0.4.6/src/templateexpression.rs:98:25 [INFO] [stdout] | [INFO] [stdout] 96 | args.iter().format_with("", |arg, f| f(&format_args!( [INFO] [stdout] | _______________________________________________________-__- [INFO] [stdout] | | | [INFO] [stdout] | | has type `&mut dyn FnMut(&'1 (dyn std::fmt::Display + '1)) -> Result<(), std::fmt::Error>` [INFO] [stdout] 97 | | ", {}", [INFO] [stdout] 98 | | arg [INFO] [stdout] | | ^^^ borrowed value does not live long enough [INFO] [stdout] 99 | | ))), [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |______________________`arg` dropped here while still borrowed [INFO] [stdout] | argument requires that `arg` is borrowed for `'1` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `format_args` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of associated function [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ructe-0.4.6/src/templateexpression.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn code(&self) -> String { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | `self` is a reference that is only valid in the associated function body [INFO] [stdout] | let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 87 | / else_body.iter().format_with("", |body, f| f(&format_args!( [INFO] [stdout] 88 | | " else {{\n{}}}", [INFO] [stdout] 89 | | body.iter().map(|b| b.code()).format(""), [INFO] [stdout] 90 | | ))), [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |___________________`self` escapes the associated function body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ructe-0.4.6/src/template.rs:49:46 [INFO] [stdout] | [INFO] [stdout] 49 | .format_with("", |arg, f| f(&format_args!(", {}", arg))), [INFO] [stdout] | - ---^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | | | | | [INFO] [stdout] | | | | temporary value is freed at the end of this statement [INFO] [stdout] | | | creates a temporary which is freed while still in use [INFO] [stdout] | | argument requires that borrow lasts for `'1` [INFO] [stdout] | has type `&mut dyn FnMut(&'1 (dyn std::fmt::Display + '1)) -> Result<(), std::fmt::Error>` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `format_args` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `arg` does not live long enough [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ructe-0.4.6/src/template.rs:49:67 [INFO] [stdout] | [INFO] [stdout] 49 | .format_with("", |arg, f| f(&format_args!(", {}", arg))), [INFO] [stdout] | - ------------------------^^^-- [INFO] [stdout] | | | | | [INFO] [stdout] | | | | `arg` dropped here while still borrowed [INFO] [stdout] | | | borrowed value does not live long enough [INFO] [stdout] | | argument requires that `arg` is borrowed for `'1` [INFO] [stdout] | has type `&mut dyn FnMut(&'1 (dyn std::fmt::Display + '1)) -> Result<(), std::fmt::Error>` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `format_args` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of associated function [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ructe-0.4.6/src/template.rs:46:20 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn write_rust(&self, out: &mut Write, name: &str) -> io::Result<()> { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | `self` is a reference that is only valid in the associated function body [INFO] [stdout] | let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 46 | args = self [INFO] [stdout] | ____________________^ [INFO] [stdout] 47 | | .args [INFO] [stdout] 48 | | .iter() [INFO] [stdout] 49 | | .format_with("", |arg, f| f(&format_args!(", {}", arg))), [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |________________________________________________________________________`self` escapes the associated function body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0521, E0597, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0521`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ructe` due to 9 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ructe-0.4.6/src/templateexpression.rs:87:63 [INFO] [stdout] | [INFO] [stdout] 87 | else_body.iter().format_with("", |body, f| f(&format_args!( [INFO] [stdout] | _________________________________________________________-__-__^ [INFO] [stdout] | |_________________________________________________________|__| [INFO] [stdout] | || | [INFO] [stdout] | || has type `&mut dyn FnMut(&'1 (dyn std::fmt::Display + '1)) -> Result<(), std::fmt::Error>` [INFO] [stdout] 88 | || " else {{\n{}}}", [INFO] [stdout] 89 | || body.iter().map(|b| b.code()).format(""), [INFO] [stdout] 90 | || ))), [INFO] [stdout] | || ^- [INFO] [stdout] | || || [INFO] [stdout] | ||_________________|temporary value is freed at the end of this statement [INFO] [stdout] | |_________________|argument requires that borrow lasts for `'1` [INFO] [stdout] | creates a temporary which is freed while still in use [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `format_args` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ructe-0.4.6/src/templateexpression.rs:89:21 [INFO] [stdout] | [INFO] [stdout] 87 | else_body.iter().format_with("", |body, f| f(&format_args!( [INFO] [stdout] | _________________________________________________________-__- [INFO] [stdout] | | | [INFO] [stdout] | | has type `&mut dyn FnMut(&'1 (dyn std::fmt::Display + '1)) -> Result<(), std::fmt::Error>` [INFO] [stdout] 88 | | " else {{\n{}}}", [INFO] [stdout] 89 | | body.iter().map(|b| b.code()).format(""), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary which is freed while still in use [INFO] [stdout] 90 | | ))), [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |__________________temporary value is freed at the end of this statement [INFO] [stdout] | argument requires that borrow lasts for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ructe-0.4.6/src/templateexpression.rs:96:61 [INFO] [stdout] | [INFO] [stdout] 96 | args.iter().format_with("", |arg, f| f(&format_args!( [INFO] [stdout] | _______________________________________________________-__-__^ [INFO] [stdout] | |_______________________________________________________|__| [INFO] [stdout] | || | [INFO] [stdout] | || has type `&mut dyn FnMut(&'1 (dyn std::fmt::Display + '1)) -> Result<(), std::fmt::Error>` [INFO] [stdout] 97 | || ", {}", [INFO] [stdout] 98 | || arg [INFO] [stdout] 99 | || ))), [INFO] [stdout] | || ^- [INFO] [stdout] | || || [INFO] [stdout] | ||_____________________|temporary value is freed at the end of this statement [INFO] [stdout] | |_____________________|argument requires that borrow lasts for `'1` [INFO] [stdout] | creates a temporary which is freed while still in use [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `format_args` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `arg` does not live long enough [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ructe-0.4.6/src/templateexpression.rs:98:25 [INFO] [stdout] | [INFO] [stdout] 96 | args.iter().format_with("", |arg, f| f(&format_args!( [INFO] [stdout] | _______________________________________________________-__- [INFO] [stdout] | | | [INFO] [stdout] | | has type `&mut dyn FnMut(&'1 (dyn std::fmt::Display + '1)) -> Result<(), std::fmt::Error>` [INFO] [stdout] 97 | | ", {}", [INFO] [stdout] 98 | | arg [INFO] [stdout] | | ^^^ borrowed value does not live long enough [INFO] [stdout] 99 | | ))), [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |______________________`arg` dropped here while still borrowed [INFO] [stdout] | argument requires that `arg` is borrowed for `'1` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `format_args` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of associated function [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ructe-0.4.6/src/templateexpression.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn code(&self) -> String { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | `self` is a reference that is only valid in the associated function body [INFO] [stdout] | let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 87 | / else_body.iter().format_with("", |body, f| f(&format_args!( [INFO] [stdout] 88 | | " else {{\n{}}}", [INFO] [stdout] 89 | | body.iter().map(|b| b.code()).format(""), [INFO] [stdout] 90 | | ))), [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |___________________`self` escapes the associated function body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ructe-0.4.6/src/template.rs:49:46 [INFO] [stdout] | [INFO] [stdout] 49 | .format_with("", |arg, f| f(&format_args!(", {}", arg))), [INFO] [stdout] | - ---^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | | | | | [INFO] [stdout] | | | | temporary value is freed at the end of this statement [INFO] [stdout] | | | creates a temporary which is freed while still in use [INFO] [stdout] | | argument requires that borrow lasts for `'1` [INFO] [stdout] | has type `&mut dyn FnMut(&'1 (dyn std::fmt::Display + '1)) -> Result<(), std::fmt::Error>` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `format_args` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `arg` does not live long enough [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ructe-0.4.6/src/template.rs:49:67 [INFO] [stdout] | [INFO] [stdout] 49 | .format_with("", |arg, f| f(&format_args!(", {}", arg))), [INFO] [stdout] | - ------------------------^^^-- [INFO] [stdout] | | | | | [INFO] [stdout] | | | | `arg` dropped here while still borrowed [INFO] [stdout] | | | borrowed value does not live long enough [INFO] [stdout] | | argument requires that `arg` is borrowed for `'1` [INFO] [stdout] | has type `&mut dyn FnMut(&'1 (dyn std::fmt::Display + '1)) -> Result<(), std::fmt::Error>` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `format_args` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of associated function [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ructe-0.4.6/src/template.rs:46:20 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn write_rust(&self, out: &mut Write, name: &str) -> io::Result<()> { [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | `self` is a reference that is only valid in the associated function body [INFO] [stdout] | let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 46 | args = self [INFO] [stdout] | ____________________^ [INFO] [stdout] 47 | | .args [INFO] [stdout] 48 | | .iter() [INFO] [stdout] 49 | | .format_with("", |arg, f| f(&format_args!(", {}", arg))), [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |________________________________________________________________________`self` escapes the associated function body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0521, E0597, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0521`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ructe` due to 9 previous errors [INFO] running `Command { std: "docker" "inspect" "96263519e20b69013d9c36aa4c7949cf65abf23802200f5abdb38332ea1f2ac1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96263519e20b69013d9c36aa4c7949cf65abf23802200f5abdb38332ea1f2ac1", kill_on_drop: false }` [INFO] [stdout] 96263519e20b69013d9c36aa4c7949cf65abf23802200f5abdb38332ea1f2ac1