[INFO] cloning repository https://github.com/FabioBrugia/Lab05
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/FabioBrugia/Lab05" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFabioBrugia%2FLab05", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFabioBrugia%2FLab05'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 28f3ec1192dcba91dd347c5cfc631c380c856eb0
[INFO] checking FabioBrugia/Lab05 against try#2b39fe756f52bc2825bf5b2bfc385cab922dae10 for pr-143011
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFabioBrugia%2FLab05" "/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/FabioBrugia/Lab05
[INFO] finished tweaking git repo https://github.com/FabioBrugia/Lab05
[INFO] tweaked toml for git repo https://github.com/FabioBrugia/Lab05 written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/FabioBrugia/Lab05 on toolchain 2b39fe756f52bc2825bf5b2bfc385cab922dae10
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2b39fe756f52bc2825bf5b2bfc385cab922dae10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/FabioBrugia/Lab05 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" "+2b39fe756f52bc2825bf5b2bfc385cab922dae10" "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/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+2b39fe756f52bc2825bf5b2bfc385cab922dae10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 8218a5a28ca0665577b1851684b43c6eaf5c0c6df7260fed4158819f891ef8f2
[INFO] running `Command { std: "docker" "start" "-a" "8218a5a28ca0665577b1851684b43c6eaf5c0c6df7260fed4158819f891ef8f2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "8218a5a28ca0665577b1851684b43c6eaf5c0c6df7260fed4158819f891ef8f2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8218a5a28ca0665577b1851684b43c6eaf5c0c6df7260fed4158819f891ef8f2", kill_on_drop: false }`
[INFO] [stdout] 8218a5a28ca0665577b1851684b43c6eaf5c0c6df7260fed4158819f891ef8f2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+2b39fe756f52bc2825bf5b2bfc385cab922dae10" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 44349238539b57eb142c4eea549f47801cea8fe0eb8ca75a8b9c9413684a7795
[INFO] running `Command { std: "docker" "start" "-a" "44349238539b57eb142c4eea549f47801cea8fe0eb8ca75a8b9c9413684a7795", kill_on_drop: false }`
[INFO] [stderr]     Checking LAB05 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]  --> src/FileSystem.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::io;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `nodeRef` should have an upper camel case name
[INFO] [stdout]   --> src/FileSystem.rs:22:10
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub type nodeRef = Rc<RefCell<FSnode>>;
[INFO] [stdout]    |          ^^^^^^^ help: convert the identifier to upper camel case: `NodeRef`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `weakNodeRef` should have an upper camel case name
[INFO] [stdout]   --> src/FileSystem.rs:23:10
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub type weakNodeRef = Weak<RefCell<FSnode>>;
[INFO] [stdout]    |          ^^^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `WeakNodeRef`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]  --> src/FileSystem.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::io;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `nodeRef` should have an upper camel case name
[INFO] [stdout]   --> src/FileSystem.rs:22:10
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub type nodeRef = Rc<RefCell<FSnode>>;
[INFO] [stdout]    |          ^^^^^^^ help: convert the identifier to upper camel case: `NodeRef`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `weakNodeRef` should have an upper camel case name
[INFO] [stdout]   --> src/FileSystem.rs:23:10
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub type weakNodeRef = Weak<RefCell<FSnode>>;
[INFO] [stdout]    |          ^^^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `WeakNodeRef`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::FileSystem::FSItem::File`
[INFO] [stdout]    --> src/FileSystem.rs:357:9
[INFO] [stdout]     |
[INFO] [stdout] 357 |     use crate::FileSystem::FSItem::File;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try`
[INFO] [stdout]    --> src/FileSystem.rs:139:29
[INFO] [stdout]     |
[INFO] [stdout] 139 |                 let entry = entry?;
[INFO] [stdout]     |                             ^^^^^^ the `?` operator cannot be applied to type `ReadDir`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `Try` is not implemented for `ReadDir`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `chage_dir` found for mutable reference `&mut FileSystem::FileSystem` in the current scope
[INFO] [stdout]    --> src/FileSystem.rs:145:26
[INFO] [stdout]     |
[INFO] [stdout] 145 |                     self.chage_dir(name.clone())?;
[INFO] [stdout]     |                          ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `change_dir` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 145 |                     self.change_dir(name.clone())?;
[INFO] [stdout]     |                             +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: expected a `FnOnce(std::io::Error)` closure, found `FileSystemError`
[INFO] [stdout]    --> src/FileSystem.rs:151:69
[INFO] [stdout]     |
[INFO] [stdout] 151 |                     let target = fs::read_link(&entry_path).map_err(FileSystemError::DisckError)?;
[INFO] [stdout]     |                                                             ------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an `FnOnce(std::io::Error)` closure, found `FileSystemError`
[INFO] [stdout]     |                                                             |
[INFO] [stdout]     |                                                             required by a bound introduced by this call
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `FnOnce(std::io::Error)` is not implemented for `FileSystemError`
[INFO] [stdout] note: required by a bound in `Result::<T, E>::map_err`
[INFO] [stdout]    --> /rustc/2b39fe756f52bc2825bf5b2bfc385cab922dae10/library/core/src/result.rs:911:5
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try`
[INFO] [stdout]    --> src/FileSystem.rs:139:29
[INFO] [stdout]     |
[INFO] [stdout] 139 |                 let entry = entry?;
[INFO] [stdout]     |                             ^^^^^^ the `?` operator cannot be applied to type `ReadDir`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `Try` is not implemented for `ReadDir`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `chage_dir` found for mutable reference `&mut FileSystem::FileSystem` in the current scope
[INFO] [stdout]    --> src/FileSystem.rs:145:26
[INFO] [stdout]     |
[INFO] [stdout] 145 |                     self.chage_dir(name.clone())?;
[INFO] [stdout]     |                          ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `change_dir` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 145 |                     self.change_dir(name.clone())?;
[INFO] [stdout]     |                             +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: expected a `FnOnce(std::io::Error)` closure, found `FileSystem::FileSystemError`
[INFO] [stdout]    --> src/FileSystem.rs:151:69
[INFO] [stdout]     |
[INFO] [stdout] 151 |                     let target = fs::read_link(&entry_path).map_err(FileSystemError::DisckError)?;
[INFO] [stdout]     |                                                             ------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an `FnOnce(std::io::Error)` closure, found `FileSystem::FileSystemError`
[INFO] [stdout]     |                                                             |
[INFO] [stdout]     |                                                             required by a bound introduced by this call
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `FnOnce(std::io::Error)` is not implemented for `FileSystem::FileSystemError`
[INFO] [stdout] note: required by a bound in `Result::<T, E>::map_err`
[INFO] [stdout]    --> /rustc/2b39fe756f52bc2825bf5b2bfc385cab922dae10/library/core/src/result.rs:911:5
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/FileSystem.rs:250:13
[INFO] [stdout]     |
[INFO] [stdout] 250 |         let mut current = if path.starts_with('/') {
[INFO] [stdout]     |             ----^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0506]: cannot assign to `current` because it is borrowed
[INFO] [stdout]    --> src/FileSystem.rs:265:29
[INFO] [stdout]     |
[INFO] [stdout] 263 |                     if let Some(parent_weak) = &current.borrow().parent {
[INFO] [stdout]     |                                                 ----------------
[INFO] [stdout]     |                                                 |
[INFO] [stdout]     |                                                 `current` is borrowed here
[INFO] [stdout]     |                                                 a temporary with access to the borrow is created here ...
[INFO] [stdout] 264 |                         if let Some(parent) = parent_weak.upgrade() {
[INFO] [stdout] 265 |                             current = parent;
[INFO] [stdout]     |                             ^^^^^^^ `current` is assigned to here but it was already borrowed
[INFO] [stdout] 266 |                         }
[INFO] [stdout] 267 |                     }
[INFO] [stdout]     |                     - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `Ref<'_, FSnode>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: borrow occurs due to deref coercion to `RefCell<FSnode>`
[INFO] [stdout] note: deref defined here
[INFO] [stdout]    --> /rustc/2b39fe756f52bc2825bf5b2bfc385cab922dae10/library/alloc/src/rc.rs:2252:5
[INFO] [stdout] help: consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped
[INFO] [stdout]     |
[INFO] [stdout] 267 |                     };
[INFO] [stdout]     |                      +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0506]: cannot assign to `current` because it is borrowed
[INFO] [stdout]    --> src/FileSystem.rs:272:29
[INFO] [stdout]     |
[INFO] [stdout] 270 |                     if let FSItem::Directory(ref dir) = current.borrow().item {
[INFO] [stdout]     |                                                         ----------------
[INFO] [stdout]     |                                                         |
[INFO] [stdout]     |                                                         `current` is borrowed here
[INFO] [stdout]     |                                                         a temporary with access to the borrow is created here ...
[INFO] [stdout] 271 |                         if let Some(child) = dir.items.get(name) {
[INFO] [stdout] 272 |                             current = child.clone();
[INFO] [stdout]     |                             ^^^^^^^ `current` is assigned to here but it was already borrowed
[INFO] [stdout] ...
[INFO] [stdout] 276 |                     } else {
[INFO] [stdout]     |                     - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `Ref<'_, FSnode>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: borrow occurs due to deref coercion to `RefCell<FSnode>`
[INFO] [stdout] note: deref defined here
[INFO] [stdout]    --> /rustc/2b39fe756f52bc2825bf5b2bfc385cab922dae10/library/alloc/src/rc.rs:2252:5
[INFO] [stdout] help: consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped
[INFO] [stdout]     |
[INFO] [stdout] 278 |                     };
[INFO] [stdout]     |                      +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0506, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `LAB05` (bin "LAB05") due to 5 previous errors; 4 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/FileSystem.rs:250:13
[INFO] [stdout]     |
[INFO] [stdout] 250 |         let mut current = if path.starts_with('/') {
[INFO] [stdout]     |             ----^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0506]: cannot assign to `current` because it is borrowed
[INFO] [stdout]    --> src/FileSystem.rs:265:29
[INFO] [stdout]     |
[INFO] [stdout] 263 |                     if let Some(parent_weak) = &current.borrow().parent {
[INFO] [stdout]     |                                                 ----------------
[INFO] [stdout]     |                                                 |
[INFO] [stdout]     |                                                 `current` is borrowed here
[INFO] [stdout]     |                                                 a temporary with access to the borrow is created here ...
[INFO] [stdout] 264 |                         if let Some(parent) = parent_weak.upgrade() {
[INFO] [stdout] 265 |                             current = parent;
[INFO] [stdout]     |                             ^^^^^^^ `current` is assigned to here but it was already borrowed
[INFO] [stdout] 266 |                         }
[INFO] [stdout] 267 |                     }
[INFO] [stdout]     |                     - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `Ref<'_, FSnode>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: borrow occurs due to deref coercion to `RefCell<FSnode>`
[INFO] [stdout] note: deref defined here
[INFO] [stdout]    --> /rustc/2b39fe756f52bc2825bf5b2bfc385cab922dae10/library/alloc/src/rc.rs:2252:5
[INFO] [stdout] help: consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped
[INFO] [stdout]     |
[INFO] [stdout] 267 |                     };
[INFO] [stdout]     |                      +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0506]: cannot assign to `current` because it is borrowed
[INFO] [stdout]    --> src/FileSystem.rs:272:29
[INFO] [stdout]     |
[INFO] [stdout] 270 |                     if let FSItem::Directory(ref dir) = current.borrow().item {
[INFO] [stdout]     |                                                         ----------------
[INFO] [stdout]     |                                                         |
[INFO] [stdout]     |                                                         `current` is borrowed here
[INFO] [stdout]     |                                                         a temporary with access to the borrow is created here ...
[INFO] [stdout] 271 |                         if let Some(child) = dir.items.get(name) {
[INFO] [stdout] 272 |                             current = child.clone();
[INFO] [stdout]     |                             ^^^^^^^ `current` is assigned to here but it was already borrowed
[INFO] [stdout] ...
[INFO] [stdout] 276 |                     } else {
[INFO] [stdout]     |                     - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `Ref<'_, FSnode>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: borrow occurs due to deref coercion to `RefCell<FSnode>`
[INFO] [stdout] note: deref defined here
[INFO] [stdout]    --> /rustc/2b39fe756f52bc2825bf5b2bfc385cab922dae10/library/alloc/src/rc.rs:2252:5
[INFO] [stdout] help: consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped
[INFO] [stdout]     |
[INFO] [stdout] 278 |                     };
[INFO] [stdout]     |                      +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0506, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `LAB05` (bin "LAB05" test) due to 5 previous errors; 5 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "44349238539b57eb142c4eea549f47801cea8fe0eb8ca75a8b9c9413684a7795", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "44349238539b57eb142c4eea549f47801cea8fe0eb8ca75a8b9c9413684a7795", kill_on_drop: false }`
[INFO] [stdout] 44349238539b57eb142c4eea549f47801cea8fe0eb8ca75a8b9c9413684a7795
