[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#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLucianoBestia%2Funsafe_features_example" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/LucianoBestia/unsafe_features_example on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "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-12/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" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2ed9cac77dc653695e550cb9552eb1d681bcd3cba2aa84157ba964ec7e3986fa [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" "2ed9cac77dc653695e550cb9552eb1d681bcd3cba2aa84157ba964ec7e3986fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2ed9cac77dc653695e550cb9552eb1d681bcd3cba2aa84157ba964ec7e3986fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ed9cac77dc653695e550cb9552eb1d681bcd3cba2aa84157ba964ec7e3986fa", kill_on_drop: false }` [INFO] [stdout] 2ed9cac77dc653695e550cb9552eb1d681bcd3cba2aa84157ba964ec7e3986fa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a26c690438d81b4dde39e6f69d53e3aba2629dad988b56f9b557c3310e763a59 [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" "a26c690438d81b4dde39e6f69d53e3aba2629dad988b56f9b557c3310e763a59", kill_on_drop: false }` [INFO] [stderr] Checking cfg-if v0.1.10 [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: 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] [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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking client1 v0.0.1 (/opt/rustwide/workdir/client1) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.97s [INFO] running `Command { std: "docker" "inspect" "a26c690438d81b4dde39e6f69d53e3aba2629dad988b56f9b557c3310e763a59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a26c690438d81b4dde39e6f69d53e3aba2629dad988b56f9b557c3310e763a59", kill_on_drop: false }` [INFO] [stdout] a26c690438d81b4dde39e6f69d53e3aba2629dad988b56f9b557c3310e763a59