[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#f2d69d5a7c04617d122facd0a7a5bdde0af928ae for pr-138363 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkurtbuilds%2Frefself" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kurtbuilds/refself on toolchain f2d69d5a7c04617d122facd0a7a5bdde0af928ae [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f2d69d5a7c04617d122facd0a7a5bdde0af928ae" "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-2-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" "+f2d69d5a7c04617d122facd0a7a5bdde0af928ae" "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-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+f2d69d5a7c04617d122facd0a7a5bdde0af928ae" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 33763019c397c17d8b0e9cc5c9271089181ff763db10cfdcbf423f9f22f78518 [INFO] running `Command { std: "docker" "start" "-a" "33763019c397c17d8b0e9cc5c9271089181ff763db10cfdcbf423f9f22f78518", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "33763019c397c17d8b0e9cc5c9271089181ff763db10cfdcbf423f9f22f78518", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "33763019c397c17d8b0e9cc5c9271089181ff763db10cfdcbf423f9f22f78518", kill_on_drop: false }` [INFO] [stdout] 33763019c397c17d8b0e9cc5c9271089181ff763db10cfdcbf423f9f22f78518 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+f2d69d5a7c04617d122facd0a7a5bdde0af928ae" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 597fe897dcf239a183d7fbf15aae1cd72962eabba0d6b5d9236fb8cb74e19ecd [INFO] running `Command { std: "docker" "start" "-a" "597fe897dcf239a183d7fbf15aae1cd72962eabba0d6b5d9236fb8cb74e19ecd", 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: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] 9 + /// is perfectly safe. [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: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] 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" "597fe897dcf239a183d7fbf15aae1cd72962eabba0d6b5d9236fb8cb74e19ecd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "597fe897dcf239a183d7fbf15aae1cd72962eabba0d6b5d9236fb8cb74e19ecd", kill_on_drop: false }` [INFO] [stdout] 597fe897dcf239a183d7fbf15aae1cd72962eabba0d6b5d9236fb8cb74e19ecd