[INFO] cloning repository https://github.com/LucianoBestia/unsafe_features_example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LucianoBestia/unsafe_features_example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLucianoBestia%2Funsafe_features_example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLucianoBestia%2Funsafe_features_example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1a3fa7f3761db17360af8cadfc1cb4bae14b5a22 [INFO] checking LucianoBestia/unsafe_features_example against try#b09a3e9a7a0ff7efb269ec0c13dcc0fd3cedcf6b for pr-82781 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLucianoBestia%2Funsafe_features_example" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/LucianoBestia/unsafe_features_example on toolchain b09a3e9a7a0ff7efb269ec0c13dcc0fd3cedcf6b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b09a3e9a7a0ff7efb269ec0c13dcc0fd3cedcf6b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/LucianoBestia/unsafe_features_example [INFO] finished tweaking git repo https://github.com/LucianoBestia/unsafe_features_example [INFO] tweaked toml for git repo https://github.com/LucianoBestia/unsafe_features_example written to /workspace/builds/worker-10/source/Cargo.toml [INFO] crate git repo https://github.com/LucianoBestia/unsafe_features_example already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b09a3e9a7a0ff7efb269ec0c13dcc0fd3cedcf6b" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+b09a3e9a7a0ff7efb269ec0c13dcc0fd3cedcf6b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f6f9aed65d295067cb85aa03dc3b457e88fca0af2e03f5b92bc32d9752aed3d9 [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" "f6f9aed65d295067cb85aa03dc3b457e88fca0af2e03f5b92bc32d9752aed3d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f6f9aed65d295067cb85aa03dc3b457e88fca0af2e03f5b92bc32d9752aed3d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f6f9aed65d295067cb85aa03dc3b457e88fca0af2e03f5b92bc32d9752aed3d9", kill_on_drop: false }` [INFO] [stdout] f6f9aed65d295067cb85aa03dc3b457e88fca0af2e03f5b92bc32d9752aed3d9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+b09a3e9a7a0ff7efb269ec0c13dcc0fd3cedcf6b" "check" "--frozen" "--all" "--all-targets" "--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] 683d21c567af161c1d3fec1e3a6095669c612f5a8a46296b5caffafd9c4040fd [INFO] running `Command { std: "docker" "start" "-a" "683d21c567af161c1d3fec1e3a6095669c612f5a8a46296b5caffafd9c4040fd", kill_on_drop: false }` [INFO] [stderr] Checking library v0.0.1 (/opt/rustwide/workdir/library) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> library/src/read_lyrics_mod.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | / /// every unsafe should have a doc-comment, to describe what it does [INFO] [stdout] 6 | | /// this unsafe reads from "sample_data/songs/basket_case_green_day.txt" [INFO] [stdout] 7 | | /// one idea how to force the existence of "unsafe feature" [INFO] [stdout] 8 | | /// unsafe( "unsafe_feature_read_song"){...} [INFO] [stdout] | |___________________________________________________________^ [INFO] [stdout] 9 | / unsafe{ [INFO] [stdout] 10 | | let path = "sample_data/songs/basket_case_green_day.txt"; [INFO] [stdout] 11 | | // std::fs should be "unsafe" [INFO] [stdout] 12 | | // therefore the code must be under a namespace of "unsafe features" [INFO] [stdout] 13 | | file_content = std::fs::read_to_string(path).unwrap(); [INFO] [stdout] 14 | | } [INFO] [stdout] | |_____________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> library/src/read_lyrics_mod.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | / /// every unsafe should have a doc-comment, to describe what it does [INFO] [stdout] 6 | | /// this unsafe reads from "sample_data/songs/basket_case_green_day.txt" [INFO] [stdout] 7 | | /// one idea how to force the existence of "unsafe feature" [INFO] [stdout] 8 | | /// unsafe( "unsafe_feature_read_song"){...} [INFO] [stdout] | |___________________________________________________________^ [INFO] [stdout] 9 | / unsafe{ [INFO] [stdout] 10 | | let path = "sample_data/songs/basket_case_green_day.txt"; [INFO] [stdout] 11 | | // std::fs should be "unsafe" [INFO] [stdout] 12 | | // therefore the code must be under a namespace of "unsafe features" [INFO] [stdout] 13 | | file_content = std::fs::read_to_string(path).unwrap(); [INFO] [stdout] 14 | | } [INFO] [stdout] | |_____________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> library/src/read_lyrics_mod.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | unsafe{ [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_private_key` [INFO] [stdout] --> library/src/read_private_key_mod.rs:20:16 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn read_private_key()->String {"no feature, no access.".to_string()} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> library/src/read_lyrics_mod.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | unsafe{ [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_private_key` [INFO] [stdout] --> library/src/read_private_key_mod.rs:20:16 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn read_private_key()->String {"no feature, no access.".to_string()} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking client1 v0.0.1 (/opt/rustwide/workdir/client1) [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.98s [INFO] running `Command { std: "docker" "inspect" "683d21c567af161c1d3fec1e3a6095669c612f5a8a46296b5caffafd9c4040fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "683d21c567af161c1d3fec1e3a6095669c612f5a8a46296b5caffafd9c4040fd", kill_on_drop: false }` [INFO] [stdout] 683d21c567af161c1d3fec1e3a6095669c612f5a8a46296b5caffafd9c4040fd