[INFO] crate cstr_core 0.2.0 is already in cache [INFO] testing cstr_core-0.2.0 against beta-2020-07-24 for beta-1.46-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-07-24 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-07-24" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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 `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-07-24" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-07-24" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "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_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 50e774e95af35da6c4eb2080b48263c3abb08111ecb5f50ee2bacb426e121158 [INFO] running `Command { std: "docker" "start" "-a" "50e774e95af35da6c4eb2080b48263c3abb08111ecb5f50ee2bacb426e121158", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "50e774e95af35da6c4eb2080b48263c3abb08111ecb5f50ee2bacb426e121158", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "50e774e95af35da6c4eb2080b48263c3abb08111ecb5f50ee2bacb426e121158", kill_on_drop: false }` [INFO] [stdout] 50e774e95af35da6c4eb2080b48263c3abb08111ecb5f50ee2bacb426e121158 [INFO] running `Command { std: "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@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 23db4b3427832fed3c8a7239e9349fa823cced875b9b09c16c49f272422dd0b5 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "23db4b3427832fed3c8a7239e9349fa823cced875b9b09c16c49f272422dd0b5", kill_on_drop: false }` [INFO] [stderr] Compiling cstr_core v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.54s [INFO] running `Command { std: "docker" "inspect" "23db4b3427832fed3c8a7239e9349fa823cced875b9b09c16c49f272422dd0b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23db4b3427832fed3c8a7239e9349fa823cced875b9b09c16c49f272422dd0b5", kill_on_drop: false }` [INFO] [stdout] 23db4b3427832fed3c8a7239e9349fa823cced875b9b09c16c49f272422dd0b5 [INFO] running `Command { std: "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@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d0c09478071f0223cd66d5c788fdb46415e6badcbdabdcc559a2b30f863c6bdc [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "d0c09478071f0223cd66d5c788fdb46415e6badcbdabdcc559a2b30f863c6bdc", kill_on_drop: false }` [INFO] [stderr] Compiling cstr_core v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `CString` [INFO] [stdout] --> src/lib.rs:1270:17 [INFO] [stdout] | [INFO] [stdout] 1270 | let s = CString::new("1234").unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1252 | use crate::tests::std::ffi::CString; [INFO] [stdout] | [INFO] [stdout] 1252 | use std::ffi::CString; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `CString` [INFO] [stdout] --> src/lib.rs:1277:17 [INFO] [stdout] | [INFO] [stdout] 1277 | assert!(CString::new(&b"\0"[..]).is_err()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1252 | use crate::tests::std::ffi::CString; [INFO] [stdout] | [INFO] [stdout] 1252 | use std::ffi::CString; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `CString` [INFO] [stdout] --> src/lib.rs:1281:17 [INFO] [stdout] | [INFO] [stdout] 1281 | assert!(CString::new(vec![0]).is_err()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1252 | use crate::tests::std::ffi::CString; [INFO] [stdout] | [INFO] [stdout] 1252 | use std::ffi::CString; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `CString` [INFO] [stdout] --> src/lib.rs:1287:21 [INFO] [stdout] | [INFO] [stdout] 1287 | let s = CString::from_vec_unchecked(vec![0]); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1252 | use crate::tests::std::ffi::CString; [INFO] [stdout] | [INFO] [stdout] 1252 | use std::ffi::CString; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `CString` [INFO] [stdout] --> src/lib.rs:1294:17 [INFO] [stdout] | [INFO] [stdout] 1294 | let s = CString::new(&b"abc\x01\x02\n\xE2\x80\xA6\xFF"[..]).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1252 | use crate::tests::std::ffi::CString; [INFO] [stdout] | [INFO] [stdout] 1252 | use std::ffi::CString; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `CString` [INFO] [stdout] --> src/lib.rs:1345:9 [INFO] [stdout] | [INFO] [stdout] 1345 | CString::new(&data[..data.len() - 1]).unwrap().hash(&mut s); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1252 | use crate::tests::std::ffi::CString; [INFO] [stdout] | [INFO] [stdout] 1252 | use std::ffi::CString; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Box` in this scope [INFO] [stdout] --> src/lib.rs:1384:20 [INFO] [stdout] | [INFO] [stdout] 1384 | let boxed: Box = Box::from(cstr); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1252 | use crate::tests::std::boxed::Box; [INFO] [stdout] | [INFO] [stdout] 1252 | use std::boxed::Box; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Box` [INFO] [stdout] --> src/lib.rs:1384:32 [INFO] [stdout] | [INFO] [stdout] 1384 | let boxed: Box = Box::from(cstr); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1252 | use crate::tests::std::boxed::Box; [INFO] [stdout] | [INFO] [stdout] 1252 | use std::boxed::Box; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Box` in this scope [INFO] [stdout] --> src/lib.rs:1393:22 [INFO] [stdout] | [INFO] [stdout] 1393 | let boxed = >::default(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1252 | use crate::tests::std::boxed::Box; [INFO] [stdout] | [INFO] [stdout] 1252 | use std::boxed::Box; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_string_lossy` found for reference `&CStr` in the current scope [INFO] [stdout] --> src/lib.rs:1313:44 [INFO] [stdout] | [INFO] [stdout] 1313 | assert_eq!(CStr::from_ptr(ptr).to_string_lossy(), Borrowed("123…")); [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `&CStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_string_lossy` found for reference `&CStr` in the current scope [INFO] [stdout] --> src/lib.rs:1320:37 [INFO] [stdout] | [INFO] [stdout] 1320 | CStr::from_ptr(ptr).to_string_lossy(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `&CStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_owned` found for reference `&CStr` in the current scope [INFO] [stdout] --> src/lib.rs:1331:50 [INFO] [stdout] | [INFO] [stdout] 1331 | let owned = unsafe { CStr::from_ptr(ptr).to_owned() }; [INFO] [stdout] | ^^^^^^^^ method not found in `&CStr` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use crate::std::borrow::ToOwned;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_owned` found for reference `&CStr` in the current scope [INFO] [stdout] --> src/lib.rs:1385:28 [INFO] [stdout] | [INFO] [stdout] 1385 | let cstring = cstr.to_owned().into_boxed_c_str().into_c_string(); [INFO] [stdout] | ^^^^^^^^ method not found in `&CStr` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use crate::std::borrow::ToOwned;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cstr_core`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "d0c09478071f0223cd66d5c788fdb46415e6badcbdabdcc559a2b30f863c6bdc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0c09478071f0223cd66d5c788fdb46415e6badcbdabdcc559a2b30f863c6bdc", kill_on_drop: false }` [INFO] [stdout] d0c09478071f0223cd66d5c788fdb46415e6badcbdabdcc559a2b30f863c6bdc