[INFO] cloning repository https://github.com/Dreamsplutox/rust_project
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Dreamsplutox/rust_project" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDreamsplutox%2Frust_project", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDreamsplutox%2Frust_project'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 1d428f76f704adb088676b2bf70290d58031c55d
[INFO] checking Dreamsplutox/rust_project against master#292be5c7c05138d753bbd4b30db7a3f1a5c914f7 for pr-148271
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDreamsplutox%2Frust_project" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Dreamsplutox/rust_project
[INFO] finished tweaking git repo https://github.com/Dreamsplutox/rust_project
[INFO] tweaked toml for git repo https://github.com/Dreamsplutox/rust_project written to /workspace/builds/worker-6-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Dreamsplutox/rust_project on toolchain 292be5c7c05138d753bbd4b30db7a3f1a5c914f7
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Dreamsplutox/rust_project 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" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 4441dee066b6cb79fdce06788666069a0d339b31a6e687dd59f71a86779a3e93
[INFO] running `Command { std: "docker" "start" "-a" "4441dee066b6cb79fdce06788666069a0d339b31a6e687dd59f71a86779a3e93", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4441dee066b6cb79fdce06788666069a0d339b31a6e687dd59f71a86779a3e93", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4441dee066b6cb79fdce06788666069a0d339b31a6e687dd59f71a86779a3e93", kill_on_drop: false }`
[INFO] [stdout] 4441dee066b6cb79fdce06788666069a0d339b31a6e687dd59f71a86779a3e93
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] bfc1f5556198091d487b8d1013de0be17705bb51948f738ab6eabf3031a53f49
[INFO] running `Command { std: "docker" "start" "-a" "bfc1f5556198091d487b8d1013de0be17705bb51948f738ab6eabf3031a53f49", kill_on_drop: false }`
[INFO] [stderr]     Checking project v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0463]: can't find crate for `lib_image`
[INFO] [stdout]  --> src/lib_image.rs:3:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | extern crate lib_image;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0463]: can't find crate for `lib_pixel`
[INFO] [stdout]  --> src/lib_pixel.rs:3:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | extern crate lib_pixel;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around index expression
[INFO] [stdout]   --> src/main.rs:47:20
[INFO] [stdout]    |
[INFO] [stdout] 47 |             let g = line[(i+1)].parse::<u8>().unwrap();
[INFO] [stdout]    |                          ^   ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 47 -             let g = line[(i+1)].parse::<u8>().unwrap();
[INFO] [stdout] 47 +             let g = line[i+1 ].parse::<u8>().unwrap();
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around index expression
[INFO] [stdout]   --> src/main.rs:48:20
[INFO] [stdout]    |
[INFO] [stdout] 48 |             let b = line[(i+2)].parse::<u8>().unwrap();
[INFO] [stdout]    |                          ^   ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 48 -             let b = line[(i+2)].parse::<u8>().unwrap();
[INFO] [stdout] 48 +             let b = line[i+2 ].parse::<u8>().unwrap();
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/main.rs:58:5
[INFO] [stdout]    |
[INFO] [stdout] 58 |     /// création et sauvegarde d'une image
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 59 |     let filename = "C:\\Users\\arnau\\Desktop\\quatrième_année\\programmation rust\\Projet\\projet_rust\\rust_project\\src\\picture_P3.ppm";
[INFO] [stdout]    |     ---------------------------------------------------------------------------------------------------------------------------------------- rustdoc does not generate documentation for statements
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `//` for a plain comment
[INFO] [stdout]    = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around index expression
[INFO] [stdout]   --> src/main.rs:47:20
[INFO] [stdout]    |
[INFO] [stdout] 47 |             let g = line[(i+1)].parse::<u8>().unwrap();
[INFO] [stdout]    |                          ^   ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 47 -             let g = line[(i+1)].parse::<u8>().unwrap();
[INFO] [stdout] 47 +             let g = line[i+1 ].parse::<u8>().unwrap();
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around index expression
[INFO] [stdout]   --> src/main.rs:48:20
[INFO] [stdout]    |
[INFO] [stdout] 48 |             let b = line[(i+2)].parse::<u8>().unwrap();
[INFO] [stdout]    |                          ^   ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 48 -             let b = line[(i+2)].parse::<u8>().unwrap();
[INFO] [stdout] 48 +             let b = line[i+2 ].parse::<u8>().unwrap();
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/main.rs:58:5
[INFO] [stdout]    |
[INFO] [stdout] 58 |     /// création et sauvegarde d'une image
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 59 |     let filename = "C:\\Users\\arnau\\Desktop\\quatrième_année\\programmation rust\\Projet\\projet_rust\\rust_project\\src\\picture_P3.ppm";
[INFO] [stdout]    |     ---------------------------------------------------------------------------------------------------------------------------------------- rustdoc does not generate documentation for statements
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `//` for a plain comment
[INFO] [stdout]    = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `why`
[INFO] [stdout]   --> src/lib_image.rs:55:15
[INFO] [stdout]    |
[INFO] [stdout] 55 |                 Err(why) => panic!("couldn't create file"),
[INFO] [stdout]    |                     ^^^ help: if this is intentional, prefix it with an underscore: `_why`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `why`
[INFO] [stdout]   --> src/lib_image.rs:60:15
[INFO] [stdout]    |
[INFO] [stdout] 60 |                 Err(why) => panic!("couldn't write header to file"),
[INFO] [stdout]    |                     ^^^ help: if this is intentional, prefix it with an underscore: `_why`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `why`
[INFO] [stdout]   --> src/lib_image.rs:66:16
[INFO] [stdout]    |
[INFO] [stdout] 66 |                     Err(why) => panic!("couldn't write pixel to file"),
[INFO] [stdout]    |                         ^^^ help: if this is intentional, prefix it with an underscore: `_why`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `why`
[INFO] [stdout]   --> src/lib_image.rs:70:16
[INFO] [stdout]    |
[INFO] [stdout] 70 |                     Err(why) => panic!("couldn't write 'space' to file"),
[INFO] [stdout]    |                         ^^^ help: if this is intentional, prefix it with an underscore: `_why`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `why`
[INFO] [stdout]   --> src/lib_image.rs:76:17
[INFO] [stdout]    |
[INFO] [stdout] 76 |                         Err(why) => panic!("couldn't write '\\n' to file"),
[INFO] [stdout]    |                             ^^^ help: if this is intentional, prefix it with an underscore: `_why`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib_image.rs:126:7
[INFO] [stdout]     |
[INFO] [stdout] 126 |         let mut image_invert = Image::new(Format::P3, 2, 1, !34, vec![Pixel::new(!34,!56,!102), Pixel::new(!42,!75,!255)]);
[INFO] [stdout]     |             ----^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib_image.rs:146:7
[INFO] [stdout]     |
[INFO] [stdout] 146 |         let mut image_grayscale = Image::new(Format::P3, 2, 1, newmax, vec![Pixel::new(val1,val1,val1), Pixel::new(val2,val2,val2)]);
[INFO] [stdout]     |             ----^^^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `newmax` is never read
[INFO] [stdout]    --> src/lib_image.rs:139:20
[INFO] [stdout]     |
[INFO] [stdout] 139 |         let mut newmax = 0;
[INFO] [stdout]     |                          ^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:60:9
[INFO] [stdout]    |
[INFO] [stdout] 60 |     let mut saved_image:Image = new_with_file(filename);
[INFO] [stdout]    |         ----^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0463`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `project` (bin "project" test) due to 2 previous errors; 12 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unused variable: `why`
[INFO] [stdout]   --> src/lib_image.rs:55:15
[INFO] [stdout]    |
[INFO] [stdout] 55 |                 Err(why) => panic!("couldn't create file"),
[INFO] [stdout]    |                     ^^^ help: if this is intentional, prefix it with an underscore: `_why`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `why`
[INFO] [stdout]   --> src/lib_image.rs:60:15
[INFO] [stdout]    |
[INFO] [stdout] 60 |                 Err(why) => panic!("couldn't write header to file"),
[INFO] [stdout]    |                     ^^^ help: if this is intentional, prefix it with an underscore: `_why`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `why`
[INFO] [stdout]   --> src/lib_image.rs:66:16
[INFO] [stdout]    |
[INFO] [stdout] 66 |                     Err(why) => panic!("couldn't write pixel to file"),
[INFO] [stdout]    |                         ^^^ help: if this is intentional, prefix it with an underscore: `_why`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `why`
[INFO] [stdout]   --> src/lib_image.rs:70:16
[INFO] [stdout]    |
[INFO] [stdout] 70 |                     Err(why) => panic!("couldn't write 'space' to file"),
[INFO] [stdout]    |                         ^^^ help: if this is intentional, prefix it with an underscore: `_why`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `why`
[INFO] [stdout]   --> src/lib_image.rs:76:17
[INFO] [stdout]    |
[INFO] [stdout] 76 |                         Err(why) => panic!("couldn't write '\\n' to file"),
[INFO] [stdout]    |                             ^^^ help: if this is intentional, prefix it with an underscore: `_why`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:60:9
[INFO] [stdout]    |
[INFO] [stdout] 60 |     let mut saved_image:Image = new_with_file(filename);
[INFO] [stdout]    |         ----^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple methods are never used
[INFO] [stdout]    --> src/lib_image.rs:88:10
[INFO] [stdout]     |
[INFO] [stdout]  27 |     impl Image{
[INFO] [stdout]     |     ---------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  88 |         pub fn invert(&mut self){
[INFO] [stdout]     |                ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  95 |         pub fn grayscale(&mut self){
[INFO] [stdout]     |                ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 102 |         pub fn width(&self)->usize{
[INFO] [stdout]     |                ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 105 |         pub fn height(&self)->usize{
[INFO] [stdout]     |                ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 108 |         pub fn max(&self)->u8{
[INFO] [stdout]     |                ^^^
[INFO] [stdout] ...
[INFO] [stdout] 111 |         pub fn pixels(&self)->& Vec<Pixel>{
[INFO] [stdout]     |                ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 116 |         pub fn eq(self, other: Image) -> bool{
[INFO] [stdout]     |                ^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `invert` and `grayscale` are never used
[INFO] [stdout]   --> src/lib_pixel.rs:43:13
[INFO] [stdout]    |
[INFO] [stdout] 14 |     impl Pixel{
[INFO] [stdout]    |     ---------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 43 |         pub fn invert(&mut self){
[INFO] [stdout]    |                ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 50 |         pub fn grayscale(&mut self){
[INFO] [stdout]    |                ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "bfc1f5556198091d487b8d1013de0be17705bb51948f738ab6eabf3031a53f49", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "bfc1f5556198091d487b8d1013de0be17705bb51948f738ab6eabf3031a53f49", kill_on_drop: false }`
[INFO] [stdout] bfc1f5556198091d487b8d1013de0be17705bb51948f738ab6eabf3031a53f49
