[INFO] cloning repository https://github.com/KhodingNow/Leaking_memory_withRc_RefCell [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KhodingNow/Leaking_memory_withRc_RefCell" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKhodingNow%2FLeaking_memory_withRc_RefCell", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKhodingNow%2FLeaking_memory_withRc_RefCell'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3465e16b334784f610d32f9f5863453639e25963 [INFO] checking KhodingNow/Leaking_memory_withRc_RefCell against try#94e848735e78b58442e0b82e9c60f8f430840389 for pr-149218 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKhodingNow%2FLeaking_memory_withRc_RefCell" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/KhodingNow/Leaking_memory_withRc_RefCell [INFO] finished tweaking git repo https://github.com/KhodingNow/Leaking_memory_withRc_RefCell [INFO] tweaked toml for git repo https://github.com/KhodingNow/Leaking_memory_withRc_RefCell written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/KhodingNow/Leaking_memory_withRc_RefCell on toolchain 94e848735e78b58442e0b82e9c60f8f430840389 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+94e848735e78b58442e0b82e9c60f8f430840389" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/KhodingNow/Leaking_memory_withRc_RefCell 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" "+94e848735e78b58442e0b82e9c60f8f430840389" "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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+94e848735e78b58442e0b82e9c60f8f430840389" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3f36b2f531d6fe8770dc6a035fcd11bc0f1374d0570d9b91bbc2f7b848d68975 [INFO] running `Command { std: "docker" "start" "-a" "3f36b2f531d6fe8770dc6a035fcd11bc0f1374d0570d9b91bbc2f7b848d68975", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3f36b2f531d6fe8770dc6a035fcd11bc0f1374d0570d9b91bbc2f7b848d68975", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f36b2f531d6fe8770dc6a035fcd11bc0f1374d0570d9b91bbc2f7b848d68975", kill_on_drop: false }` [INFO] [stdout] 3f36b2f531d6fe8770dc6a035fcd11bc0f1374d0570d9b91bbc2f7b848d68975 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+94e848735e78b58442e0b82e9c60f8f430840389" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 28c3c344ab80cddd6afd8b87ee69824c5670595f54b7cfadd9636ce7d388de06 [INFO] running `Command { std: "docker" "start" "-a" "28c3c344ab80cddd6afd8b87ee69824c5670595f54b7cfadd9636ce7d388de06", kill_on_drop: false }` [INFO] [stderr] Checking reference_cycle_leaking_mem v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0428]: the name `Node` is defined multiple times [INFO] [stdout] --> src/main.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 59 | struct Node { [INFO] [stdout] | ----------- previous definition of the type `Node` here [INFO] [stdout] ... [INFO] [stdout] 100 | struct Node { [INFO] [stdout] | ^^^^^^^^^^^ `Node` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `Node` must be defined only once in the type namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `Node` is defined multiple times [INFO] [stdout] --> src/main.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 59 | struct Node { [INFO] [stdout] | ----------- previous definition of the type `Node` here [INFO] [stdout] ... [INFO] [stdout] 100 | struct Node { [INFO] [stdout] | ^^^^^^^^^^^ `Node` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `Node` must be defined only once in the type namespace of this block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Weak` in this scope [INFO] [stdout] --> src/main.rs:102:29 [INFO] [stdout] | [INFO] [stdout] 102 | parent: RefCell>, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 3 + use std::rc::Weak; [INFO] [stdout] | [INFO] [stdout] 3 + use std::sync::Weak; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Weak` [INFO] [stdout] --> src/main.rs:109:34 [INFO] [stdout] | [INFO] [stdout] 109 | parent: RefCell::new(Weak::new()), [INFO] [stdout] | ^^^^ use of undeclared type `Weak` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 3 + use std::rc::Weak; [INFO] [stdout] | [INFO] [stdout] 3 + use std::sync::Weak; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Weak` [INFO] [stdout] --> src/main.rs:117:34 [INFO] [stdout] | [INFO] [stdout] 117 | parent: RefCell::new(Weak::new()), [INFO] [stdout] | ^^^^ use of undeclared type `Weak` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 3 + use std::rc::Weak; [INFO] [stdout] | [INFO] [stdout] 3 + use std::sync::Weak; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: missing generics for struct `RefCell` [INFO] [stdout] --> src/main.rs:61:38 [INFO] [stdout] | [INFO] [stdout] 61 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^ expected 1 generic argument [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 61 | children: RefCell>>>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0119]: conflicting implementations of trait `Debug` for type `main::Node` [INFO] [stdout] --> src/main.rs:99:18 [INFO] [stdout] | [INFO] [stdout] 58 | #[derive(Debug)] [INFO] [stdout] | ----- first implementation here [INFO] [stdout] ... [INFO] [stdout] 99 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ conflicting implementation for `main::Node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Weak` in this scope [INFO] [stdout] --> src/main.rs:102:29 [INFO] [stdout] | [INFO] [stdout] 102 | parent: RefCell>, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 3 + use std::rc::Weak; [INFO] [stdout] | [INFO] [stdout] 3 + use std::sync::Weak; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Weak` [INFO] [stdout] --> src/main.rs:109:34 [INFO] [stdout] | [INFO] [stdout] 109 | parent: RefCell::new(Weak::new()), [INFO] [stdout] | ^^^^ use of undeclared type `Weak` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 3 + use std::rc::Weak; [INFO] [stdout] | [INFO] [stdout] 3 + use std::sync::Weak; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Weak` [INFO] [stdout] --> src/main.rs:117:34 [INFO] [stdout] | [INFO] [stdout] 117 | parent: RefCell::new(Weak::new()), [INFO] [stdout] | ^^^^ use of undeclared type `Weak` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 3 + use std::rc::Weak; [INFO] [stdout] | [INFO] [stdout] 3 + use std::sync::Weak; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: missing generics for struct `RefCell` [INFO] [stdout] --> src/main.rs:61:38 [INFO] [stdout] | [INFO] [stdout] 61 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^ expected 1 generic argument [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 61 | children: RefCell>>>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0119]: conflicting implementations of trait `Debug` for type `main::Node` [INFO] [stdout] --> src/main.rs:99:18 [INFO] [stdout] | [INFO] [stdout] 58 | #[derive(Debug)] [INFO] [stdout] | ----- first implementation here [INFO] [stdout] ... [INFO] [stdout] 99 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ conflicting implementation for `main::Node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `main::Node` has no field named `parent` [INFO] [stdout] --> src/main.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | parent: RefCell::new(Weak::new()), [INFO] [stdout] | ^^^^^^ `main::Node` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: all struct fields are already assigned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `main::Node` has no field named `parent` [INFO] [stdout] --> src/main.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | parent: RefCell::new(Weak::new()), [INFO] [stdout] | ^^^^^^ `main::Node` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: all struct fields are already assigned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `parent` on type `Rc` [INFO] [stdout] --> src/main.rs:113:45 [INFO] [stdout] | [INFO] [stdout] 113 | println!("leaf parent = {:?}", leaf.parent.borrow().upgrade()); [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `value`, `children` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `parent` on type `Rc` [INFO] [stdout] --> src/main.rs:113:45 [INFO] [stdout] | [INFO] [stdout] 113 | println!("leaf parent = {:?}", leaf.parent.borrow().upgrade()); [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `value`, `children` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `main::Node` has no field named `parent` [INFO] [stdout] --> src/main.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | parent: RefCell::new(Weak::new()), [INFO] [stdout] | ^^^^^^ `main::Node` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: all struct fields are already assigned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `main::Node` has no field named `parent` [INFO] [stdout] --> src/main.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | parent: RefCell::new(Weak::new()), [INFO] [stdout] | ^^^^^^ `main::Node` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: all struct fields are already assigned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `parent` on type `Rc` [INFO] [stdout] --> src/main.rs:121:15 [INFO] [stdout] | [INFO] [stdout] 121 | *leaf.parent.borrow_mut() = Rc::downgrade(&branch); [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `value`, `children` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `parent` on type `Rc` [INFO] [stdout] --> src/main.rs:123:45 [INFO] [stdout] | [INFO] [stdout] 123 | println!("leaf parent = {:?}", leaf.parent.borrow().upgrade()); [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `value`, `children` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `parent` on type `Rc` [INFO] [stdout] --> src/main.rs:121:15 [INFO] [stdout] | [INFO] [stdout] 121 | *leaf.parent.borrow_mut() = Rc::downgrade(&branch); [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `value`, `children` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `parent` on type `&main::Node` [INFO] [stdout] --> src/main.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | parent: RefCell>, [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `value`, `children` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `parent` on type `Rc` [INFO] [stdout] --> src/main.rs:123:45 [INFO] [stdout] | [INFO] [stdout] 123 | println!("leaf parent = {:?}", leaf.parent.borrow().upgrade()); [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `value`, `children` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `parent` on type `&main::Node` [INFO] [stdout] --> src/main.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | parent: RefCell>, [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `value`, `children` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0119, E0412, E0428, E0433, E0560, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0119, E0412, E0428, E0433, E0560, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stderr] error: could not compile `reference_cycle_leaking_mem` (bin "reference_cycle_leaking_mem") due to 12 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `reference_cycle_leaking_mem` (bin "reference_cycle_leaking_mem" test) due to 12 previous errors [INFO] running `Command { std: "docker" "inspect" "28c3c344ab80cddd6afd8b87ee69824c5670595f54b7cfadd9636ce7d388de06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "28c3c344ab80cddd6afd8b87ee69824c5670595f54b7cfadd9636ce7d388de06", kill_on_drop: false }` [INFO] [stdout] 28c3c344ab80cddd6afd8b87ee69824c5670595f54b7cfadd9636ce7d388de06