[INFO] cloning repository https://github.com/HarshsDev/pointers [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/HarshsDev/pointers" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHarshsDev%2Fpointers", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHarshsDev%2Fpointers'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fc5d7a4a984409594559725aca4739b3d48751e8 [INFO] checking HarshsDev/pointers against f99a7560a6b5f0a5e6894aea7e8afe0e01d3edd1 for pr-160235-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHarshsDev%2Fpointers" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/HarshsDev/pointers [INFO] finished tweaking git repo https://github.com/HarshsDev/pointers [INFO] tweaked toml for git repo https://github.com/HarshsDev/pointers written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/HarshsDev/pointers on toolchain f99a7560a6b5f0a5e6894aea7e8afe0e01d3edd1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f99a7560a6b5f0a5e6894aea7e8afe0e01d3edd1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/HarshsDev/pointers 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" "+f99a7560a6b5f0a5e6894aea7e8afe0e01d3edd1" "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-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] d5cb68756a1e30d2b89eeb8cdbd48e8531853efb0c0dca3f5e2a17310d3dd8dd [INFO] running `Command { std: "docker" "start" "d5cb68756a1e30d2b89eeb8cdbd48e8531853efb0c0dca3f5e2a17310d3dd8dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d5cb68756a1e30d2b89eeb8cdbd48e8531853efb0c0dca3f5e2a17310d3dd8dd", 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" "d5cb68756a1e30d2b89eeb8cdbd48e8531853efb0c0dca3f5e2a17310d3dd8dd" "/opt/rustwide/cargo-home/bin/cargo" "+f99a7560a6b5f0a5e6894aea7e8afe0e01d3edd1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d5cb68756a1e30d2b89eeb8cdbd48e8531853efb0c0dca3f5e2a17310d3dd8dd", 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" "d5cb68756a1e30d2b89eeb8cdbd48e8531853efb0c0dca3f5e2a17310d3dd8dd" "/opt/rustwide/cargo-home/bin/cargo" "+f99a7560a6b5f0a5e6894aea7e8afe0e01d3edd1" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Checking pointers v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `cell::UnsafeCell` [INFO] [stdout] --> src/rc.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::UnsafeCell, ops::Deref, ptr::NonNull}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `rc` should have an upper camel case name [INFO] [stdout] --> src/rc.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct rc { [INFO] [stdout] | ^^ help: convert the identifier to upper camel case: `Rc` [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: enum `RefType` is never used [INFO] [stdout] --> src/RefCell.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | enum RefType { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RefCell` is never constructed [INFO] [stdout] --> src/RefCell.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct RefCell{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `borrow`, and `borrow_mut` are never used [INFO] [stdout] --> src/RefCell.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl RefCell { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 17 | pub fn new(value: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn borrow(&self) -> Option> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn borrow_mut(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ref` is never constructed [INFO] [stdout] --> src/RefCell.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Ref<'refCell,T> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RefMut` is never constructed [INFO] [stdout] --> src/RefCell.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct RefMut<'refCell, T> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RcInner` is never constructed [INFO] [stdout] --> src/rc.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct RcInner { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `rc` is never constructed [INFO] [stdout] --> src/rc.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct rc { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/rc.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl rc { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new(v:T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `RefCell` should have a snake case name [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod RefCell; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `ref_cell` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime `'refCell` should have a snake case name [INFO] [stdout] --> src/RefCell.rs:51:16 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Ref<'refCell,T> { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `'ref_cell` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `refCell` should have a snake case name [INFO] [stdout] --> src/RefCell.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | refCell: &'refCell RefCell, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `ref_cell` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime `'refCell` should have a snake case name [INFO] [stdout] --> src/RefCell.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct RefMut<'refCell, T> { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `'ref_cell` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `refCell` should have a snake case name [INFO] [stdout] --> src/RefCell.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | refCell: &'refCell RefCell, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `ref_cell` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `refCount` should have a snake case name [INFO] [stdout] --> src/rc.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | refCount: Cell, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `ref_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> src/rc.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | drop(self.inner); [INFO] [stdout] | ^^^^^----------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `NonNull>` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_copy_types)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 53 - drop(self.inner); [INFO] [stdout] 53 + let _ = self.inner; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cell::UnsafeCell` [INFO] [stdout] --> src/rc.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::UnsafeCell, ops::Deref, ptr::NonNull}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `rc` should have an upper camel case name [INFO] [stdout] --> src/rc.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct rc { [INFO] [stdout] | ^^ help: convert the identifier to upper camel case: `Rc` [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: unused import: `super::*` [INFO] [stdout] --> src/lib.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RefType` is never used [INFO] [stdout] --> src/RefCell.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | enum RefType { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RefCell` is never constructed [INFO] [stdout] --> src/RefCell.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct RefCell{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `borrow`, and `borrow_mut` are never used [INFO] [stdout] --> src/RefCell.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl RefCell { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 17 | pub fn new(value: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn borrow(&self) -> Option> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn borrow_mut(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ref` is never constructed [INFO] [stdout] --> src/RefCell.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Ref<'refCell,T> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RefMut` is never constructed [INFO] [stdout] --> src/RefCell.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct RefMut<'refCell, T> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RcInner` is never constructed [INFO] [stdout] --> src/rc.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct RcInner { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `rc` is never constructed [INFO] [stdout] --> src/rc.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct rc { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/rc.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl rc { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new(v:T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `RefCell` should have a snake case name [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod RefCell; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `ref_cell` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime `'refCell` should have a snake case name [INFO] [stdout] --> src/RefCell.rs:51:16 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Ref<'refCell,T> { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `'ref_cell` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `refCell` should have a snake case name [INFO] [stdout] --> src/RefCell.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | refCell: &'refCell RefCell, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `ref_cell` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime `'refCell` should have a snake case name [INFO] [stdout] --> src/RefCell.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct RefMut<'refCell, T> { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `'ref_cell` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `refCell` should have a snake case name [INFO] [stdout] --> src/RefCell.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | refCell: &'refCell RefCell, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `ref_cell` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] [stdout] warning: structure field `refCount` should have a snake case name [INFO] [stdout] --> src/rc.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | refCount: Cell, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `ref_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> src/rc.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | drop(self.inner); [INFO] [stdout] | ^^^^^----------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `NonNull>` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_copy_types)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 53 - drop(self.inner); [INFO] [stdout] 53 + let _ = self.inner; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "d5cb68756a1e30d2b89eeb8cdbd48e8531853efb0c0dca3f5e2a17310d3dd8dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5cb68756a1e30d2b89eeb8cdbd48e8531853efb0c0dca3f5e2a17310d3dd8dd", kill_on_drop: false }` [INFO] [stdout] d5cb68756a1e30d2b89eeb8cdbd48e8531853efb0c0dca3f5e2a17310d3dd8dd