[INFO] updating cached repository https://github.com/gfreezy/APNS-in-Rust [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] ae1aec24ff1757e5bdcc09486902a3483ccb52a4 [INFO] testing gfreezy/APNS-in-Rust against 1.44.0 for beta-1.45-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgfreezy%2FAPNS-in-Rust" "/workspace/builds/worker-1/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gfreezy/APNS-in-Rust on toolchain 1.44.0 [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/gfreezy/APNS-in-Rust [INFO] finished tweaking git repo https://github.com/gfreezy/APNS-in-Rust [INFO] tweaked toml for git repo https://github.com/gfreezy/APNS-in-Rust written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/gfreezy/APNS-in-Rust already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] error: the lock file /workspace/builds/worker-1/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 02b9dc8a82044756d1ccfb0dd3c3342b1d3da66a02af20bcd08ebefc571ed917 [INFO] running `"docker" "start" "-a" "02b9dc8a82044756d1ccfb0dd3c3342b1d3da66a02af20bcd08ebefc571ed917"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling serde v1.0.111 [INFO] [stderr] Compiling openssl v0.10.29 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Compiling num v0.2.1 [INFO] [stderr] Compiling toml v0.5.6 [INFO] [stderr] Compiling apns v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0432]: unresolved import `openssl::ssl::error::SslError` [INFO] [stderr] --> src/connection.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use openssl::ssl::error::SslError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^-------- [INFO] [stderr] | | | [INFO] [stderr] | | help: a similar name exists in the module: `StdError` [INFO] [stderr] | no `SslError` in `ssl::error` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `X509FileType` in `x509` [INFO] [stderr] --> src/config.rs:35:35 [INFO] [stderr] | [INFO] [stderr] 35 | "pem" => openssl::x509::X509FileType::PEM, [INFO] [stderr] | ^^^^^^^^^^^^ could not find `X509FileType` in `x509` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `X509FileType` in `x509` [INFO] [stderr] --> src/config.rs:36:31 [INFO] [stderr] | [INFO] [stderr] 36 | _ => openssl::x509::X509FileType::PEM [INFO] [stderr] | ^^^^^^^^^^^^ could not find `X509FileType` in `x509` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `X509FileType` in `x509` [INFO] [stderr] --> src/config.rs:41:20 [INFO] [stderr] | [INFO] [stderr] 41 | openssl::x509::X509FileType::PEM [INFO] [stderr] | ^^^^^^^^^^^^ could not find `X509FileType` in `x509` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `Parser` in `toml` [INFO] [stderr] --> src/config.rs:70:28 [INFO] [stderr] | [INFO] [stderr] 70 | let mut parser = toml::Parser::new(&config_content); [INFO] [stderr] | ^^^^^^ could not find `Parser` in `toml` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Table` in crate `toml` [INFO] [stderr] --> src/config.rs:10:17 [INFO] [stderr] | [INFO] [stderr] 10 | config: toml::Table, [INFO] [stderr] | ^^^^^ not found in `toml` [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use toml::value::Table; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `X509FileType` in module `openssl::x509` [INFO] [stderr] --> src/config.rs:31:49 [INFO] [stderr] | [INFO] [stderr] 31 | pub fn get_cert_type(&self) -> openssl::x509::X509FileType { [INFO] [stderr] | ^^^^^^^^^^^^ not found in `openssl::x509` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Table` in crate `toml` [INFO] [stderr] --> src/config.rs:63:51 [INFO] [stderr] | [INFO] [stderr] 63 | fn read_config(path: &std::path::Path) -> toml::Table { [INFO] [stderr] | ^^^^^ not found in `toml` [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use toml::value::Table; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `X509FileType` in module `openssl::x509` [INFO] [stderr] --> src/connection.rs:15:29 [INFO] [stderr] | [INFO] [stderr] 15 | cert_type: openssl::x509::X509FileType, [INFO] [stderr] | ^^^^^^^^^^^^ not found in `openssl::x509` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `X509FileType` in module `openssl::x509` [INFO] [stderr] --> src/connection.rs:28:84 [INFO] [stderr] | [INFO] [stderr] 28 | pub fn new(host: String, cert_path: std::path::PathBuf, cert_type: openssl::x509::X509FileType) -> Connection { [INFO] [stderr] | ^^^^^^^^^^^^ not found in `openssl::x509` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `X509FileType` in module `openssl::x509` [INFO] [stderr] --> src/connection.rs:58:80 [INFO] [stderr] | [INFO] [stderr] 58 | fn connect(host: &str, cert_path: &std::path::Path, cert_type: openssl::x509::X509FileType) -> Result, SslError> { [INFO] [stderr] | ^^^^^^^^^^^^ not found in `openssl::x509` [INFO] [stderr] [INFO] [stderr] error[E0603]: module `error` is private [INFO] [stderr] --> src/connection.rs:7:19 [INFO] [stderr] | [INFO] [stderr] 7 | use openssl::ssl::error::SslError; [INFO] [stderr] | ^^^^^ private module [INFO] [stderr] | [INFO] [stderr] note: the module `error` is defined here [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/openssl-0.10.29/src/ssl/mod.rs:110:1 [INFO] [stderr] | [INFO] [stderr] 110 | mod error; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/payload.rs:45:8 [INFO] [stderr] | [INFO] [stderr] 45 | try!(encoder.emit_struct_field( "aps", 0usize, |encoder| aps.encode(encoder))); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/payload.rs:48:9 [INFO] [stderr] | [INFO] [stderr] 48 | try!(encoder.emit_struct_field(key, index, |encoder| val.encode(encoder))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/payload.rs:57:7 [INFO] [stderr] | [INFO] [stderr] 57 | try!(encoder.emit_struct_field( "aps", 0usize, |encoder| aps.encode(encoder))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/payload.rs:77:6 [INFO] [stderr] | [INFO] [stderr] 77 | try!(encoder.emit_struct_field( "alert", index, |encoder| alert.encode(encoder))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/payload.rs:80:7 [INFO] [stderr] | [INFO] [stderr] 80 | try!(encoder.emit_struct_field( "badge", index, |encoder| badge.unwrap().encode(encoder))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/payload.rs:84:7 [INFO] [stderr] | [INFO] [stderr] 84 | try!(encoder.emit_struct_field( "sound", index, |encoder| sound.as_ref().unwrap().encode(encoder))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/payload.rs:88:7 [INFO] [stderr] | [INFO] [stderr] 88 | try!(encoder.emit_struct_field( "content-available", index, |encoder| content_available.unwrap().encode(encoder))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/payload.rs:138:4 [INFO] [stderr] | [INFO] [stderr] 138 | try!(encoder.emit_struct_field("title", 0, |encoder| title.encode(encoder))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/payload.rs:139:4 [INFO] [stderr] | [INFO] [stderr] 139 | try!(encoder.emit_struct_field("body", 1, |encoder| body.encode(encoder))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/payload.rs:140:4 [INFO] [stderr] | [INFO] [stderr] 140 | try!(encoder.emit_struct_field("loc-key", 2, |encoder| loc_key.encode(encoder))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/payload.rs:141:4 [INFO] [stderr] | [INFO] [stderr] 141 | try!(encoder.emit_struct_field("loc-args", 3, |encoder| loc_args.encode(encoder))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/payload.rs:142:4 [INFO] [stderr] | [INFO] [stderr] 142 | try!(encoder.emit_struct_field("launch-image", 4, |encoder| launch_image.encode(encoder))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/payload.rs:144:5 [INFO] [stderr] | [INFO] [stderr] 144 | try!(encoder.emit_struct_field("title-loc-key", index, |encoder| title_loc_key.encode(encoder))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/payload.rs:149:5 [INFO] [stderr] | [INFO] [stderr] 149 | try!(encoder.emit_struct_field("title-loc-args", index, |encoder| title_loc_args.encode(encoder))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/payload.rs:154:5 [INFO] [stderr] | [INFO] [stderr] 154 | try!(encoder.emit_struct_field("action-loc-key", index, |encoder| action_loc_key.encode(encoder))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Encodable` [INFO] [stderr] --> src/notification.rs:3:23 [INFO] [stderr] | [INFO] [stderr] 3 | use rustc_serialize::{Encodable, json}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `new` found for struct `openssl::ssl::SslContext` in the current scope [INFO] [stderr] --> src/connection.rs:59:38 [INFO] [stderr] | [INFO] [stderr] 59 | let mut context = ssl::SslContext::new(ssl::SslMethod::Tlsv1).ok().expect("create ssl conext"); [INFO] [stderr] | ^^^ function or associated item not found in `openssl::ssl::SslContext` [INFO] [stderr] [INFO] [stderr] error[E0599]: no associated item named `Tlsv1` found for struct `openssl::ssl::SslMethod` in the current scope [INFO] [stderr] --> src/connection.rs:59:58 [INFO] [stderr] | [INFO] [stderr] 59 | let mut context = ssl::SslContext::new(ssl::SslMethod::Tlsv1).ok().expect("create ssl conext"); [INFO] [stderr] | ^^^^^ associated item not found in `openssl::ssl::SslMethod` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `new` found for struct `openssl::ssl::SslStream<_>` in the current scope [INFO] [stderr] --> src/connection.rs:69:21 [INFO] [stderr] | [INFO] [stderr] 69 | return SslStream::new(&context, tcp_conn); [INFO] [stderr] | ^^^ function or associated item not found in `openssl::ssl::SslStream<_>` [INFO] [stderr] [INFO] [stderr] error: aborting due to 15 previous errors; 16 warnings emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0432, E0433, E0599, E0603. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: could not compile `apns`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "02b9dc8a82044756d1ccfb0dd3c3342b1d3da66a02af20bcd08ebefc571ed917"` [INFO] running `"docker" "rm" "-f" "02b9dc8a82044756d1ccfb0dd3c3342b1d3da66a02af20bcd08ebefc571ed917"` [INFO] [stdout] 02b9dc8a82044756d1ccfb0dd3c3342b1d3da66a02af20bcd08ebefc571ed917