[INFO] cloning repository https://github.com/Coloradete/RustExamples [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Coloradete/RustExamples" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FColoradete%2FRustExamples", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FColoradete%2FRustExamples'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a6e9b2d347638e684da94e4ff0323c080c664cf2 [INFO] testing Coloradete/RustExamples against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FColoradete%2FRustExamples" "/workspace/builds/worker-52/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-52/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Coloradete/RustExamples on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Coloradete/RustExamples [INFO] finished tweaking git repo https://github.com/Coloradete/RustExamples [INFO] tweaked toml for git repo https://github.com/Coloradete/RustExamples written to /workspace/builds/worker-52/source/Cargo.toml [INFO] crate git repo https://github.com/Coloradete/RustExamples already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-52/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4306826dc18766651178a440077662bd503559d9c97fa1c1c42ba2e1d0f9a345 [INFO] running `Command { std: "docker" "start" "-a" "4306826dc18766651178a440077662bd503559d9c97fa1c1c42ba2e1d0f9a345", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4306826dc18766651178a440077662bd503559d9c97fa1c1c42ba2e1d0f9a345", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4306826dc18766651178a440077662bd503559d9c97fa1c1c42ba2e1d0f9a345", kill_on_drop: false }` [INFO] [stdout] 4306826dc18766651178a440077662bd503559d9c97fa1c1c42ba2e1d0f9a345 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1103d3cee4245510ffac4d09c7891dc87f5178fca1b23a77e49c417420d87d34 [INFO] running `Command { std: "docker" "start" "-a" "1103d3cee4245510ffac4d09c7891dc87f5178fca1b23a77e49c417420d87d34", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.99 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling CLionTest v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/pattern_matching.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | z @ 9...11 => "lots of", //11 esta incluido en el rango con el punto extra [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::id` [INFO] [stdout] --> src/Vectors.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::process::id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Output` [INFO] [stdout] --> src/operator_overloading.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::process::Output; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Any`, `TypeId` [INFO] [stdout] --> src/dynamic_dispatch_test.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::{Any, TypeId}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | mod dynamic_dispatch_test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/atomic_reference_counted_variable_test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | mod atomic_reference_counted_variable_test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/static_dispatch_test.rs:25:26 [INFO] [stdout] | [INFO] [stdout] 25 | fn print_it_dynamic (z: &Printable){ /*La diferencia con la anterior es que aquí no paso la variable entera, sino una referencia a ellas,... [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 - fn print_it_dynamic (z: &Printable){ /*La diferencia con la anterior es que aquí no paso la variable entera, sino una referencia a ellas, por lo que pierdo la informacion [INFO] [stdout] 25 + fn print_it_dynamic (z: &dyn Printable){ /*La diferencia con la anterior es que aquí no paso la variable entera, sino una referencia a ellas, por lo que pierdo la informacion [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/dynamic_dispatch_test.rs:30:19 [INFO] [stdout] | [INFO] [stdout] 30 | let shapes: [&Shape; 4] =[ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 30 - let shapes: [&Shape; 4] =[ [INFO] [stdout] 30 + let shapes: [&dyn Shape; 4] =[ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/vectors_of_different_types.rs:70:29 [INFO] [stdout] | [INFO] [stdout] 70 | let mut animals:Vec> = Vec::new(); //Creo un vector de objetos instanciados de animales y ahi si puedo hacerlo (ver mejor... [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 70 - let mut animals:Vec> = Vec::new(); //Creo un vector de objetos instanciados de animales y ahi si puedo hacerlo (ver mejor que es Box) [INFO] [stdout] 70 + let mut animals:Vec> = Vec::new(); //Creo un vector de objetos instanciados de animales y ahi si puedo hacerlo (ver mejor que es Box) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/pattern_matching.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | (ref mut x,y) => println!("x = {}, y = {}", x,y), [INFO] [stdout] | ------------- matches any value [INFO] [stdout] 17 | (_,y) => println!("x = ?, y = {}", y) [INFO] [stdout] | ^^^^^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `state` is never read [INFO] [stdout] --> src/Lock.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | state = State::Locked; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c1` [INFO] [stdout] --> src/Colors.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let c1: Color = Color::Blue; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c2` [INFO] [stdout] --> src/Colors.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let c2:Color = Color::Cmyk { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/Arrays.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut a : [i32;5] = [1,2,3,4,5]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/Arrays.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let b = [1;10]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/Arrays.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let c = [1u8; 10]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/Tuples.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | let (a,b) = sp; //destructuring [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/Tuples.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | let (a,b) = sp; //destructuring [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/Tuples.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | let((c,d),(e,f))=combined; //desestructurar tupple de tupples [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/Tuples.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | let((c,d),(e,f))=combined; //desestructurar tupple de tupples [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/Tuples.rs:20:16 [INFO] [stdout] | [INFO] [stdout] 20 | let((c,d),(e,f))=combined; //desestructurar tupple de tupples [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/Tuples.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | let((c,d),(e,f))=combined; //desestructurar tupple de tupples [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `foo` [INFO] [stdout] --> src/Tuples.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let foo = (true,42.0, -1i8); //multiples types [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_foo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `single` [INFO] [stdout] --> src/Tuples.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let single = (42,) ; //tupple con unico valor [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_single` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/pattern_matching.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | z @ 9...11 => "lots of", //11 esta incluido en el rango con el punto extra [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/generics.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let a = Point{x:0, y: 0}; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/generics.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let b = Point{x:true, y: false}; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/generics.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let c = CoolPoint{x: true, y: 0}; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/Vectors.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | Some(x) => println!("a[{}] = {}", idx, a[idx]), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `abc` [INFO] [stdout] --> src/strings.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let mut abc = String::from("hello wolrd"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_abc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `abc2` [INFO] [stdout] --> src/strings.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let mut abc2 = "hello world".to_string(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_abc2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `goblin` [INFO] [stdout] --> src/drop_test.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let goblin = Creature::new("Jeff"); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_goblin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/operator_overloading.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let e = Complex::new(5,-1); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/ownership_test.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | let foo = |v:Vec|(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u2` [INFO] [stdout] --> src/ownership_test.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let u2 = u; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_u2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d2` [INFO] [stdout] --> src/ownership_test.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let d2 = d; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_d2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/borrowing_test.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let c = &mut a; //si hago una segunda referencia muteable a a aca está todoo bien porque el tiempo de vida de b acaba en la linea 20,... [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Arrays.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut a : [i32;5] = [1,2,3,4,5]; [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] warning: variable does not need to be mutable [INFO] [stdout] --> src/Hashmap.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut actual = shapes.entry("circle".into()).or_insert(0); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/strings.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let mut abc = String::from("hello wolrd"); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/strings.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let mut abc2 = "hello world".to_string(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/closures.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let mut borrow_two = &mut two; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lifetime_test.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut z: &String; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `State` [INFO] [stdout] --> src/Lock.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | enum State{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `try_lock` [INFO] [stdout] --> src/Lock.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) fn try_lock() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Color` [INFO] [stdout] --> src/Colors.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum Color{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `try_color` [INFO] [stdout] --> src/Colors.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | pub (crate) fn try_color() [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: union is never used: `IntOrFloat` [INFO] [stdout] --> src/Unions.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | union IntOrFloat [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_int_or_float` [INFO] [stdout] --> src/Unions.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | pub (crate) fn call_int_or_float(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `process_value` [INFO] [stdout] --> src/Unions.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn process_value(value: IntOrFloat) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `options_call` [INFO] [stdout] --> src/Options.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | pub (crate) fn options_call(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_array` [INFO] [stdout] --> src/Arrays.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub (crate) fn create_array() [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `use_slice` [INFO] [stdout] --> src/Slices.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn use_slice(slice: &mut[i32]) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_slice` [INFO] [stdout] --> src/Slices.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | pub (crate) fn call_slice(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_tuples` [INFO] [stdout] --> src/Tuples.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | pub (crate) fn call_tuples() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sum_and_product` [INFO] [stdout] --> src/Tuples.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn sum_and_product(x:i32, y:i32) -> (i32,i32) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `do_pattern_matching` [INFO] [stdout] --> src/pattern_matching.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn do_pattern_matching() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `how_many` [INFO] [stdout] --> src/pattern_matching.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn how_many(x:i32) -> &'static str [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Point` [INFO] [stdout] --> src/generics.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Point{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `CoolPoint` [INFO] [stdout] --> src/generics.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct CoolPoint{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Line` [INFO] [stdout] --> src/generics.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Line{ //Todos tienen que ser del mismo tipo [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_generics` [INFO] [stdout] --> src/generics.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn call_generics(){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_vectors` [INFO] [stdout] --> src/Vectors.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn call_vectors(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_hashmap` [INFO] [stdout] --> src/Hashmap.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn call_hashmap() [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_hashset` [INFO] [stdout] --> src/hashset_test.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn call_hashset(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_iterators` [INFO] [stdout] --> src/iterators.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn call_iterators(){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_strings` [INFO] [stdout] --> src/strings.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn call_strings(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_format` [INFO] [stdout] --> src/strings.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn call_format(){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `guess_number` [INFO] [stdout] --> src/number_guessing.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn guess_number(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_value` [INFO] [stdout] --> src/functions.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn print_value (x: i32){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `increase` [INFO] [stdout] --> src/functions.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn increase(x: &mut i32){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `product` [INFO] [stdout] --> src/functions.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn product(x: i32, y: i32) -> i32{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_functions` [INFO] [stdout] --> src/functions.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn call_functions(){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Point` [INFO] [stdout] --> src/structs_and_methods.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Point{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Line` [INFO] [stdout] --> src/structs_and_methods.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Line { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/structs_and_methods.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | fn len(&self) -> f64{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_structs` [INFO] [stdout] --> src/structs_and_methods.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn call_structs(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_closures` [INFO] [stdout] --> src/closures.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn call_closures(){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_even` [INFO] [stdout] --> src/higher_order_functions.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn is_even(x: u32) -> bool{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `greater_than` [INFO] [stdout] --> src/higher_order_functions.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn greater_than(limit: u32) -> impl Fn(u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_higher_order` [INFO] [stdout] --> src/higher_order_functions.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn call_higher_order(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `age` [INFO] [stdout] --> src/traits_example.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | age: u32 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_traits` [INFO] [stdout] --> src/traits_example.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn call_traits(){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_info` [INFO] [stdout] --> src/traits_example.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn print_info(shape: T) where T: Shape + Debug [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_traits_02` [INFO] [stdout] --> src/traits_example.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn call_traits_02(){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/into_test.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | name: String [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/into_test.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/into_test.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | fn new(name: S) -> Person where S: Into [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_into_test` [INFO] [stdout] --> src/into_test.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn call_into_test(){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/drop_test.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | fn new(name: &str) -> Creature [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_drop_test` [INFO] [stdout] --> src/drop_test.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn call_drop_test(){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/operator_overloading.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn new(re: T, im: T) -> Complex{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_operator_overloading` [INFO] [stdout] --> src/operator_overloading.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn call_operator_overloading(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_it_static` [INFO] [stdout] --> src/static_dispatch_test.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn print_it_static(z: T) /*monomorphisation, en tiempo de compilacion tenemos una funcion print_it que toma i32 como entrad... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_it_dynamic` [INFO] [stdout] --> src/static_dispatch_test.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn print_it_dynamic (z: &Printable){ /*La diferencia con la anterior es que aquí no paso la variable entera, sino una referencia a ellas,... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_static_dispatch_test` [INFO] [stdout] --> src/static_dispatch_test.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn call_static_dispatch_test(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_dynamic_dispatch_test` [INFO] [stdout] --> src/dynamic_dispatch_test.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn call_dynamic_dispatch_test(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `age` [INFO] [stdout] --> src/vectors_of_different_types.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | age: u32 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Creature` [INFO] [stdout] --> src/vectors_of_different_types.rs:45:6 [INFO] [stdout] | [INFO] [stdout] 45 | enum Creature{ //un enum pu8ede contener cualquier cosa, aca se usa cada uno de los casos del enum para representar la informacion de una... [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_vectors_of_different_types` [INFO] [stdout] --> src/vectors_of_different_types.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn call_vectors_of_different_types(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_ownership_test` [INFO] [stdout] --> src/ownership_test.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn call_ownership_test(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_borrowing_test` [INFO] [stdout] --> src/borrowing_test.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn call_borrowing_test(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/lifetime_test.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | name: String [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/lifetime_test.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_ref_name` [INFO] [stdout] --> src/lifetime_test.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn get_ref_name<'a> (&'a self) -> &'a String{ //La recomendacion es no ponerlos porque se sobreentiende que son esos (es redundante... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/lifetime_test.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Company` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/lifetime_test.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `ceo` [INFO] [stdout] --> src/lifetime_test.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | ceo: &'z Person //De esta manera digo que el lifetime de esta referencia va a ser igual al lifetime de la estructura Company entera (... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Company` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/lifetime_test.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_lifetime_test` [INFO] [stdout] --> src/lifetime_test.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn call_lifetime_test() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `PersonTwo` [INFO] [stdout] --> src/lifetime_test.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | struct PersonTwo<'a> { //Si especifico la estructura con una referencia en vez de con un valor entonces las tengo que especificar el tiem... [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `talk` [INFO] [stdout] --> src/lifetime_test.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | fn talk(&self){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Person` [INFO] [stdout] --> src/reference_counted_variables_test.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Person{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/reference_counted_variables_test.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn new(name: Rc) -> Person [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `greet` [INFO] [stdout] --> src/reference_counted_variables_test.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn greet(&self) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `reference_counted_variable_call` [INFO] [stdout] --> src/reference_counted_variables_test.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn reference_counted_variable_call(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Person` [INFO] [stdout] --> src/atomic_reference_counted_variable_test.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Person [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/atomic_reference_counted_variable_test.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn new(name: Arc, state: Arc>) -> Person [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `great` [INFO] [stdout] --> src/atomic_reference_counted_variable_test.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn great (&self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_arcv_test` [INFO] [stdout] --> src/atomic_reference_counted_variable_test.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn call_arcv_test(){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Student` [INFO] [stdout] --> src/circular_references_test.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | struct Student{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `courses` [INFO] [stdout] --> src/circular_references_test.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | fn courses(&self, platform: &Platform) -> Vec{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Course` [INFO] [stdout] --> src/circular_references_test.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | struct Course{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Enrollment` [INFO] [stdout] --> src/circular_references_test.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | struct Enrollment<'a> //Aca tendremos que introducir lifetime para asegurarnos que los estudiantes viven lo mismo que los cursos y al revés [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/circular_references_test.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | fn new(student: &'a Student, course: &'a Course) -> Enrollment<'a> [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Platform` [INFO] [stdout] --> src/circular_references_test.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | struct Platform<'a>{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/circular_references_test.rs:122:8 [INFO] [stdout] | [INFO] [stdout] 122 | fn new() -> Platform<'a>{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `enroll` [INFO] [stdout] --> src/circular_references_test.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | fn enroll(&mut self, student: &'a Student, course: &'a Course){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_circular_references_test` [INFO] [stdout] --> src/circular_references_test.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn call_circular_references_test(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hello` [INFO] [stdout] --> src/creating_tests_example.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn hello() -> String{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `CLionTest` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `clion_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Lock` should have a snake case name [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | mod Lock; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `lock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Colors` should have a snake case name [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | mod Colors; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Unions` should have a snake case name [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | mod Unions; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `unions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Options` should have a snake case name [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | mod Options; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `options` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Arrays` should have a snake case name [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | mod Arrays; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `arrays` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Slices` should have a snake case name [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | mod Slices; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `slices` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Tuples` should have a snake case name [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | mod Tuples; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `tuples` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Vectors` should have a snake case name [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | mod Vectors; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `vectors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Hashmap` should have a snake case name [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | mod Hashmap; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hashmap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/threads_test.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | handle.join(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 137 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 52.78s [INFO] running `Command { std: "docker" "inspect" "1103d3cee4245510ffac4d09c7891dc87f5178fca1b23a77e49c417420d87d34", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1103d3cee4245510ffac4d09c7891dc87f5178fca1b23a77e49c417420d87d34", kill_on_drop: false }` [INFO] [stdout] 1103d3cee4245510ffac4d09c7891dc87f5178fca1b23a77e49c417420d87d34 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3106b767339879db427c1caee149e7ad32ccae692123b1e8ae47fc6777102e1f [INFO] running `Command { std: "docker" "start" "-a" "3106b767339879db427c1caee149e7ad32ccae692123b1e8ae47fc6777102e1f", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling CLionTest v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/pattern_matching.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | z @ 9...11 => "lots of", //11 esta incluido en el rango con el punto extra [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::id` [INFO] [stdout] --> src/Vectors.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::process::id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Output` [INFO] [stdout] --> src/operator_overloading.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::process::Output; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Any`, `TypeId` [INFO] [stdout] --> src/dynamic_dispatch_test.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::{Any, TypeId}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | mod dynamic_dispatch_test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/atomic_reference_counted_variable_test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | mod atomic_reference_counted_variable_test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/static_dispatch_test.rs:25:26 [INFO] [stdout] | [INFO] [stdout] 25 | fn print_it_dynamic (z: &Printable){ /*La diferencia con la anterior es que aquí no paso la variable entera, sino una referencia a ellas,... [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 - fn print_it_dynamic (z: &Printable){ /*La diferencia con la anterior es que aquí no paso la variable entera, sino una referencia a ellas, por lo que pierdo la informacion [INFO] [stdout] 25 + fn print_it_dynamic (z: &dyn Printable){ /*La diferencia con la anterior es que aquí no paso la variable entera, sino una referencia a ellas, por lo que pierdo la informacion [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/dynamic_dispatch_test.rs:30:19 [INFO] [stdout] | [INFO] [stdout] 30 | let shapes: [&Shape; 4] =[ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 30 - let shapes: [&Shape; 4] =[ [INFO] [stdout] 30 + let shapes: [&dyn Shape; 4] =[ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/vectors_of_different_types.rs:70:29 [INFO] [stdout] | [INFO] [stdout] 70 | let mut animals:Vec> = Vec::new(); //Creo un vector de objetos instanciados de animales y ahi si puedo hacerlo (ver mejor... [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 70 - let mut animals:Vec> = Vec::new(); //Creo un vector de objetos instanciados de animales y ahi si puedo hacerlo (ver mejor que es Box) [INFO] [stdout] 70 + let mut animals:Vec> = Vec::new(); //Creo un vector de objetos instanciados de animales y ahi si puedo hacerlo (ver mejor que es Box) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/pattern_matching.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | (ref mut x,y) => println!("x = {}, y = {}", x,y), [INFO] [stdout] | ------------- matches any value [INFO] [stdout] 17 | (_,y) => println!("x = ?, y = {}", y) [INFO] [stdout] | ^^^^^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `state` is never read [INFO] [stdout] --> src/Lock.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | state = State::Locked; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c1` [INFO] [stdout] --> src/Colors.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let c1: Color = Color::Blue; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c2` [INFO] [stdout] --> src/Colors.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let c2:Color = Color::Cmyk { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/Arrays.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut a : [i32;5] = [1,2,3,4,5]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/Arrays.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let b = [1;10]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/Arrays.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let c = [1u8; 10]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/Tuples.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | let (a,b) = sp; //destructuring [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/Tuples.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | let (a,b) = sp; //destructuring [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/Tuples.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | let((c,d),(e,f))=combined; //desestructurar tupple de tupples [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/Tuples.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | let((c,d),(e,f))=combined; //desestructurar tupple de tupples [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/Tuples.rs:20:16 [INFO] [stdout] | [INFO] [stdout] 20 | let((c,d),(e,f))=combined; //desestructurar tupple de tupples [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/Tuples.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | let((c,d),(e,f))=combined; //desestructurar tupple de tupples [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `foo` [INFO] [stdout] --> src/Tuples.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let foo = (true,42.0, -1i8); //multiples types [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_foo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `single` [INFO] [stdout] --> src/Tuples.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let single = (42,) ; //tupple con unico valor [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_single` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/pattern_matching.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | z @ 9...11 => "lots of", //11 esta incluido en el rango con el punto extra [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/generics.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let a = Point{x:0, y: 0}; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/generics.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let b = Point{x:true, y: false}; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/generics.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let c = CoolPoint{x: true, y: 0}; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/Vectors.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | Some(x) => println!("a[{}] = {}", idx, a[idx]), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `abc` [INFO] [stdout] --> src/strings.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let mut abc = String::from("hello wolrd"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_abc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `abc2` [INFO] [stdout] --> src/strings.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let mut abc2 = "hello world".to_string(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_abc2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `goblin` [INFO] [stdout] --> src/drop_test.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let goblin = Creature::new("Jeff"); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_goblin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/operator_overloading.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let e = Complex::new(5,-1); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/ownership_test.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | let foo = |v:Vec|(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u2` [INFO] [stdout] --> src/ownership_test.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let u2 = u; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_u2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d2` [INFO] [stdout] --> src/ownership_test.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let d2 = d; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_d2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/borrowing_test.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let c = &mut a; //si hago una segunda referencia muteable a a aca está todoo bien porque el tiempo de vida de b acaba en la linea 20,... [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Arrays.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut a : [i32;5] = [1,2,3,4,5]; [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] warning: variable does not need to be mutable [INFO] [stdout] --> src/Hashmap.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut actual = shapes.entry("circle".into()).or_insert(0); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/strings.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let mut abc = String::from("hello wolrd"); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/strings.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let mut abc2 = "hello world".to_string(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/closures.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let mut borrow_two = &mut two; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lifetime_test.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut z: &String; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `State` [INFO] [stdout] --> src/Lock.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | enum State{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `try_lock` [INFO] [stdout] --> src/Lock.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) fn try_lock() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Color` [INFO] [stdout] --> src/Colors.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum Color{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `try_color` [INFO] [stdout] --> src/Colors.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | pub (crate) fn try_color() [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: union is never used: `IntOrFloat` [INFO] [stdout] --> src/Unions.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | union IntOrFloat [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_int_or_float` [INFO] [stdout] --> src/Unions.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | pub (crate) fn call_int_or_float(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `process_value` [INFO] [stdout] --> src/Unions.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn process_value(value: IntOrFloat) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `options_call` [INFO] [stdout] --> src/Options.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | pub (crate) fn options_call(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_array` [INFO] [stdout] --> src/Arrays.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub (crate) fn create_array() [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `use_slice` [INFO] [stdout] --> src/Slices.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn use_slice(slice: &mut[i32]) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_slice` [INFO] [stdout] --> src/Slices.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | pub (crate) fn call_slice(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_tuples` [INFO] [stdout] --> src/Tuples.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | pub (crate) fn call_tuples() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sum_and_product` [INFO] [stdout] --> src/Tuples.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn sum_and_product(x:i32, y:i32) -> (i32,i32) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `do_pattern_matching` [INFO] [stdout] --> src/pattern_matching.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn do_pattern_matching() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `how_many` [INFO] [stdout] --> src/pattern_matching.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn how_many(x:i32) -> &'static str [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Point` [INFO] [stdout] --> src/generics.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Point{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `CoolPoint` [INFO] [stdout] --> src/generics.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct CoolPoint{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Line` [INFO] [stdout] --> src/generics.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Line{ //Todos tienen que ser del mismo tipo [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_generics` [INFO] [stdout] --> src/generics.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn call_generics(){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_vectors` [INFO] [stdout] --> src/Vectors.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn call_vectors(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_hashmap` [INFO] [stdout] --> src/Hashmap.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn call_hashmap() [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_hashset` [INFO] [stdout] --> src/hashset_test.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn call_hashset(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_iterators` [INFO] [stdout] --> src/iterators.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn call_iterators(){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_strings` [INFO] [stdout] --> src/strings.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn call_strings(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_format` [INFO] [stdout] --> src/strings.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn call_format(){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `guess_number` [INFO] [stdout] --> src/number_guessing.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn guess_number(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_value` [INFO] [stdout] --> src/functions.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn print_value (x: i32){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `increase` [INFO] [stdout] --> src/functions.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn increase(x: &mut i32){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `product` [INFO] [stdout] --> src/functions.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn product(x: i32, y: i32) -> i32{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_functions` [INFO] [stdout] --> src/functions.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn call_functions(){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Point` [INFO] [stdout] --> src/structs_and_methods.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Point{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Line` [INFO] [stdout] --> src/structs_and_methods.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Line { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/structs_and_methods.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | fn len(&self) -> f64{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_structs` [INFO] [stdout] --> src/structs_and_methods.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn call_structs(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_closures` [INFO] [stdout] --> src/closures.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn call_closures(){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_even` [INFO] [stdout] --> src/higher_order_functions.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn is_even(x: u32) -> bool{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `greater_than` [INFO] [stdout] --> src/higher_order_functions.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn greater_than(limit: u32) -> impl Fn(u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_higher_order` [INFO] [stdout] --> src/higher_order_functions.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn call_higher_order(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `age` [INFO] [stdout] --> src/traits_example.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | age: u32 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_traits` [INFO] [stdout] --> src/traits_example.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn call_traits(){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_info` [INFO] [stdout] --> src/traits_example.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn print_info(shape: T) where T: Shape + Debug [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_traits_02` [INFO] [stdout] --> src/traits_example.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn call_traits_02(){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/into_test.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | name: String [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/into_test.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/into_test.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | fn new(name: S) -> Person where S: Into [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_into_test` [INFO] [stdout] --> src/into_test.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn call_into_test(){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/drop_test.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | fn new(name: &str) -> Creature [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_drop_test` [INFO] [stdout] --> src/drop_test.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn call_drop_test(){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/operator_overloading.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn new(re: T, im: T) -> Complex{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_operator_overloading` [INFO] [stdout] --> src/operator_overloading.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn call_operator_overloading(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_it_static` [INFO] [stdout] --> src/static_dispatch_test.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn print_it_static(z: T) /*monomorphisation, en tiempo de compilacion tenemos una funcion print_it que toma i32 como entrad... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_it_dynamic` [INFO] [stdout] --> src/static_dispatch_test.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn print_it_dynamic (z: &Printable){ /*La diferencia con la anterior es que aquí no paso la variable entera, sino una referencia a ellas,... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_static_dispatch_test` [INFO] [stdout] --> src/static_dispatch_test.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn call_static_dispatch_test(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_dynamic_dispatch_test` [INFO] [stdout] --> src/dynamic_dispatch_test.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn call_dynamic_dispatch_test(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `age` [INFO] [stdout] --> src/vectors_of_different_types.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | age: u32 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Creature` [INFO] [stdout] --> src/vectors_of_different_types.rs:45:6 [INFO] [stdout] | [INFO] [stdout] 45 | enum Creature{ //un enum pu8ede contener cualquier cosa, aca se usa cada uno de los casos del enum para representar la informacion de una... [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_vectors_of_different_types` [INFO] [stdout] --> src/vectors_of_different_types.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn call_vectors_of_different_types(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_ownership_test` [INFO] [stdout] --> src/ownership_test.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn call_ownership_test(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_borrowing_test` [INFO] [stdout] --> src/borrowing_test.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn call_borrowing_test(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/lifetime_test.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | name: String [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/lifetime_test.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_ref_name` [INFO] [stdout] --> src/lifetime_test.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn get_ref_name<'a> (&'a self) -> &'a String{ //La recomendacion es no ponerlos porque se sobreentiende que son esos (es redundante... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/lifetime_test.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Company` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/lifetime_test.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `ceo` [INFO] [stdout] --> src/lifetime_test.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | ceo: &'z Person //De esta manera digo que el lifetime de esta referencia va a ser igual al lifetime de la estructura Company entera (... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Company` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/lifetime_test.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_lifetime_test` [INFO] [stdout] --> src/lifetime_test.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn call_lifetime_test() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `PersonTwo` [INFO] [stdout] --> src/lifetime_test.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | struct PersonTwo<'a> { //Si especifico la estructura con una referencia en vez de con un valor entonces las tengo que especificar el tiem... [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `talk` [INFO] [stdout] --> src/lifetime_test.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | fn talk(&self){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Person` [INFO] [stdout] --> src/reference_counted_variables_test.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Person{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/reference_counted_variables_test.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn new(name: Rc) -> Person [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `greet` [INFO] [stdout] --> src/reference_counted_variables_test.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn greet(&self) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `reference_counted_variable_call` [INFO] [stdout] --> src/reference_counted_variables_test.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn reference_counted_variable_call(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Person` [INFO] [stdout] --> src/atomic_reference_counted_variable_test.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Person [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/atomic_reference_counted_variable_test.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn new(name: Arc, state: Arc>) -> Person [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `great` [INFO] [stdout] --> src/atomic_reference_counted_variable_test.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn great (&self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_arcv_test` [INFO] [stdout] --> src/atomic_reference_counted_variable_test.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn call_arcv_test(){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Student` [INFO] [stdout] --> src/circular_references_test.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | struct Student{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `courses` [INFO] [stdout] --> src/circular_references_test.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | fn courses(&self, platform: &Platform) -> Vec{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Course` [INFO] [stdout] --> src/circular_references_test.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | struct Course{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Enrollment` [INFO] [stdout] --> src/circular_references_test.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | struct Enrollment<'a> //Aca tendremos que introducir lifetime para asegurarnos que los estudiantes viven lo mismo que los cursos y al revés [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/circular_references_test.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | fn new(student: &'a Student, course: &'a Course) -> Enrollment<'a> [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Platform` [INFO] [stdout] --> src/circular_references_test.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | struct Platform<'a>{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/circular_references_test.rs:122:8 [INFO] [stdout] | [INFO] [stdout] 122 | fn new() -> Platform<'a>{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `enroll` [INFO] [stdout] --> src/circular_references_test.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | fn enroll(&mut self, student: &'a Student, course: &'a Course){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_circular_references_test` [INFO] [stdout] --> src/circular_references_test.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn call_circular_references_test(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `CLionTest` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `clion_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Lock` should have a snake case name [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | mod Lock; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `lock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Colors` should have a snake case name [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | mod Colors; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Unions` should have a snake case name [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | mod Unions; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `unions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Options` should have a snake case name [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | mod Options; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `options` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Arrays` should have a snake case name [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | mod Arrays; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `arrays` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Slices` should have a snake case name [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | mod Slices; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `slices` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Tuples` should have a snake case name [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | mod Tuples; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `tuples` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Vectors` should have a snake case name [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | mod Vectors; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `vectors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Hashmap` should have a snake case name [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | mod Hashmap; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hashmap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/threads_test.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | handle.join(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 136 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 5.12s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/CLionTest-5c441399dd8870d0) [INFO] running `Command { std: "docker" "inspect" "3106b767339879db427c1caee149e7ad32ccae692123b1e8ae47fc6777102e1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3106b767339879db427c1caee149e7ad32ccae692123b1e8ae47fc6777102e1f", kill_on_drop: false }` [INFO] [stdout] 3106b767339879db427c1caee149e7ad32ccae692123b1e8ae47fc6777102e1f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 13f977f87f2508fd365ec5ed36bd78ad958150a78e76feb88ebcf1f26b6aa526 [INFO] running `Command { std: "docker" "start" "-a" "13f977f87f2508fd365ec5ed36bd78ad958150a78e76feb88ebcf1f26b6aa526", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/main.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/pattern_matching.rs:28:14 [INFO] [stderr] | [INFO] [stderr] 28 | z @ 9...11 => "lots of", //11 esta incluido en el rango con el punto extra [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::process::id` [INFO] [stderr] --> src/Vectors.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::process::id; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::process::Output` [INFO] [stderr] --> src/operator_overloading.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::process::Output; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Any`, `TypeId` [INFO] [stderr] --> src/dynamic_dispatch_test.rs:1:16 [INFO] [stderr] | [INFO] [stderr] 1 | use std::any::{Any, TypeId}; [INFO] [stderr] | ^^^ ^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider adding a `#[cfg(test)]` to the containing module [INFO] [stderr] --> src/main.rs:27:1 [INFO] [stderr] | [INFO] [stderr] 27 | mod dynamic_dispatch_test; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::rc::Rc` [INFO] [stderr] --> src/atomic_reference_counted_variable_test.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::rc::Rc; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider adding a `#[cfg(test)]` to the containing module [INFO] [stderr] --> src/main.rs:33:1 [INFO] [stderr] | [INFO] [stderr] 33 | mod atomic_reference_counted_variable_test; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/static_dispatch_test.rs:25:26 [INFO] [stderr] | [INFO] [stderr] 25 | fn print_it_dynamic (z: &Printable){ /*La diferencia con la anterior es que aquí no paso la variable entera, sino una referencia a ellas,... [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 25 - fn print_it_dynamic (z: &Printable){ /*La diferencia con la anterior es que aquí no paso la variable entera, sino una referencia a ellas, por lo que pierdo la informacion [INFO] [stderr] 25 + fn print_it_dynamic (z: &dyn Printable){ /*La diferencia con la anterior es que aquí no paso la variable entera, sino una referencia a ellas, por lo que pierdo la informacion [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/dynamic_dispatch_test.rs:30:19 [INFO] [stderr] | [INFO] [stderr] 30 | let shapes: [&Shape; 4] =[ [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 30 - let shapes: [&Shape; 4] =[ [INFO] [stderr] 30 + let shapes: [&dyn Shape; 4] =[ [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/vectors_of_different_types.rs:70:29 [INFO] [stderr] | [INFO] [stderr] 70 | let mut animals:Vec> = Vec::new(); //Creo un vector de objetos instanciados de animales y ahi si puedo hacerlo (ver mejor... [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 70 - let mut animals:Vec> = Vec::new(); //Creo un vector de objetos instanciados de animales y ahi si puedo hacerlo (ver mejor que es Box) [INFO] [stderr] 70 + let mut animals:Vec> = Vec::new(); //Creo un vector de objetos instanciados de animales y ahi si puedo hacerlo (ver mejor que es Box) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/pattern_matching.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 16 | (ref mut x,y) => println!("x = {}, y = {}", x,y), [INFO] [stderr] | ------------- matches any value [INFO] [stderr] 17 | (_,y) => println!("x = ?, y = {}", y) [INFO] [stderr] | ^^^^^ unreachable pattern [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `state` is never read [INFO] [stderr] --> src/Lock.rs:57:17 [INFO] [stderr] | [INFO] [stderr] 57 | state = State::Locked; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c1` [INFO] [stderr] --> src/Colors.rs:15:9 [INFO] [stderr] | [INFO] [stderr] 15 | let c1: Color = Color::Blue; [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_c1` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c2` [INFO] [stderr] --> src/Colors.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 17 | let c2:Color = Color::Cmyk { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_c2` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `a` [INFO] [stderr] --> src/Arrays.rs:5:13 [INFO] [stderr] | [INFO] [stderr] 5 | let mut a : [i32;5] = [1,2,3,4,5]; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `b` [INFO] [stderr] --> src/Arrays.rs:7:9 [INFO] [stderr] | [INFO] [stderr] 7 | let b = [1;10]; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/Arrays.rs:9:9 [INFO] [stderr] | [INFO] [stderr] 9 | let c = [1u8; 10]; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `a` [INFO] [stderr] --> src/Tuples.rs:12:10 [INFO] [stderr] | [INFO] [stderr] 12 | let (a,b) = sp; //destructuring [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `b` [INFO] [stderr] --> src/Tuples.rs:12:12 [INFO] [stderr] | [INFO] [stderr] 12 | let (a,b) = sp; //destructuring [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/Tuples.rs:20:10 [INFO] [stderr] | [INFO] [stderr] 20 | let((c,d),(e,f))=combined; //desestructurar tupple de tupples [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `d` [INFO] [stderr] --> src/Tuples.rs:20:12 [INFO] [stderr] | [INFO] [stderr] 20 | let((c,d),(e,f))=combined; //desestructurar tupple de tupples [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/Tuples.rs:20:16 [INFO] [stderr] | [INFO] [stderr] 20 | let((c,d),(e,f))=combined; //desestructurar tupple de tupples [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `f` [INFO] [stderr] --> src/Tuples.rs:20:18 [INFO] [stderr] | [INFO] [stderr] 20 | let((c,d),(e,f))=combined; //desestructurar tupple de tupples [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `foo` [INFO] [stderr] --> src/Tuples.rs:22:9 [INFO] [stderr] | [INFO] [stderr] 22 | let foo = (true,42.0, -1i8); //multiples types [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_foo` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `single` [INFO] [stderr] --> src/Tuples.rs:24:9 [INFO] [stderr] | [INFO] [stderr] 24 | let single = (42,) ; //tupple con unico valor [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_single` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `z` [INFO] [stderr] --> src/pattern_matching.rs:28:9 [INFO] [stderr] | [INFO] [stderr] 28 | z @ 9...11 => "lots of", //11 esta incluido en el rango con el punto extra [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `a` [INFO] [stderr] --> src/generics.rs:19:9 [INFO] [stderr] | [INFO] [stderr] 19 | let a = Point{x:0, y: 0}; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `b` [INFO] [stderr] --> src/generics.rs:20:9 [INFO] [stderr] | [INFO] [stderr] 20 | let b = Point{x:true, y: false}; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/generics.rs:22:9 [INFO] [stderr] | [INFO] [stderr] 22 | let c = CoolPoint{x: true, y: 0}; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/Vectors.rs:19:14 [INFO] [stderr] | [INFO] [stderr] 19 | Some(x) => println!("a[{}] = {}", idx, a[idx]), [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `abc` [INFO] [stderr] --> src/strings.rs:40:13 [INFO] [stderr] | [INFO] [stderr] 40 | let mut abc = String::from("hello wolrd"); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_abc` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `abc2` [INFO] [stderr] --> src/strings.rs:41:13 [INFO] [stderr] | [INFO] [stderr] 41 | let mut abc2 = "hello world".to_string(); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_abc2` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `goblin` [INFO] [stderr] --> src/drop_test.rs:22:9 [INFO] [stderr] | [INFO] [stderr] 22 | let goblin = Creature::new("Jeff"); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_goblin` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/operator_overloading.rs:85:9 [INFO] [stderr] | [INFO] [stderr] 85 | let e = Complex::new(5,-1); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `v` [INFO] [stderr] --> src/ownership_test.rs:10:16 [INFO] [stderr] | [INFO] [stderr] 10 | let foo = |v:Vec|(); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `u2` [INFO] [stderr] --> src/ownership_test.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | let u2 = u; [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_u2` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `d2` [INFO] [stderr] --> src/ownership_test.rs:22:9 [INFO] [stderr] | [INFO] [stderr] 22 | let d2 = d; [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_d2` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/borrowing_test.rs:28:9 [INFO] [stderr] | [INFO] [stderr] 28 | let c = &mut a; //si hago una segunda referencia muteable a a aca está todoo bien porque el tiempo de vida de b acaba en la linea 20,... [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/Arrays.rs:5:9 [INFO] [stderr] | [INFO] [stderr] 5 | let mut a : [i32;5] = [1,2,3,4,5]; [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/Hashmap.rs:20:13 [INFO] [stderr] | [INFO] [stderr] 20 | let mut actual = shapes.entry("circle".into()).or_insert(0); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/strings.rs:40:9 [INFO] [stderr] | [INFO] [stderr] 40 | let mut abc = String::from("hello wolrd"); [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/strings.rs:41:9 [INFO] [stderr] | [INFO] [stderr] 41 | let mut abc2 = "hello world".to_string(); [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/closures.rs:31:9 [INFO] [stderr] | [INFO] [stderr] 31 | let mut borrow_two = &mut two; [INFO] [stderr] | ----^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/lifetime_test.rs:33:9 [INFO] [stderr] | [INFO] [stderr] 33 | let mut z: &String; [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: enum is never used: `State` [INFO] [stderr] --> src/Lock.rs:3:6 [INFO] [stderr] | [INFO] [stderr] 3 | enum State{ [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `try_lock` [INFO] [stderr] --> src/Lock.rs:9:15 [INFO] [stderr] | [INFO] [stderr] 9 | pub(crate) fn try_lock() [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum is never used: `Color` [INFO] [stderr] --> src/Colors.rs:2:6 [INFO] [stderr] | [INFO] [stderr] 2 | enum Color{ [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `try_color` [INFO] [stderr] --> src/Colors.rs:10:16 [INFO] [stderr] | [INFO] [stderr] 10 | pub (crate) fn try_color() [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: union is never used: `IntOrFloat` [INFO] [stderr] --> src/Unions.rs:2:7 [INFO] [stderr] | [INFO] [stderr] 2 | union IntOrFloat [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_int_or_float` [INFO] [stderr] --> src/Unions.rs:8:16 [INFO] [stderr] | [INFO] [stderr] 8 | pub (crate) fn call_int_or_float(){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `process_value` [INFO] [stderr] --> src/Unions.rs:21:4 [INFO] [stderr] | [INFO] [stderr] 21 | fn process_value(value: IntOrFloat) [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `options_call` [INFO] [stderr] --> src/Options.rs:2:16 [INFO] [stderr] | [INFO] [stderr] 2 | pub (crate) fn options_call(){ [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `create_array` [INFO] [stderr] --> src/Arrays.rs:3:16 [INFO] [stderr] | [INFO] [stderr] 3 | pub (crate) fn create_array() [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `use_slice` [INFO] [stderr] --> src/Slices.rs:8:4 [INFO] [stderr] | [INFO] [stderr] 8 | fn use_slice(slice: &mut[i32]) [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_slice` [INFO] [stderr] --> src/Slices.rs:13:16 [INFO] [stderr] | [INFO] [stderr] 13 | pub (crate) fn call_slice(){ [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_tuples` [INFO] [stderr] --> src/Tuples.rs:2:16 [INFO] [stderr] | [INFO] [stderr] 2 | pub (crate) fn call_tuples() [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `sum_and_product` [INFO] [stderr] --> src/Tuples.rs:28:4 [INFO] [stderr] | [INFO] [stderr] 28 | fn sum_and_product(x:i32, y:i32) -> (i32,i32) [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `do_pattern_matching` [INFO] [stderr] --> src/pattern_matching.rs:2:8 [INFO] [stderr] | [INFO] [stderr] 2 | pub fn do_pattern_matching() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `how_many` [INFO] [stderr] --> src/pattern_matching.rs:21:4 [INFO] [stderr] | [INFO] [stderr] 21 | fn how_many(x:i32) -> &'static str [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Point` [INFO] [stderr] --> src/generics.rs:2:8 [INFO] [stderr] | [INFO] [stderr] 2 | struct Point{ [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `CoolPoint` [INFO] [stderr] --> src/generics.rs:7:8 [INFO] [stderr] | [INFO] [stderr] 7 | struct CoolPoint{ [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Line` [INFO] [stderr] --> src/generics.rs:12:8 [INFO] [stderr] | [INFO] [stderr] 12 | struct Line{ //Todos tienen que ser del mismo tipo [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_generics` [INFO] [stderr] --> src/generics.rs:17:8 [INFO] [stderr] | [INFO] [stderr] 17 | pub fn call_generics(){ [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_vectors` [INFO] [stderr] --> src/Vectors.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn call_vectors(){ [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_hashmap` [INFO] [stderr] --> src/Hashmap.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn call_hashmap() [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_hashset` [INFO] [stderr] --> src/hashset_test.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn call_hashset(){ [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_iterators` [INFO] [stderr] --> src/iterators.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn call_iterators(){ [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_strings` [INFO] [stderr] --> src/strings.rs:2:8 [INFO] [stderr] | [INFO] [stderr] 2 | pub fn call_strings(){ [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_format` [INFO] [stderr] --> src/strings.rs:44:8 [INFO] [stderr] | [INFO] [stderr] 44 | pub fn call_format(){ [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `guess_number` [INFO] [stderr] --> src/number_guessing.rs:4:8 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn guess_number(){ [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `print_value` [INFO] [stderr] --> src/functions.rs:2:4 [INFO] [stderr] | [INFO] [stderr] 2 | fn print_value (x: i32){ [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `increase` [INFO] [stderr] --> src/functions.rs:6:4 [INFO] [stderr] | [INFO] [stderr] 6 | fn increase(x: &mut i32){ [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `product` [INFO] [stderr] --> src/functions.rs:14:4 [INFO] [stderr] | [INFO] [stderr] 14 | fn product(x: i32, y: i32) -> i32{ [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_functions` [INFO] [stderr] --> src/functions.rs:18:8 [INFO] [stderr] | [INFO] [stderr] 18 | pub fn call_functions(){ [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Point` [INFO] [stderr] --> src/structs_and_methods.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Point{ [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Line` [INFO] [stderr] --> src/structs_and_methods.rs:6:8 [INFO] [stderr] | [INFO] [stderr] 6 | struct Line { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `len` [INFO] [stderr] --> src/structs_and_methods.rs:13:8 [INFO] [stderr] | [INFO] [stderr] 13 | fn len(&self) -> f64{ [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_structs` [INFO] [stderr] --> src/structs_and_methods.rs:20:8 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn call_structs(){ [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_closures` [INFO] [stderr] --> src/closures.rs:2:8 [INFO] [stderr] | [INFO] [stderr] 2 | pub fn call_closures(){ [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] running 1 test [INFO] [stderr] warning: function is never used: `is_even` [INFO] [stderr] --> src/higher_order_functions.rs:2:4 [INFO] [stderr] | [INFO] [stderr] 2 | fn is_even(x: u32) -> bool{ [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `greater_than` [INFO] [stderr] --> src/higher_order_functions.rs:6:4 [INFO] [stderr] | [INFO] [stderr] 6 | fn greater_than(limit: u32) -> impl Fn(u32) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_higher_order` [INFO] [stderr] --> src/higher_order_functions.rs:12:8 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn call_higher_order(){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `age` [INFO] [stderr] --> src/traits_example.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | age: u32 [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_traits` [INFO] [stderr] --> src/traits_example.rs:60:8 [INFO] [stderr] | [INFO] [stderr] 60 | pub fn call_traits(){ [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `print_info` [INFO] [stderr] --> src/traits_example.rs:94:4 [INFO] [stderr] | [INFO] [stderr] 94 | fn print_info(shape: T) where T: Shape + Debug [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_traits_02` [INFO] [stderr] --> src/traits_example.rs:100:8 [INFO] [stderr] | [INFO] [stderr] 100 | pub fn call_traits_02(){ [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `name` [INFO] [stderr] --> src/into_test.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | name: String [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/into_test.rs:3:10 [INFO] [stderr] | [INFO] [stderr] 3 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/into_test.rs:9:8 [INFO] [stderr] | [INFO] [stderr] 9 | fn new(name: S) -> Person where S: Into [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_into_test` [INFO] [stderr] --> src/into_test.rs:16:8 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn call_into_test(){ [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/drop_test.rs:6:8 [INFO] [stderr] | [INFO] [stderr] 6 | fn new(name: &str) -> Creature [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_drop_test` [INFO] [stderr] --> src/drop_test.rs:20:8 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn call_drop_test(){ [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/operator_overloading.rs:11:8 [INFO] [stderr] | [INFO] [stderr] 11 | fn new(re: T, im: T) -> Complex{ [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_operator_overloading` [INFO] [stderr] --> src/operator_overloading.rs:63:8 [INFO] [stderr] | [INFO] [stderr] 63 | pub fn call_operator_overloading(){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `print_it_static` [INFO] [stderr] --> src/static_dispatch_test.rs:18:4 [INFO] [stderr] | [INFO] [stderr] 18 | fn print_it_static(z: T) /*monomorphisation, en tiempo de compilacion tenemos una funcion print_it que toma i32 como entrad... [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `print_it_dynamic` [INFO] [stderr] --> src/static_dispatch_test.rs:25:4 [INFO] [stderr] | [INFO] [stderr] 25 | fn print_it_dynamic (z: &Printable){ /*La diferencia con la anterior es que aquí no paso la variable entera, sino una referencia a ellas,... [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_static_dispatch_test` [INFO] [stderr] --> src/static_dispatch_test.rs:31:8 [INFO] [stderr] | [INFO] [stderr] 31 | pub fn call_static_dispatch_test(){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_dynamic_dispatch_test` [INFO] [stderr] --> src/dynamic_dispatch_test.rs:28:8 [INFO] [stderr] | [INFO] [stderr] 28 | pub fn call_dynamic_dispatch_test(){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `age` [INFO] [stderr] --> src/vectors_of_different_types.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | age: u32 [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum is never used: `Creature` [INFO] [stderr] --> src/vectors_of_different_types.rs:45:6 [INFO] [stderr] | [INFO] [stderr] 45 | enum Creature{ //un enum pu8ede contener cualquier cosa, aca se usa cada uno de los casos del enum para representar la informacion de una... [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_vectors_of_different_types` [INFO] [stderr] --> src/vectors_of_different_types.rs:50:8 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn call_vectors_of_different_types(){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_ownership_test` [INFO] [stderr] --> src/ownership_test.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn call_ownership_test(){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_borrowing_test` [INFO] [stderr] --> src/borrowing_test.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn call_borrowing_test(){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `name` [INFO] [stderr] --> src/lifetime_test.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | name: String [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/lifetime_test.rs:2:10 [INFO] [stderr] | [INFO] [stderr] 2 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_ref_name` [INFO] [stderr] --> src/lifetime_test.rs:11:8 [INFO] [stderr] | [INFO] [stderr] 11 | fn get_ref_name<'a> (&'a self) -> &'a String{ //La recomendacion es no ponerlos porque se sobreentiende que son esos (es redundante... [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `name` [INFO] [stderr] --> src/lifetime_test.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | name: String, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Company` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/lifetime_test.rs:17:10 [INFO] [stderr] | [INFO] [stderr] 17 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `ceo` [INFO] [stderr] --> src/lifetime_test.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | ceo: &'z Person //De esta manera digo que el lifetime de esta referencia va a ser igual al lifetime de la estructura Company entera (... [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Company` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/lifetime_test.rs:17:10 [INFO] [stderr] | [INFO] [stderr] 17 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_lifetime_test` [INFO] [stderr] --> src/lifetime_test.rs:25:8 [INFO] [stderr] | [INFO] [stderr] 25 | pub fn call_lifetime_test() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `PersonTwo` [INFO] [stderr] --> src/lifetime_test.rs:50:8 [INFO] [stderr] | [INFO] [stderr] 50 | struct PersonTwo<'a> { //Si especifico la estructura con una referencia en vez de con un valor entonces las tengo que especificar el tiem... [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `talk` [INFO] [stderr] --> src/lifetime_test.rs:54:8 [INFO] [stderr] | [INFO] [stderr] 54 | fn talk(&self){ [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Person` [INFO] [stderr] --> src/reference_counted_variables_test.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | struct Person{ [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/reference_counted_variables_test.rs:10:8 [INFO] [stderr] | [INFO] [stderr] 10 | fn new(name: Rc) -> Person [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `greet` [INFO] [stderr] --> src/reference_counted_variables_test.rs:15:8 [INFO] [stderr] | [INFO] [stderr] 15 | fn greet(&self) [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `reference_counted_variable_call` [INFO] [stderr] --> src/reference_counted_variables_test.rs:21:8 [INFO] [stderr] | [INFO] [stderr] 21 | pub fn reference_counted_variable_call(){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Person` [INFO] [stderr] --> src/atomic_reference_counted_variable_test.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 5 | struct Person [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/atomic_reference_counted_variable_test.rs:14:8 [INFO] [stderr] | [INFO] [stderr] 14 | fn new(name: Arc, state: Arc>) -> Person [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `great` [INFO] [stderr] --> src/atomic_reference_counted_variable_test.rs:19:8 [INFO] [stderr] | [INFO] [stderr] 19 | fn great (&self){ [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_arcv_test` [INFO] [stderr] --> src/atomic_reference_counted_variable_test.rs:31:8 [INFO] [stderr] | [INFO] [stderr] 31 | pub fn call_arcv_test(){ [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Student` [INFO] [stderr] --> src/circular_references_test.rs:86:8 [INFO] [stderr] | [INFO] [stderr] 86 | struct Student{ [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `courses` [INFO] [stderr] --> src/circular_references_test.rs:91:8 [INFO] [stderr] | [INFO] [stdout] test creating_tests_example::test_example ... ok [INFO] [stderr] 91 | fn courses(&self, platform: &Platform) -> Vec{ [INFO] [stdout] [INFO] [stderr] | ^^^^^^^ [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] [INFO] [stdout] [INFO] [stderr] warning: struct is never constructed: `Course` [INFO] [stderr] --> src/circular_references_test.rs:100:8 [INFO] [stderr] | [INFO] [stderr] 100 | struct Course{ [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Enrollment` [INFO] [stderr] --> src/circular_references_test.rs:104:8 [INFO] [stderr] | [INFO] [stderr] 104 | struct Enrollment<'a> //Aca tendremos que introducir lifetime para asegurarnos que los estudiantes viven lo mismo que los cursos y al revés [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/circular_references_test.rs:111:8 [INFO] [stderr] | [INFO] [stderr] 111 | fn new(student: &'a Student, course: &'a Course) -> Enrollment<'a> [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Platform` [INFO] [stderr] --> src/circular_references_test.rs:117:8 [INFO] [stderr] | [INFO] [stderr] 117 | struct Platform<'a>{ [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/circular_references_test.rs:122:8 [INFO] [stderr] | [INFO] [stderr] 122 | fn new() -> Platform<'a>{ [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `enroll` [INFO] [stderr] --> src/circular_references_test.rs:126:8 [INFO] [stderr] | [INFO] [stderr] 126 | fn enroll(&mut self, student: &'a Student, course: &'a Course){ [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `call_circular_references_test` [INFO] [stderr] --> src/circular_references_test.rs:133:8 [INFO] [stderr] | [INFO] [stderr] 133 | pub fn call_circular_references_test(){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: crate `CLionTest` should have a snake case name [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] = help: convert the identifier to snake case: `clion_test` [INFO] [stderr] [INFO] [stderr] warning: module `Lock` should have a snake case name [INFO] [stderr] --> src/main.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | mod Lock; [INFO] [stderr] | ^^^^ help: convert the identifier to snake case: `lock` [INFO] [stderr] [INFO] [stderr] warning: module `Colors` should have a snake case name [INFO] [stderr] --> src/main.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | mod Colors; [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `colors` [INFO] [stderr] [INFO] [stderr] warning: module `Unions` should have a snake case name [INFO] [stderr] --> src/main.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | mod Unions; [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `unions` [INFO] [stderr] [INFO] [stderr] warning: module `Options` should have a snake case name [INFO] [stderr] --> src/main.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | mod Options; [INFO] [stderr] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `options` [INFO] [stderr] [INFO] [stderr] warning: module `Arrays` should have a snake case name [INFO] [stderr] --> src/main.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | mod Arrays; [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `arrays` [INFO] [stderr] [INFO] [stderr] warning: module `Slices` should have a snake case name [INFO] [stderr] --> src/main.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | mod Slices; [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `slices` [INFO] [stderr] [INFO] [stderr] warning: module `Tuples` should have a snake case name [INFO] [stderr] --> src/main.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | mod Tuples; [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `tuples` [INFO] [stderr] [INFO] [stderr] warning: module `Vectors` should have a snake case name [INFO] [stderr] --> src/main.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | mod Vectors; [INFO] [stderr] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `vectors` [INFO] [stderr] [INFO] [stderr] warning: module `Hashmap` should have a snake case name [INFO] [stderr] --> src/main.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | mod Hashmap; [INFO] [stderr] | ^^^^^^^ help: convert the identifier to snake case: `hashmap` [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/threads_test.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | handle.join(); [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: `CLionTest` (bin "CLionTest" test) generated 136 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.98s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/CLionTest-5c441399dd8870d0) [INFO] running `Command { std: "docker" "inspect" "13f977f87f2508fd365ec5ed36bd78ad958150a78e76feb88ebcf1f26b6aa526", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "13f977f87f2508fd365ec5ed36bd78ad958150a78e76feb88ebcf1f26b6aa526", kill_on_drop: false }` [INFO] [stdout] 13f977f87f2508fd365ec5ed36bd78ad958150a78e76feb88ebcf1f26b6aa526