[INFO] crate cstr_core 0.2.0 is already in cache [INFO] testing cstr_core-0.2.0 against beta-2020-06-03 for beta-1.45-1 [INFO] extracting crate cstr_core 0.2.0 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate cstr_core 0.2.0 on toolchain beta-2020-06-03 [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate cstr_core 0.2.0 [INFO] finished tweaking crates.io crate cstr_core 0.2.0 [INFO] tweaked toml for crates.io crate cstr_core 0.2.0 written to /workspace/builds/worker-0/source/Cargo.toml [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "+beta-2020-06-03" "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] 083e51c9350c4b60de3e0bde9f2204f6fc9d8c0ebc397f2d5792e6bee5873efb [INFO] running `"docker" "start" "-a" "083e51c9350c4b60de3e0bde9f2204f6fc9d8c0ebc397f2d5792e6bee5873efb"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling cty v0.2.1 [INFO] [stderr] Compiling cstr_core v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.51s [INFO] running `"docker" "inspect" "083e51c9350c4b60de3e0bde9f2204f6fc9d8c0ebc397f2d5792e6bee5873efb"` [INFO] running `"docker" "rm" "-f" "083e51c9350c4b60de3e0bde9f2204f6fc9d8c0ebc397f2d5792e6bee5873efb"` [INFO] [stdout] 083e51c9350c4b60de3e0bde9f2204f6fc9d8c0ebc397f2d5792e6bee5873efb [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "+beta-2020-06-03" "test" "--frozen" "--no-run"` [INFO] [stdout] fec92a77faee6b0c38337446fb4baeda56c723c083ca24e774aaa4b4edb9807d [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `"docker" "start" "-a" "fec92a77faee6b0c38337446fb4baeda56c723c083ca24e774aaa4b4edb9807d"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling cstr_core v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CString` [INFO] [stderr] --> src/lib.rs:1270:17 [INFO] [stderr] | [INFO] [stderr] 1270 | let s = CString::new("1234").unwrap(); [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `CString` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CString` [INFO] [stderr] --> src/lib.rs:1277:17 [INFO] [stderr] | [INFO] [stderr] 1277 | assert!(CString::new(&b"\0"[..]).is_err()); [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `CString` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CString` [INFO] [stderr] --> src/lib.rs:1281:17 [INFO] [stderr] | [INFO] [stderr] 1281 | assert!(CString::new(vec![0]).is_err()); [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `CString` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CString` [INFO] [stderr] --> src/lib.rs:1287:21 [INFO] [stderr] | [INFO] [stderr] 1287 | let s = CString::from_vec_unchecked(vec![0]); [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `CString` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CString` [INFO] [stderr] --> src/lib.rs:1294:17 [INFO] [stderr] | [INFO] [stderr] 1294 | let s = CString::new(&b"abc\x01\x02\n\xE2\x80\xA6\xFF"[..]).unwrap(); [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `CString` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CString` [INFO] [stderr] --> src/lib.rs:1345:9 [INFO] [stderr] | [INFO] [stderr] 1345 | CString::new(&data[..data.len() - 1]).unwrap().hash(&mut s); [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `CString` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Box` [INFO] [stderr] --> src/lib.rs:1384:32 [INFO] [stderr] | [INFO] [stderr] 1384 | let boxed: Box = Box::from(cstr); [INFO] [stderr] | ^^^ use of undeclared type or module `Box` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Box` in this scope [INFO] [stderr] --> src/lib.rs:1384:20 [INFO] [stderr] | [INFO] [stderr] 1384 | let boxed: Box = Box::from(cstr); [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: consider importing one of these items [INFO] [stderr] | [INFO] [stderr] 1252 | use std::boxed::Box; [INFO] [stderr] | [INFO] [stderr] 1252 | use std::prelude::v1::Box; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Box` in this scope [INFO] [stderr] --> src/lib.rs:1393:22 [INFO] [stderr] | [INFO] [stderr] 1393 | let boxed = >::default(); [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: consider importing one of these items [INFO] [stderr] | [INFO] [stderr] 1252 | use std::boxed::Box; [INFO] [stderr] | [INFO] [stderr] 1252 | use std::prelude::v1::Box; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `to_string_lossy` found for reference `&CStr` in the current scope [INFO] [stderr] --> src/lib.rs:1313:44 [INFO] [stderr] | [INFO] [stderr] 1313 | assert_eq!(CStr::from_ptr(ptr).to_string_lossy(), Borrowed("123…")); [INFO] [stderr] | ^^^^^^^^^^^^^^^ method not found in `&CStr` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `to_string_lossy` found for reference `&CStr` in the current scope [INFO] [stderr] --> src/lib.rs:1320:37 [INFO] [stderr] | [INFO] [stderr] 1320 | CStr::from_ptr(ptr).to_string_lossy(), [INFO] [stderr] | ^^^^^^^^^^^^^^^ method not found in `&CStr` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `to_owned` found for reference `&CStr` in the current scope [INFO] [stderr] --> src/lib.rs:1331:50 [INFO] [stderr] | [INFO] [stderr] 1331 | let owned = unsafe { CStr::from_ptr(ptr).to_owned() }; [INFO] [stderr] | ^^^^^^^^ method not found in `&CStr` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] `use crate::std::borrow::ToOwned;` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `to_owned` found for reference `&CStr` in the current scope [INFO] [stderr] --> src/lib.rs:1385:28 [INFO] [stderr] | [INFO] [stderr] 1385 | let cstring = cstr.to_owned().into_boxed_c_str().into_c_string(); [INFO] [stderr] | ^^^^^^^^ method not found in `&CStr` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] `use crate::std::borrow::ToOwned;` [INFO] [stderr] [INFO] [stderr] error: aborting due to 13 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: could not compile `cstr_core`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "fec92a77faee6b0c38337446fb4baeda56c723c083ca24e774aaa4b4edb9807d"` [INFO] running `"docker" "rm" "-f" "fec92a77faee6b0c38337446fb4baeda56c723c083ca24e774aaa4b4edb9807d"` [INFO] [stdout] fec92a77faee6b0c38337446fb4baeda56c723c083ca24e774aaa4b4edb9807d