[INFO] fetching crate culqi_rust_prueba 1.0.0... [INFO] building culqi_rust_prueba-1.0.0 against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] extracting crate culqi_rust_prueba 1.0.0 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate culqi_rust_prueba 1.0.0 [INFO] finished tweaking crates.io crate culqi_rust_prueba 1.0.0 [INFO] tweaked toml for crates.io crate culqi_rust_prueba 1.0.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate culqi_rust_prueba 1.0.0 on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 269 packages to latest compatible versions [INFO] [stderr] Adding aes v0.7.5 (available: v0.8.4) [INFO] [stderr] Adding aes-gcm v0.9.4 (available: v0.10.3) [INFO] [stderr] Adding base64 v0.13.1 (available: v0.22.1) [INFO] [stderr] Adding base64ct v1.1.1 (available: v1.8.0) [INFO] [stderr] Adding nom v6.1.2 (available: v6.2.2) [INFO] [stderr] Adding pem v1.1.1 (available: v3.0.5) [INFO] [stderr] Adding pkcs8 v0.7.6 (available: v0.10.2) [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.2) [INFO] [stderr] Adding reqwest v0.10.10 (available: v0.12.23) [INFO] [stderr] Adding rsa v0.5.0 (available: v0.9.8) [INFO] [stderr] Adding sha2 v0.9.9 (available: v0.10.9) [INFO] [stderr] Adding subtle v2.4.1 (available: v2.6.1) [INFO] [stderr] Adding x509-parser v0.9.2 (available: v0.18.0) [INFO] [stderr] Adding zeroize v1.4.3 (available: v1.8.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded x509-parser v0.9.2 [INFO] [stderr] Downloaded pem v1.1.1 [INFO] [stderr] Downloaded rusticata-macros v3.2.0 [INFO] [stderr] Downloaded funty v1.1.0 [INFO] [stderr] Downloaded radium v0.5.3 [INFO] [stderr] Downloaded bitvec v0.19.6 [INFO] [stderr] Downloaded nom v6.1.2 [INFO] [stderr] Downloaded ghash v0.4.4 [INFO] [stderr] Downloaded tokio-util v0.3.1 [INFO] [stderr] Downloaded crypto v0.5.1 [INFO] [stderr] Downloaded h2 v0.2.7 [INFO] [stderr] Downloaded aes-gcm v0.9.4 [INFO] [stderr] Downloaded http-body v0.3.1 [INFO] [stderr] Downloaded reqwest v0.10.10 [INFO] [stderr] Downloaded der-parser v5.1.2 [INFO] [stderr] Downloaded oid-registry v0.1.5 [INFO] [stderr] Downloaded num-bigint-dig v0.7.1 [INFO] [stderr] Downloaded rsa v0.5.0 [INFO] [stderr] Downloaded der-oid-macro v0.4.0 [INFO] [stderr] Downloaded wyz v0.2.0 [INFO] [stderr] Downloaded socket2 v0.3.19 [INFO] [stderr] Downloaded hyper-tls v0.4.3 [INFO] [stderr] Downloaded tokio v0.2.25 [INFO] [stderr] Downloaded tokio-tls v0.3.1 [INFO] [stderr] Downloaded base64ct v1.1.1 [INFO] [stderr] Downloaded pkcs1 v0.2.4 [INFO] [stderr] Downloaded crypto-bigint v0.2.11 [INFO] [stderr] Downloaded der v0.4.5 [INFO] [stderr] Downloaded zeroize v1.4.3 [INFO] [stderr] Downloaded lexical-core v0.7.6 [INFO] [stderr] Downloaded hyper v0.13.10 [INFO] [stderr] Downloaded httpdate v0.3.2 [INFO] [stderr] Downloaded pin-project-lite v0.1.12 [INFO] [stderr] Downloaded pem-rfc7468 v0.2.4 [INFO] [stderr] Downloaded const-oid v0.6.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ef1eec305eb34d23d41a9fa5a02b854d86ab5475324e98f2c471d7d2ed1c1c42 [INFO] running `Command { std: "docker" "start" "-a" "ef1eec305eb34d23d41a9fa5a02b854d86ab5475324e98f2c471d7d2ed1c1c42", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ef1eec305eb34d23d41a9fa5a02b854d86ab5475324e98f2c471d7d2ed1c1c42", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef1eec305eb34d23d41a9fa5a02b854d86ab5475324e98f2c471d7d2ed1c1c42", kill_on_drop: false }` [INFO] [stdout] ef1eec305eb34d23d41a9fa5a02b854d86ab5475324e98f2c471d7d2ed1c1c42 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 952d6239ebf468605cd4a808f6594d7c8e96e03e4d7fa4675db89f8d2bf4ef5e [INFO] running `Command { std: "docker" "start" "-a" "952d6239ebf468605cd4a808f6594d7c8e96e03e4d7fa4675db89f8d2bf4ef5e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling radium v0.5.3 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling libnghttp2-sys v0.1.11+1.64.0 [INFO] [stderr] Compiling libz-sys v1.1.22 [INFO] [stderr] Compiling nom v6.1.2 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling wyz v0.2.0 [INFO] [stderr] Compiling funty v1.1.0 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling curl-sys v0.4.83+curl-8.15.0 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling const-oid v0.6.2 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Compiling base64ct v1.1.1 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling pem-rfc7468 v0.2.4 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling bitvec v0.19.6 [INFO] [stderr] Compiling cipher v0.3.0 [INFO] [stderr] Compiling universal-hash v0.4.1 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling num-bigint-dig v0.7.1 [INFO] [stderr] Compiling httpdate v0.3.2 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling curl v0.4.49 [INFO] [stderr] Compiling oid-registry v0.1.5 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling polyval v0.5.3 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Compiling waker-fn v1.2.0 [INFO] [stderr] Compiling isahc v1.7.2 [INFO] [stderr] Compiling ghash v0.4.4 [INFO] [stderr] Compiling sluice v0.5.5 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling futures-lite v1.13.0 [INFO] [stderr] Compiling ctr v0.8.0 [INFO] [stderr] Compiling aes v0.7.5 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling net2 v0.2.39 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling crypto-bigint v0.2.11 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling regex-automata v0.4.11 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling aead v0.4.3 [INFO] [stderr] Compiling castaway v0.1.2 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling aes-gcm v0.9.4 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling der v0.4.5 [INFO] [stderr] Compiling crypto v0.5.1 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling pem v1.1.1 [INFO] [stderr] Compiling spki v0.4.1 [INFO] [stderr] Compiling regex v1.11.3 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling der-oid-macro v0.4.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling rusticata-macros v3.2.0 [INFO] [stderr] Compiling der-parser v5.1.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling zeroize v1.4.3 [INFO] [stderr] Compiling pkcs1 v0.2.4 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling pkcs8 v0.7.6 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling x509-parser v0.9.2 [INFO] [stderr] Compiling rsa v0.5.0 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling tokio-tls v0.3.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling hyper v0.13.10 [INFO] [stderr] Compiling hyper-tls v0.4.3 [INFO] [stderr] Compiling reqwest v0.10.10 [INFO] [stderr] Compiling culqi_rust_prueba v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/Encrypt.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Aead` [INFO] [stdout] --> src/lib.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | use aes_gcm::aead::{Aead}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/lib.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | use rsa::{PublicKey}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `isahc::prelude::*` [INFO] [stdout] --> src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use isahc::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rsa::pkcs8::der::Decodable` [INFO] [stdout] --> src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use rsa::pkcs8::der::Decodable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rsa::pkcs1::FromRsaPublicKey` [INFO] [stdout] --> src/lib.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use rsa::pkcs1::FromRsaPublicKey; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/Encrypt.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | use rsa::{PublicKey}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Encrypt.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut plaintext = serde_json::to_string(&json_data)?.as_bytes().to_vec(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Encrypt` should have a snake case name [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod Encrypt; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `encrypt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `skey` should have an upper case name [INFO] [stdout] --> src/lib.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const skey : &'static str = "sk_test_1573b0e8079863ff"; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 20 - const skey : &'static str = "sk_test_1573b0e8079863ff"; [INFO] [stdout] 20 + const SKEY : &'static str = "sk_test_1573b0e8079863ff"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `pkey` should have an upper case name [INFO] [stdout] --> src/lib.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const pkey : &'static str = "pk_test_90667d0a57d45c48"; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 21 - const pkey : &'static str = "pk_test_90667d0a57d45c48"; [INFO] [stdout] 21 + const PKEY : &'static str = "pk_test_90667d0a57d45c48"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rsaid` should have an upper case name [INFO] [stdout] --> src/lib.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const rsaid : &'static str = "508fc232-0a9d-4fc0-a192-364a0b782b89"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 22 - const rsaid : &'static str = "508fc232-0a9d-4fc0-a192-364a0b782b89"; [INFO] [stdout] 22 + const RSAID : &'static str = "508fc232-0a9d-4fc0-a192-364a0b782b89"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createEncrypt` should have a snake case name [INFO] [stdout] --> src/lib.rs:150:8 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn createEncrypt( [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `create_encrypt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `publicKey` should have a snake case name [INFO] [stdout] --> src/Encrypt.rs:110:28 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn encrypt(data: &str, publicKey: &str, is_json: bool) -> Result, MyError> { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 25s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v6.1.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "952d6239ebf468605cd4a808f6594d7c8e96e03e4d7fa4675db89f8d2bf4ef5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "952d6239ebf468605cd4a808f6594d7c8e96e03e4d7fa4675db89f8d2bf4ef5e", kill_on_drop: false }` [INFO] [stdout] 952d6239ebf468605cd4a808f6594d7c8e96e03e4d7fa4675db89f8d2bf4ef5e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e1d4faf8779f1b087a3903ca32c033d929ee5d9811b2ed7668d2ac4bf12af1e4 [INFO] running `Command { std: "docker" "start" "-a" "e1d4faf8779f1b087a3903ca32c033d929ee5d9811b2ed7668d2ac4bf12af1e4", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/Encrypt.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Aead` [INFO] [stdout] --> src/lib.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | use aes_gcm::aead::{Aead}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/lib.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | use rsa::{PublicKey}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `isahc::prelude::*` [INFO] [stdout] --> src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use isahc::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rsa::pkcs8::der::Decodable` [INFO] [stdout] --> src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use rsa::pkcs8::der::Decodable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rsa::pkcs1::FromRsaPublicKey` [INFO] [stdout] --> src/lib.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use rsa::pkcs1::FromRsaPublicKey; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/Encrypt.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | use rsa::{PublicKey}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Encrypt.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut plaintext = serde_json::to_string(&json_data)?.as_bytes().to_vec(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Encrypt` should have a snake case name [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod Encrypt; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `encrypt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `skey` should have an upper case name [INFO] [stdout] --> src/lib.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const skey : &'static str = "sk_test_1573b0e8079863ff"; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 20 - const skey : &'static str = "sk_test_1573b0e8079863ff"; [INFO] [stdout] 20 + const SKEY : &'static str = "sk_test_1573b0e8079863ff"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `pkey` should have an upper case name [INFO] [stdout] --> src/lib.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const pkey : &'static str = "pk_test_90667d0a57d45c48"; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 21 - const pkey : &'static str = "pk_test_90667d0a57d45c48"; [INFO] [stdout] 21 + const PKEY : &'static str = "pk_test_90667d0a57d45c48"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rsaid` should have an upper case name [INFO] [stdout] --> src/lib.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const rsaid : &'static str = "508fc232-0a9d-4fc0-a192-364a0b782b89"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 22 - const rsaid : &'static str = "508fc232-0a9d-4fc0-a192-364a0b782b89"; [INFO] [stdout] 22 + const RSAID : &'static str = "508fc232-0a9d-4fc0-a192-364a0b782b89"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createEncrypt` should have a snake case name [INFO] [stdout] --> src/lib.rs:150:8 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn createEncrypt( [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `create_encrypt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `publicKey` should have a snake case name [INFO] [stdout] --> src/Encrypt.rs:110:28 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn encrypt(data: &str, publicKey: &str, is_json: bool) -> Result, MyError> { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling culqi_rust_prueba v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/Encrypt.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Aead` [INFO] [stdout] --> src/lib.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | use aes_gcm::aead::{Aead}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/lib.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | use rsa::{PublicKey}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `isahc::prelude::*` [INFO] [stdout] --> src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use isahc::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rsa::pkcs8::der::Decodable` [INFO] [stdout] --> src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use rsa::pkcs8::der::Decodable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rsa::pkcs1::FromRsaPublicKey` [INFO] [stdout] --> src/lib.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use rsa::pkcs1::FromRsaPublicKey; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/Encrypt.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | use rsa::{PublicKey}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Encrypt.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut plaintext = serde_json::to_string(&json_data)?.as_bytes().to_vec(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Encrypt` should have a snake case name [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod Encrypt; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `encrypt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `skey` should have an upper case name [INFO] [stdout] --> src/lib.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const skey : &'static str = "sk_test_1573b0e8079863ff"; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 20 - const skey : &'static str = "sk_test_1573b0e8079863ff"; [INFO] [stdout] 20 + const SKEY : &'static str = "sk_test_1573b0e8079863ff"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `pkey` should have an upper case name [INFO] [stdout] --> src/lib.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const pkey : &'static str = "pk_test_90667d0a57d45c48"; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 21 - const pkey : &'static str = "pk_test_90667d0a57d45c48"; [INFO] [stdout] 21 + const PKEY : &'static str = "pk_test_90667d0a57d45c48"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rsaid` should have an upper case name [INFO] [stdout] --> src/lib.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const rsaid : &'static str = "508fc232-0a9d-4fc0-a192-364a0b782b89"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 22 - const rsaid : &'static str = "508fc232-0a9d-4fc0-a192-364a0b782b89"; [INFO] [stdout] 22 + const RSAID : &'static str = "508fc232-0a9d-4fc0-a192-364a0b782b89"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createEncrypt` should have a snake case name [INFO] [stdout] --> src/lib.rs:150:8 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn createEncrypt( [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `create_encrypt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `publicKey` should have a snake case name [INFO] [stdout] --> src/Encrypt.rs:110:28 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn encrypt(data: &str, publicKey: &str, is_json: bool) -> Result, MyError> { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_tokenEncrypt` should have a snake case name [INFO] [stdout] --> src/lib.rs:332:8 [INFO] [stdout] | [INFO] [stdout] 332 | fn test_tokenEncrypt() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_token_encrypt` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.13s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v6.1.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "e1d4faf8779f1b087a3903ca32c033d929ee5d9811b2ed7668d2ac4bf12af1e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1d4faf8779f1b087a3903ca32c033d929ee5d9811b2ed7668d2ac4bf12af1e4", kill_on_drop: false }` [INFO] [stdout] e1d4faf8779f1b087a3903ca32c033d929ee5d9811b2ed7668d2ac4bf12af1e4