[INFO] cloning repository https://github.com/rsantiago/rust-ownership-samples [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rsantiago/rust-ownership-samples" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frsantiago%2Frust-ownership-samples", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frsantiago%2Frust-ownership-samples'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f08eb83a4f4cadd97204d794026822b2fa95b02b [INFO] testing rsantiago/rust-ownership-samples against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frsantiago%2Frust-ownership-samples" "/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/rsantiago/rust-ownership-samples on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/rsantiago/rust-ownership-samples [INFO] finished tweaking git repo https://github.com/rsantiago/rust-ownership-samples [INFO] tweaked toml for git repo https://github.com/rsantiago/rust-ownership-samples written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/rsantiago/rust-ownership-samples already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 05db7dcc886c613b9b3087aead1fcc353491e051e76036da36b88c3e45d009db [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "05db7dcc886c613b9b3087aead1fcc353491e051e76036da36b88c3e45d009db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "05db7dcc886c613b9b3087aead1fcc353491e051e76036da36b88c3e45d009db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05db7dcc886c613b9b3087aead1fcc353491e051e76036da36b88c3e45d009db", kill_on_drop: false }` [INFO] [stdout] 05db7dcc886c613b9b3087aead1fcc353491e051e76036da36b88c3e45d009db [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" "RUSTFLAGS=--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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 4ffbd532333d737046d26fa06ce91bd508b196be866ad40594ab803152cafa60 [INFO] running `Command { std: "docker" "start" "-a" "4ffbd532333d737046d26fa06ce91bd508b196be866ad40594ab803152cafa60", kill_on_drop: false }` [INFO] [stderr] Compiling rust_presentation v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0382]: borrow of moved value: `a` [INFO] [stdout] --> src/bin/_05_function_ownership.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 7 | let a = "Esta string é constante".to_string(); [INFO] [stdout] | - move occurs because `a` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 11 | imprime(a); [INFO] [stdout] | - value moved here [INFO] [stdout] 12 | [INFO] [stdout] 13 | println!("a: {}", a); [INFO] [stdout] | ^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_presentation` due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/bin/_06_set_after_function.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let b = a; // valor movido para funcao [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `a` [INFO] [stdout] --> src/bin/_06_set_after_function.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 8 | let a = "Esta string é constante".to_string(); [INFO] [stdout] | - move occurs because `a` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 12 | imprime(a); [INFO] [stdout] | - value moved here [INFO] [stdout] 13 | [INFO] [stdout] 14 | let b = a; // valor movido para funcao [INFO] [stdout] | ^ value used here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `a` [INFO] [stdout] --> src/bin/_03_ownership.rs:21:27 [INFO] [stdout] | [INFO] [stdout] 8 | let a = "Esta string é constante?" [INFO] [stdout] | - move occurs because `a` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 15 | let mut b = a; [INFO] [stdout] | - value moved here [INFO] [stdout] ... [INFO] [stdout] 21 | println!("a: {}\n\n", a); [INFO] [stdout] | ^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*uma_string` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/bin/_09_appending_string.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 18 | fn imprime(uma_string: &String) { [INFO] [stdout] | ------- help: consider changing this to be a mutable reference: `&mut String` [INFO] [stdout] ... [INFO] [stdout] 21 | uma_string.push_str(" tentando adicionar mais coisas à string"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `uma_string` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0596`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `b` in this scope [INFO] [stdout] --> src/bin/_12_mutable_outofscope.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | let d : &String = &b; [INFO] [stdout] | ^ help: a local variable with a similar name exists: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "4ffbd532333d737046d26fa06ce91bd508b196be866ad40594ab803152cafa60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ffbd532333d737046d26fa06ce91bd508b196be866ad40594ab803152cafa60", kill_on_drop: false }` [INFO] [stdout] 4ffbd532333d737046d26fa06ce91bd508b196be866ad40594ab803152cafa60