[INFO] cloning repository https://github.com/kurtbuilds/refself [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kurtbuilds/refself" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkurtbuilds%2Frefself", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkurtbuilds%2Frefself'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 44016419de1daca85a5db1e244e000e7595fda77 [INFO] checking kurtbuilds/refself against master#b2728d5426bab1d8c39709768c7e22b7f66dde5d for pr-135852 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkurtbuilds%2Frefself" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kurtbuilds/refself on toolchain b2728d5426bab1d8c39709768c7e22b7f66dde5d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b2728d5426bab1d8c39709768c7e22b7f66dde5d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kurtbuilds/refself [INFO] finished tweaking git repo https://github.com/kurtbuilds/refself [INFO] tweaked toml for git repo https://github.com/kurtbuilds/refself written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/kurtbuilds/refself already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b2728d5426bab1d8c39709768c7e22b7f66dde5d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+b2728d5426bab1d8c39709768c7e22b7f66dde5d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] af2d3f0a1019209e29246c042ca51000fe26b0c0fa6b407eaff024ef91cde8db [INFO] running `Command { std: "docker" "start" "-a" "af2d3f0a1019209e29246c042ca51000fe26b0c0fa6b407eaff024ef91cde8db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "af2d3f0a1019209e29246c042ca51000fe26b0c0fa6b407eaff024ef91cde8db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af2d3f0a1019209e29246c042ca51000fe26b0c0fa6b407eaff024ef91cde8db", kill_on_drop: false }` [INFO] [stdout] af2d3f0a1019209e29246c042ca51000fe26b0c0fa6b407eaff024ef91cde8db [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+b2728d5426bab1d8c39709768c7e22b7f66dde5d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 602ce35a1165e6211674358e9de26a09b336fb9beef4af5fb0be848ad5adf3dc [INFO] running `Command { std: "docker" "start" "-a" "602ce35a1165e6211674358e9de26a09b336fb9beef4af5fb0be848ad5adf3dc", kill_on_drop: false }` [INFO] [stderr] Checking refself v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0753]: expected outer doc comment [INFO] [stdout] --> src/lib.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | //! As long as the struct never gives out static references, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items [INFO] [stdout] help: you might have meant to write a regular comment [INFO] [stdout] | [INFO] [stdout] 7 - //! As long as the struct never gives out static references, [INFO] [stdout] 7 + // As long as the struct never gives out static references, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0753]: expected outer doc comment [INFO] [stdout] --> src/lib.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | //! As long as the struct never gives out static references, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items [INFO] [stdout] help: you might have meant to write a regular comment [INFO] [stdout] | [INFO] [stdout] 7 - //! As long as the struct never gives out static references, [INFO] [stdout] 7 + // As long as the struct never gives out static references, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0753]: expected outer doc comment [INFO] [stdout] --> src/lib.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | //! and references always lives as long as `self`, then the transmute, and this struct, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items [INFO] [stdout] help: you might have meant to write a regular comment [INFO] [stdout] | [INFO] [stdout] 8 - //! and references always lives as long as `self`, then the transmute, and this struct, [INFO] [stdout] 8 + // and references always lives as long as `self`, then the transmute, and this struct, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0753]: expected outer doc comment [INFO] [stdout] --> src/lib.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | //! and references always lives as long as `self`, then the transmute, and this struct, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items [INFO] [stdout] help: you might have meant to write a regular comment [INFO] [stdout] | [INFO] [stdout] 8 - //! and references always lives as long as `self`, then the transmute, and this struct, [INFO] [stdout] 8 + // and references always lives as long as `self`, then the transmute, and this struct, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0753]: expected outer doc comment [INFO] [stdout] --> src/lib.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | //! is perfectly safe. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | / impl Source { [INFO] [stdout] 11 | | pub fn new(content: String) -> Self { [INFO] [stdout] 12 | | let tokens = content.split_whitespace() [INFO] [stdout] 13 | | .map(|t| unsafe { std::mem::transmute(t) }) [INFO] [stdout] ... | [INFO] [stdout] 21 | | } [INFO] [stdout] | |_- the inner doc comment doesn't annotate this implementation [INFO] [stdout] | [INFO] [stdout] help: to annotate the implementation, change the doc comment from inner to outer style [INFO] [stdout] | [INFO] [stdout] 9 | /// is perfectly safe. [INFO] [stdout] | ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0753]: expected outer doc comment [INFO] [stdout] --> src/lib.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | //! is perfectly safe. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | / impl Source { [INFO] [stdout] 11 | | pub fn new(content: String) -> Self { [INFO] [stdout] 12 | | let tokens = content.split_whitespace() [INFO] [stdout] 13 | | .map(|t| unsafe { std::mem::transmute(t) }) [INFO] [stdout] ... | [INFO] [stdout] 21 | | } [INFO] [stdout] | |_- the inner doc comment doesn't annotate this implementation [INFO] [stdout] | [INFO] [stdout] help: to annotate the implementation, change the doc comment from inner to outer style [INFO] [stdout] | [INFO] [stdout] 9 | /// is perfectly safe. [INFO] [stdout] | ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0753`. [INFO] [stdout] [INFO] [stderr] error: could not compile `refself` (lib) due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0505]: cannot move out of `s` because it is borrowed [INFO] [stdout] --> src/lib.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 29 | let s = Source::new("hello world".to_string()); [INFO] [stdout] | - binding `s` declared here [INFO] [stdout] 30 | let t = s.tokens_iter().collect::>(); [INFO] [stdout] | - borrow of `s` occurs here [INFO] [stdout] 31 | drop(s); [INFO] [stdout] | ^ move out of `s` occurs here [INFO] [stdout] 32 | println!("{:?}", t); [INFO] [stdout] | - borrow later used here [INFO] [stdout] | [INFO] [stdout] note: if `Source` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/lib.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Source { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 30 | let t = s.tokens_iter().collect::>(); [INFO] [stdout] | - you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0505, E0753. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0505`. [INFO] [stdout] [INFO] [stderr] error: could not compile `refself` (lib test) due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "602ce35a1165e6211674358e9de26a09b336fb9beef4af5fb0be848ad5adf3dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "602ce35a1165e6211674358e9de26a09b336fb9beef4af5fb0be848ad5adf3dc", kill_on_drop: false }` [INFO] [stdout] 602ce35a1165e6211674358e9de26a09b336fb9beef4af5fb0be848ad5adf3dc