[INFO] cloning repository https://github.com/whitecometx/unsafe_rust_examples
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/whitecometx/unsafe_rust_examples" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwhitecometx%2Funsafe_rust_examples", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwhitecometx%2Funsafe_rust_examples'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 9cef5f065f4b14004070405d5180dc78f1879850
[INFO] checking whitecometx/unsafe_rust_examples against try#09eeb2bacb9b40b2ed1d47f03177442c0632cda1 for pr-157710
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwhitecometx%2Funsafe_rust_examples" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/whitecometx/unsafe_rust_examples
[INFO] finished tweaking git repo https://github.com/whitecometx/unsafe_rust_examples
[INFO] tweaked toml for git repo https://github.com/whitecometx/unsafe_rust_examples written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/whitecometx/unsafe_rust_examples on toolchain 09eeb2bacb9b40b2ed1d47f03177442c0632cda1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+09eeb2bacb9b40b2ed1d47f03177442c0632cda1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/whitecometx/unsafe_rust_examples 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" "+09eeb2bacb9b40b2ed1d47f03177442c0632cda1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 953b451f86ffe485e80ce6c1e63f96dd0cd1a1aca52d83fdcc0eef156a0ed133
[INFO] running `Command { std: "docker" "start" "953b451f86ffe485e80ce6c1e63f96dd0cd1a1aca52d83fdcc0eef156a0ed133", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "953b451f86ffe485e80ce6c1e63f96dd0cd1a1aca52d83fdcc0eef156a0ed133" "/opt/rustwide/cargo-home/bin/cargo" "+09eeb2bacb9b40b2ed1d47f03177442c0632cda1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "953b451f86ffe485e80ce6c1e63f96dd0cd1a1aca52d83fdcc0eef156a0ed133", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "953b451f86ffe485e80ce6c1e63f96dd0cd1a1aca52d83fdcc0eef156a0ed133" "/opt/rustwide/cargo-home/bin/cargo" "+09eeb2bacb9b40b2ed1d47f03177442c0632cda1" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking unsafe_rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: variant `bronze` should have an upper camel case name
[INFO] [stdout]   --> src/main.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 |     bronze(i32),
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to upper camel case: `Bronze`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `silver` should have an upper camel case name
[INFO] [stdout]   --> src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 |     silver(i32),
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Silver`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `gold` should have an upper camel case name
[INFO] [stdout]   --> src/main.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 |     gold(i32),
[INFO] [stdout]    |     ^^^^ help: convert the identifier to upper camel case: `Gold`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/main.rs:20:38
[INFO] [stdout]    |
[INFO] [stdout] 20 |     println!("the value of a is {}", *ptr);
[INFO] [stdout]    |                                      ^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]   --> src/main.rs:17:1
[INFO] [stdout]    |
[INFO] [stdout] 17 | unsafe fn wraps_unsafe_code() {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `silver` and `gold` are never read
[INFO] [stdout]  --> src/main.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | union Win {
[INFO] [stdout]   |       --- fields in this union
[INFO] [stdout] 6 |     bronze: i32,
[INFO] [stdout] 7 |     silver: i32,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout] 8 |     gold: i32,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `silver` and `gold` are never constructed
[INFO] [stdout]   --> src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | enum Win2 {
[INFO] [stdout]    |      ---- variants in this enum
[INFO] [stdout] 12 |     bronze(i32),
[INFO] [stdout] 13 |     silver(i32),
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 14 |     gold(i32),
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0133`.
[INFO] [stdout] 
[INFO] [stdout] warning: variant `bronze` should have an upper camel case name
[INFO] [stdout]   --> src/main.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 |     bronze(i32),
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to upper camel case: `Bronze`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `silver` should have an upper camel case name
[INFO] [stdout]   --> src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 |     silver(i32),
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Silver`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `gold` should have an upper camel case name
[INFO] [stdout]   --> src/main.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 |     gold(i32),
[INFO] [stdout]    |     ^^^^ help: convert the identifier to upper camel case: `Gold`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/main.rs:20:38
[INFO] [stdout]    |
[INFO] [stdout] 20 |     println!("the value of a is {}", *ptr);
[INFO] [stdout]    |                                      ^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]   --> src/main.rs:17:1
[INFO] [stdout]    |
[INFO] [stdout] 17 | unsafe fn wraps_unsafe_code() {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `silver` and `gold` are never read
[INFO] [stdout]  --> src/main.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | union Win {
[INFO] [stdout]   |       --- fields in this union
[INFO] [stdout] 6 |     bronze: i32,
[INFO] [stdout] 7 |     silver: i32,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout] 8 |     gold: i32,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `silver` and `gold` are never constructed
[INFO] [stdout]   --> src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | enum Win2 {
[INFO] [stdout]    |      ---- variants in this enum
[INFO] [stdout] 12 |     bronze(i32),
[INFO] [stdout] 13 |     silver(i32),
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 14 |     gold(i32),
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0133`.
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.12s
[INFO] running `Command { std: "docker" "inspect" "953b451f86ffe485e80ce6c1e63f96dd0cd1a1aca52d83fdcc0eef156a0ed133", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "953b451f86ffe485e80ce6c1e63f96dd0cd1a1aca52d83fdcc0eef156a0ed133", kill_on_drop: false }`
[INFO] [stdout] 953b451f86ffe485e80ce6c1e63f96dd0cd1a1aca52d83fdcc0eef156a0ed133
