[INFO] fetching crate cstr_core 0.2.0... [INFO] testing cstr_core-0.2.0 against master#8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e for pr-74409 [INFO] extracting crate cstr_core 0.2.0 into /workspace/builds/worker-6/source [INFO] validating manifest of crates.io crate cstr_core 0.2.0 on toolchain 8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "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-6/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d0aea0620185f9da8861cd7fa8c80dbc7340e81c1628dd52e567a862d3de58cb [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" "d0aea0620185f9da8861cd7fa8c80dbc7340e81c1628dd52e567a862d3de58cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d0aea0620185f9da8861cd7fa8c80dbc7340e81c1628dd52e567a862d3de58cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0aea0620185f9da8861cd7fa8c80dbc7340e81c1628dd52e567a862d3de58cb", kill_on_drop: false }` [INFO] [stdout] d0aea0620185f9da8861cd7fa8c80dbc7340e81c1628dd52e567a862d3de58cb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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=forbid" "-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:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 76b88264b790ddfc9a9f797b013d7811a5d8a5c8a015fa6caa37e8a139258529 [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" "76b88264b790ddfc9a9f797b013d7811a5d8a5c8a015fa6caa37e8a139258529", 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.50s [INFO] running `Command { std: "docker" "inspect" "76b88264b790ddfc9a9f797b013d7811a5d8a5c8a015fa6caa37e8a139258529", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76b88264b790ddfc9a9f797b013d7811a5d8a5c8a015fa6caa37e8a139258529", kill_on_drop: false }` [INFO] [stdout] 76b88264b790ddfc9a9f797b013d7811a5d8a5c8a015fa6caa37e8a139258529 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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=forbid" "-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:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3fa99660fca4d6badb1c4f23ae9001f2b0c35c966cafe85115f50103d42cb9ac [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" "3fa99660fca4d6badb1c4f23ae9001f2b0c35c966cafe85115f50103d42cb9ac", 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" "3fa99660fca4d6badb1c4f23ae9001f2b0c35c966cafe85115f50103d42cb9ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3fa99660fca4d6badb1c4f23ae9001f2b0c35c966cafe85115f50103d42cb9ac", kill_on_drop: false }` [INFO] [stdout] 3fa99660fca4d6badb1c4f23ae9001f2b0c35c966cafe85115f50103d42cb9ac