[INFO] cloning repository https://github.com/yury-miguel/aprendizado_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yury-miguel/aprendizado_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyury-miguel%2Faprendizado_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyury-miguel%2Faprendizado_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f581cc5856b83394acb5fcf38e05f15be3b08e2e [INFO] building yury-miguel/aprendizado_rust against master#44f415c1d617ebc7b931a243b7b321ef8a6ca47c for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyury-miguel%2Faprendizado_rust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yury-miguel/aprendizado_rust on toolchain 44f415c1d617ebc7b931a243b7b321ef8a6ca47c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/yury-miguel/aprendizado_rust [INFO] finished tweaking git repo https://github.com/yury-miguel/aprendizado_rust [INFO] tweaked toml for git repo https://github.com/yury-miguel/aprendizado_rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/yury-miguel/aprendizado_rust 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" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 763d3d5ddb6e83bd443f685d79d769fcdafe4173529288bdd97c8ff0bef50497 [INFO] running `Command { std: "docker" "start" "-a" "763d3d5ddb6e83bd443f685d79d769fcdafe4173529288bdd97c8ff0bef50497", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "763d3d5ddb6e83bd443f685d79d769fcdafe4173529288bdd97c8ff0bef50497", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "763d3d5ddb6e83bd443f685d79d769fcdafe4173529288bdd97c8ff0bef50497", kill_on_drop: false }` [INFO] [stdout] 763d3d5ddb6e83bd443f685d79d769fcdafe4173529288bdd97c8ff0bef50497 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 57b70593f7b70991bc3bc11f122265579e1c34def55cd25e960c43f9561a65ed [INFO] running `Command { std: "docker" "start" "-a" "57b70593f7b70991bc3bc11f122265579e1c34def55cd25e960c43f9561a65ed", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling rust_aprendizado v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `alloc::Layout` [INFO] [stdout] --> src/exercicios/enum_forma.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{alloc::Layout, f64::consts::PI}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Forma_Circular` should have an upper camel case name [INFO] [stdout] --> src/exercicios/forma_generica.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Forma_Circular { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `FormaCircular` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Forma_Retangular` should have an upper camel case name [INFO] [stdout] --> src/exercicios/forma_generica.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Forma_Retangular { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `FormaRetangular` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `serde_json` in `std` [INFO] [stdout] --> src/projetos/leitura_json.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | Error(#[from] std::serde_json::Error), [INFO] [stdout] | ^^^^^^^^^^ could not find `serde_json` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::Layout` [INFO] [stdout] --> src/exercicios/enum_forma.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{alloc::Layout, f64::consts::PI}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Forma_Circular` should have an upper camel case name [INFO] [stdout] --> src/exercicios/forma_generica.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Forma_Circular { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `FormaCircular` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Forma_Retangular` should have an upper camel case name [INFO] [stdout] --> src/exercicios/forma_generica.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Forma_Retangular { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `FormaRetangular` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::pin` [INFO] [stdout] --> src/estudos/pattern_matching.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::pin; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `erros` should have an upper camel case name [INFO] [stdout] --> src/estudos/result_erro.rs:102:6 [INFO] [stdout] | [INFO] [stdout] 102 | enum erros { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Erros` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::btree_set::Intersection` and `fmt::format` [INFO] [stdout] --> src/estudos/traits_generics_traitbounds.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | use std::{collections::btree_set::Intersection, fmt::format}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/projetos/leitura_json.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/estudos/result_erro.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 37 | panic!("Algo deu muito errado"); [INFO] [stdout] | ------------------------------- any code following this expression is unreachable [INFO] [stdout] 38 | [INFO] [stdout] 39 | print!("Depois do panic!") // Não será executado [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `print` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arquivo` [INFO] [stdout] --> src/estudos/result_erro.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | Ok(arquivo) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arquivo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arquivo` [INFO] [stdout] --> src/estudos/result_erro.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | let arquivo = File::open("arquivos/teste.txt").unwrap_or_else(|erro| { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arquivo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_aprendizado` (bin "rust_aprendizado") due to 1 previous error; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "57b70593f7b70991bc3bc11f122265579e1c34def55cd25e960c43f9561a65ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57b70593f7b70991bc3bc11f122265579e1c34def55cd25e960c43f9561a65ed", kill_on_drop: false }` [INFO] [stdout] 57b70593f7b70991bc3bc11f122265579e1c34def55cd25e960c43f9561a65ed