[INFO] cloning repository https://github.com/Mxrie2001/Mini-Quiz [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Mxrie2001/Mini-Quiz" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMxrie2001%2FMini-Quiz", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMxrie2001%2FMini-Quiz'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 58ea0a5459d8c77ebdf57a4c417b892dc961529f [INFO] checking Mxrie2001/Mini-Quiz against master#b3bd7058c139e71bae0862ef8f8ac936208873e9 for pr-123752 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMxrie2001%2FMini-Quiz" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Mxrie2001/Mini-Quiz on toolchain b3bd7058c139e71bae0862ef8f8ac936208873e9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b3bd7058c139e71bae0862ef8f8ac936208873e9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Mxrie2001/Mini-Quiz [INFO] finished tweaking git repo https://github.com/Mxrie2001/Mini-Quiz [INFO] tweaked toml for git repo https://github.com/Mxrie2001/Mini-Quiz written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Mxrie2001/Mini-Quiz already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b3bd7058c139e71bae0862ef8f8ac936208873e9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking Mxrie2001/Mini-Quiz against try#57fe1b734d9ff1c8a92bda60b85506b9648158d3 for pr-123752 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMxrie2001%2FMini-Quiz" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Mxrie2001/Mini-Quiz on toolchain 57fe1b734d9ff1c8a92bda60b85506b9648158d3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+57fe1b734d9ff1c8a92bda60b85506b9648158d3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Mxrie2001/Mini-Quiz [INFO] finished tweaking git repo https://github.com/Mxrie2001/Mini-Quiz [INFO] tweaked toml for git repo https://github.com/Mxrie2001/Mini-Quiz written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Mxrie2001/Mini-Quiz already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+57fe1b734d9ff1c8a92bda60b85506b9648158d3" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.2.123 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+57fe1b734d9ff1c8a92bda60b85506b9648158d3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6ff7295aa21b09480ac0063ad51e439d9f597493f8efabfce9a8c75018a629b8 [INFO] running `Command { std: "docker" "start" "-a" "6ff7295aa21b09480ac0063ad51e439d9f597493f8efabfce9a8c75018a629b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6ff7295aa21b09480ac0063ad51e439d9f597493f8efabfce9a8c75018a629b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6ff7295aa21b09480ac0063ad51e439d9f597493f8efabfce9a8c75018a629b8", kill_on_drop: false }` [INFO] [stdout] 6ff7295aa21b09480ac0063ad51e439d9f597493f8efabfce9a8c75018a629b8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+57fe1b734d9ff1c8a92bda60b85506b9648158d3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b5e52c77ba37286d9eca3657bbf6263188c0c64b65dce5df8ee28e15f7967672 [INFO] running `Command { std: "docker" "start" "-a" "b5e52c77ba37286d9eca3657bbf6263188c0c64b65dce5df8ee28e15f7967672", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.123 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking version-compare v0.1.0 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking ProjetRustS4 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | ///Presentation à l'utilisateur lors du ```cargo run``` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | ///Declaration des differentes matieres au choix de l'utilisateur [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 52 | let mut matieres = ["Matematiques", "Histoire", "Musique", "Informatique"]; [INFO] [stdout] | --------------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | /// Declarations des questions, reponses etbonne réponses aux differents questionnaires [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 55 | let mut questionHistoire = ["Quelle est la date de la fin de la Première Guerre mondiale ?", "Quand à été mis à disposition des femmes la première pilule contraceptive ?", "De quand date la fondation de la Chine communiste ?... [INFO] [stdout] | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | /// Gestion de l'input de l'utilisateur [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 80 | let mut inputMatiere = String::new(); [INFO] [stdout] | ------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | /// Gestion du choix de la matiere [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 85 | / match matiereChoisie{ [INFO] [stdout] 86 | | 0=>questionnaire(questionMaths, reponseMaths, bonnesReponsesMaths), [INFO] [stdout] 87 | | 1=>questionnaire(questionHistoire,reponseHistoire,bonnesReponsesHistoire), [INFO] [stdout] 88 | | 2=>questionnaire(questionMusique, reponseMusique, bonnesReponsesMusique), [INFO] [stdout] ... | [INFO] [stdout] 92 | | [INFO] [stdout] 93 | | } [INFO] [stdout] | |___________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | /// Gestion des erreurs de l'input [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 91 | / _=>println!("La matiere que vous avez choisit n'existe pas !"), [INFO] [stdout] 92 | | [INFO] [stdout] 93 | | } [INFO] [stdout] ... | [INFO] [stdout] 143| | println!("la bonne réponse était: {} ", bonnesReponses); [INFO] [stdout] 144| | }else { [INFO] [stdout] | |_____- rustdoc does not generate documentation for match arms [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 152 | /// Affichage du score à l'utilisateur [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | /// Declaration d'un tableau de stokage des differents indices deja passés, chaques indices est ajouté au tableau a chaque tour de bou... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 101 | let mut arr = [5;3]; [INFO] [stdout] | -------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | /// Declaration du score de l'utilisateur initialisé à 0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 103 | let mut score=0; [INFO] [stdout] | ---------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | /// Affichage à l'utilisateur des questions [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | /// Lancement des 3 questions de manieres aléatoire [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 106 | / for j in 0..3{ [INFO] [stdout] 107 | | let mut nombre_aleatoire = rand::thread_rng().gen_range(0..3); [INFO] [stdout] 108 | | [INFO] [stdout] 109 | | /// Gestion de la non repetition des questions grace au tableau de stockage [INFO] [stdout] ... | [INFO] [stdout] 150 | | [INFO] [stdout] 151 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | /// Gestion de la non repetition des questions grace au tableau de stockage [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 110 | / while nombre_aleatoire == arr[0] || nombre_aleatoire == arr[1] || nombre_aleatoire == arr[2]{ [INFO] [stdout] 111 | | nombre_aleatoire = rand::thread_rng().gen_range(0..3); [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | /// Declaration des variables question, reponse et bonne reponses suite au nombre aléatoire défini [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 114 | let question = Q[nombre_aleatoire]; [INFO] [stdout] | ----------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | /// Affichage des differentes reponses possible à l'utilisateur [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 123 | / for i in 0..3 { [INFO] [stdout] 124 | | println!("{} : {} ",i, reponse[i]); [INFO] [stdout] 125 | | } [INFO] [stdout] | |_____________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | /// Gestion de l'input del'utilisateur [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 131 | let mut input = String::new(); [INFO] [stdout] | ------------------------------ rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 135 | /// Gestion de la réponse donnée par l'utilisateur, modification du score en fonction et affichage de la bonne réponse si l'utilisateur c'est tro... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 136 | [INFO] [stdout] 137 | / if n == bonnesReponses && n>=0 && n<3{ [INFO] [stdout] 138 | | println!("Bonne réponse !"); [INFO] [stdout] 139 | | score += 1; [INFO] [stdout] ... | [INFO] [stdout] 146 | | println!("Votre réponse n'existe pas :( "); [INFO] [stdout] 147 | | } [INFO] [stdout] | |_____________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 145 | /// Gestion des erreurs de l'input [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | ///Presentation à l'utilisateur lors du ```cargo run``` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | ///Declaration des differentes matieres au choix de l'utilisateur [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 52 | let mut matieres = ["Matematiques", "Histoire", "Musique", "Informatique"]; [INFO] [stdout] | --------------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | /// Declarations des questions, reponses etbonne réponses aux differents questionnaires [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 55 | let mut questionHistoire = ["Quelle est la date de la fin de la Première Guerre mondiale ?", "Quand à été mis à disposition des femmes la première pilule contraceptive ?", "De quand date la fondation de la Chine communiste ?... [INFO] [stdout] | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | /// Gestion de l'input de l'utilisateur [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 80 | let mut inputMatiere = String::new(); [INFO] [stdout] | ------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | /// Gestion du choix de la matiere [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 85 | / match matiereChoisie{ [INFO] [stdout] 86 | | 0=>questionnaire(questionMaths, reponseMaths, bonnesReponsesMaths), [INFO] [stdout] 87 | | 1=>questionnaire(questionHistoire,reponseHistoire,bonnesReponsesHistoire), [INFO] [stdout] 88 | | 2=>questionnaire(questionMusique, reponseMusique, bonnesReponsesMusique), [INFO] [stdout] ... | [INFO] [stdout] 92 | | [INFO] [stdout] 93 | | } [INFO] [stdout] | |___________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | /// Gestion des erreurs de l'input [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 91 | / _=>println!("La matiere que vous avez choisit n'existe pas !"), [INFO] [stdout] 92 | | [INFO] [stdout] 93 | | } [INFO] [stdout] ... | [INFO] [stdout] 143| | println!("la bonne réponse était: {} ", bonnesReponses); [INFO] [stdout] 144| | }else { [INFO] [stdout] | |_____- rustdoc does not generate documentation for match arms [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 152 | /// Affichage du score à l'utilisateur [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | /// Declaration d'un tableau de stokage des differents indices deja passés, chaques indices est ajouté au tableau a chaque tour de bou... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 101 | let mut arr = [5;3]; [INFO] [stdout] | -------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | /// Declaration du score de l'utilisateur initialisé à 0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 103 | let mut score=0; [INFO] [stdout] | ---------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | /// Affichage à l'utilisateur des questions [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | /// Lancement des 3 questions de manieres aléatoire [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 106 | / for j in 0..3{ [INFO] [stdout] 107 | | let mut nombre_aleatoire = rand::thread_rng().gen_range(0..3); [INFO] [stdout] 108 | | [INFO] [stdout] 109 | | /// Gestion de la non repetition des questions grace au tableau de stockage [INFO] [stdout] ... | [INFO] [stdout] 150 | | [INFO] [stdout] 151 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | /// Gestion de la non repetition des questions grace au tableau de stockage [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 110 | / while nombre_aleatoire == arr[0] || nombre_aleatoire == arr[1] || nombre_aleatoire == arr[2]{ [INFO] [stdout] 111 | | nombre_aleatoire = rand::thread_rng().gen_range(0..3); [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | /// Declaration des variables question, reponse et bonne reponses suite au nombre aléatoire défini [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 114 | let question = Q[nombre_aleatoire]; [INFO] [stdout] | ----------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | /// Affichage des differentes reponses possible à l'utilisateur [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 123 | / for i in 0..3 { [INFO] [stdout] 124 | | println!("{} : {} ",i, reponse[i]); [INFO] [stdout] 125 | | } [INFO] [stdout] | |_____________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | /// Gestion de l'input del'utilisateur [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 131 | let mut input = String::new(); [INFO] [stdout] | ------------------------------ rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 135 | /// Gestion de la réponse donnée par l'utilisateur, modification du score en fonction et affichage de la bonne réponse si l'utilisateur c'est tro... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 136 | [INFO] [stdout] 137 | / if n == bonnesReponses && n>=0 && n<3{ [INFO] [stdout] 138 | | println!("Bonne réponse !"); [INFO] [stdout] 139 | | score += 1; [INFO] [stdout] ... | [INFO] [stdout] 146 | | println!("Votre réponse n'existe pas :( "); [INFO] [stdout] 147 | | } [INFO] [stdout] | |_____________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 145 | /// Gestion des erreurs de l'input [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let mut matieres = ["Matematiques", "Histoire", "Musique", "Informatique"]; [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/main.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let mut questionHistoire = ["Quelle est la date de la fin de la Première Guerre mondiale ?", "Quand à été mis à disposition des femme... [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/main.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let mut reponseHistoire = [["1914", "1918", "1917"], ["1960","1970","1950"], ["1920","1950", "1949"]]; [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/main.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let mut bonnesReponsesHistoire=[1,0,2]; [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/main.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let mut questionMusique = ["Quel groupe pop américain des années 1960 a créé le «son surfin» ?", "Quel chanteur était connu entre aut... [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/main.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let mut reponseMusique = [["The Jackson 5", "The Beatles", "Beach Boys"], ["Freddie Mercury","Michael Jackson","Lou Bega"], ["Justin ... [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/main.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let mut bonnesReponsesMusique=[2,1,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/main.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | let mut questionMaths = ["A quel nombre décimal est égal à 3/6 + 6/3 ?", "Lequel de ces angles est plus petit qu'un angle droit ?", "... [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/main.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let mut reponseMaths = [["2.5", "3.5", "4.5"], ["Un angle obtus","Un angle aigu","Un angle plat"], ["2 345","234", "23"]]; [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/main.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let mut bonnesReponsesMaths=[0,1,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/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut questionInfo = ["Lequel des langages informatiques suivants est utilisé pour l'intelligence artificielle ?", "Comment se nomm... [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/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let mut reponseInfo = [["C", "PROLOG", "FORTRAN"], ["CPU","Unité arithmétique et logique – ALU","Mémoire"], ["American security code ... [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/main.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let mut bonnesReponsesInfo=[1,0,2]; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `questionHistoire` should have a snake case name [INFO] [stdout] --> src/main.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut questionHistoire = ["Quelle est la date de la fin de la Première Guerre mondiale ?", "Quand à été mis à disposition des femme... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `question_histoire` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `reponseHistoire` should have a snake case name [INFO] [stdout] --> src/main.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let mut reponseHistoire = [["1914", "1918", "1917"], ["1960","1970","1950"], ["1920","1950", "1949"]]; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `reponse_histoire` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bonnesReponsesHistoire` should have a snake case name [INFO] [stdout] --> src/main.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let mut bonnesReponsesHistoire=[1,0,2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bonnes_reponses_histoire` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `questionMusique` should have a snake case name [INFO] [stdout] --> src/main.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let mut questionMusique = ["Quel groupe pop américain des années 1960 a créé le «son surfin» ?", "Quel chanteur était connu entre aut... [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `question_musique` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `reponseMusique` should have a snake case name [INFO] [stdout] --> src/main.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let mut reponseMusique = [["The Jackson 5", "The Beatles", "Beach Boys"], ["Freddie Mercury","Michael Jackson","Lou Bega"], ["Justin ... [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `reponse_musique` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bonnesReponsesMusique` should have a snake case name [INFO] [stdout] --> src/main.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let mut bonnesReponsesMusique=[2,1,0]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bonnes_reponses_musique` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `questionMaths` should have a snake case name [INFO] [stdout] --> src/main.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let mut questionMaths = ["A quel nombre décimal est égal à 3/6 + 6/3 ?", "Lequel de ces angles est plus petit qu'un angle droit ?", "... [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `question_maths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `reponseMaths` should have a snake case name [INFO] [stdout] --> src/main.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let mut reponseMaths = [["2.5", "3.5", "4.5"], ["Un angle obtus","Un angle aigu","Un angle plat"], ["2 345","234", "23"]]; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `reponse_maths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bonnesReponsesMaths` should have a snake case name [INFO] [stdout] --> src/main.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let mut bonnesReponsesMaths=[0,1,0]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bonnes_reponses_maths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `questionInfo` should have a snake case name [INFO] [stdout] --> src/main.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let mut questionInfo = ["Lequel des langages informatiques suivants est utilisé pour l'intelligence artificielle ?", "Comment se nomm... [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `question_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `reponseInfo` should have a snake case name [INFO] [stdout] --> src/main.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | let mut reponseInfo = [["C", "PROLOG", "FORTRAN"], ["CPU","Unité arithmétique et logique – ALU","Mémoire"], ["American security code ... [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `reponse_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bonnesReponsesInfo` should have a snake case name [INFO] [stdout] --> src/main.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let mut bonnesReponsesInfo=[1,0,2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bonnes_reponses_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `inputMatiere` should have a snake case name [INFO] [stdout] --> src/main.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let mut inputMatiere = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `input_matiere` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `matiereChoisie` should have a snake case name [INFO] [stdout] --> src/main.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let matiereChoisie: i32 = inputMatiere.trim().parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `matiere_choisie` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Q` should have a snake case name [INFO] [stdout] --> src/main.rs:99:18 [INFO] [stdout] | [INFO] [stdout] 99 | fn questionnaire(Q:[&str;3], R:[[&str;3];3],BRep:[i32;3]) { [INFO] [stdout] | ^ help: convert the identifier to snake case: `q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `R` should have a snake case name [INFO] [stdout] --> src/main.rs:99:30 [INFO] [stdout] | [INFO] [stdout] 99 | fn questionnaire(Q:[&str;3], R:[[&str;3];3],BRep:[i32;3]) { [INFO] [stdout] | ^ help: convert the identifier to snake case: `r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BRep` should have a snake case name [INFO] [stdout] --> src/main.rs:99:45 [INFO] [stdout] | [INFO] [stdout] 99 | fn questionnaire(Q:[&str;3], R:[[&str;3];3],BRep:[i32;3]) { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `brep` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bonnesReponses` should have a snake case name [INFO] [stdout] --> src/main.rs:116:17 [INFO] [stdout] | [INFO] [stdout] 116 | let bonnesReponses=BRep[nombre_aleatoire]; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bonnes_reponses` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | for i in 0..3{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let mut matieres = ["Matematiques", "Histoire", "Musique", "Informatique"]; [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/main.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let mut questionHistoire = ["Quelle est la date de la fin de la Première Guerre mondiale ?", "Quand à été mis à disposition des femme... [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/main.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let mut reponseHistoire = [["1914", "1918", "1917"], ["1960","1970","1950"], ["1920","1950", "1949"]]; [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/main.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let mut bonnesReponsesHistoire=[1,0,2]; [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/main.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let mut questionMusique = ["Quel groupe pop américain des années 1960 a créé le «son surfin» ?", "Quel chanteur était connu entre aut... [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/main.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let mut reponseMusique = [["The Jackson 5", "The Beatles", "Beach Boys"], ["Freddie Mercury","Michael Jackson","Lou Bega"], ["Justin ... [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/main.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let mut bonnesReponsesMusique=[2,1,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/main.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | let mut questionMaths = ["A quel nombre décimal est égal à 3/6 + 6/3 ?", "Lequel de ces angles est plus petit qu'un angle droit ?", "... [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/main.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let mut reponseMaths = [["2.5", "3.5", "4.5"], ["Un angle obtus","Un angle aigu","Un angle plat"], ["2 345","234", "23"]]; [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/main.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let mut bonnesReponsesMaths=[0,1,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/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut questionInfo = ["Lequel des langages informatiques suivants est utilisé pour l'intelligence artificielle ?", "Comment se nomm... [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/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let mut reponseInfo = [["C", "PROLOG", "FORTRAN"], ["CPU","Unité arithmétique et logique – ALU","Mémoire"], ["American security code ... [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/main.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let mut bonnesReponsesInfo=[1,0,2]; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `questionHistoire` should have a snake case name [INFO] [stdout] --> src/main.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut questionHistoire = ["Quelle est la date de la fin de la Première Guerre mondiale ?", "Quand à été mis à disposition des femme... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `question_histoire` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `reponseHistoire` should have a snake case name [INFO] [stdout] --> src/main.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let mut reponseHistoire = [["1914", "1918", "1917"], ["1960","1970","1950"], ["1920","1950", "1949"]]; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `reponse_histoire` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bonnesReponsesHistoire` should have a snake case name [INFO] [stdout] --> src/main.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let mut bonnesReponsesHistoire=[1,0,2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bonnes_reponses_histoire` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `questionMusique` should have a snake case name [INFO] [stdout] --> src/main.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let mut questionMusique = ["Quel groupe pop américain des années 1960 a créé le «son surfin» ?", "Quel chanteur était connu entre aut... [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `question_musique` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `reponseMusique` should have a snake case name [INFO] [stdout] --> src/main.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let mut reponseMusique = [["The Jackson 5", "The Beatles", "Beach Boys"], ["Freddie Mercury","Michael Jackson","Lou Bega"], ["Justin ... [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `reponse_musique` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bonnesReponsesMusique` should have a snake case name [INFO] [stdout] --> src/main.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let mut bonnesReponsesMusique=[2,1,0]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bonnes_reponses_musique` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `questionMaths` should have a snake case name [INFO] [stdout] --> src/main.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let mut questionMaths = ["A quel nombre décimal est égal à 3/6 + 6/3 ?", "Lequel de ces angles est plus petit qu'un angle droit ?", "... [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `question_maths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `reponseMaths` should have a snake case name [INFO] [stdout] --> src/main.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let mut reponseMaths = [["2.5", "3.5", "4.5"], ["Un angle obtus","Un angle aigu","Un angle plat"], ["2 345","234", "23"]]; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `reponse_maths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bonnesReponsesMaths` should have a snake case name [INFO] [stdout] --> src/main.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let mut bonnesReponsesMaths=[0,1,0]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bonnes_reponses_maths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `questionInfo` should have a snake case name [INFO] [stdout] --> src/main.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let mut questionInfo = ["Lequel des langages informatiques suivants est utilisé pour l'intelligence artificielle ?", "Comment se nomm... [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `question_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `reponseInfo` should have a snake case name [INFO] [stdout] --> src/main.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | let mut reponseInfo = [["C", "PROLOG", "FORTRAN"], ["CPU","Unité arithmétique et logique – ALU","Mémoire"], ["American security code ... [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `reponse_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bonnesReponsesInfo` should have a snake case name [INFO] [stdout] --> src/main.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let mut bonnesReponsesInfo=[1,0,2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bonnes_reponses_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `inputMatiere` should have a snake case name [INFO] [stdout] --> src/main.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let mut inputMatiere = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `input_matiere` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `matiereChoisie` should have a snake case name [INFO] [stdout] --> src/main.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let matiereChoisie: i32 = inputMatiere.trim().parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `matiere_choisie` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Q` should have a snake case name [INFO] [stdout] --> src/main.rs:99:18 [INFO] [stdout] | [INFO] [stdout] 99 | fn questionnaire(Q:[&str;3], R:[[&str;3];3],BRep:[i32;3]) { [INFO] [stdout] | ^ help: convert the identifier to snake case: `q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `R` should have a snake case name [INFO] [stdout] --> src/main.rs:99:30 [INFO] [stdout] | [INFO] [stdout] 99 | fn questionnaire(Q:[&str;3], R:[[&str;3];3],BRep:[i32;3]) { [INFO] [stdout] | ^ help: convert the identifier to snake case: `r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BRep` should have a snake case name [INFO] [stdout] --> src/main.rs:99:45 [INFO] [stdout] | [INFO] [stdout] 99 | fn questionnaire(Q:[&str;3], R:[[&str;3];3],BRep:[i32;3]) { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `brep` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bonnesReponses` should have a snake case name [INFO] [stdout] --> src/main.rs:116:17 [INFO] [stdout] | [INFO] [stdout] 116 | let bonnesReponses=BRep[nombre_aleatoire]; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bonnes_reponses` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.65s [INFO] running `Command { std: "docker" "inspect" "b5e52c77ba37286d9eca3657bbf6263188c0c64b65dce5df8ee28e15f7967672", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5e52c77ba37286d9eca3657bbf6263188c0c64b65dce5df8ee28e15f7967672", kill_on_drop: false }` [INFO] [stdout] b5e52c77ba37286d9eca3657bbf6263188c0c64b65dce5df8ee28e15f7967672