[INFO] crate cstr_core 0.2.0 is already in cache [INFO] checking cstr_core-0.2.0 against master#1557fb031b272b4c5bfcc7de5df7eddc7b36a584 for pr-73166 [INFO] extracting crate cstr_core 0.2.0 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate cstr_core 0.2.0 on toolchain 1557fb031b272b4c5bfcc7de5df7eddc7b36a584 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "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-7/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ab4f70959fe072f2a8661136d2e2540b3b35461d6138c79abb00c23cc2fdc2aa [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" "ab4f70959fe072f2a8661136d2e2540b3b35461d6138c79abb00c23cc2fdc2aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ab4f70959fe072f2a8661136d2e2540b3b35461d6138c79abb00c23cc2fdc2aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab4f70959fe072f2a8661136d2e2540b3b35461d6138c79abb00c23cc2fdc2aa", kill_on_drop: false }` [INFO] [stdout] ab4f70959fe072f2a8661136d2e2540b3b35461d6138c79abb00c23cc2fdc2aa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 638d66b02604df433753ddb8eeb19b28f34a63cd2a13f63cd275a68f32d704ff [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" "638d66b02604df433753ddb8eeb19b28f34a63cd2a13f63cd275a68f32d704ff", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking cty v0.2.1 [INFO] [stderr] Checking 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 this struct [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 this struct [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 this struct [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 this struct [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 this struct [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 this struct [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 this struct [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 this struct [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 this struct [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" "638d66b02604df433753ddb8eeb19b28f34a63cd2a13f63cd275a68f32d704ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "638d66b02604df433753ddb8eeb19b28f34a63cd2a13f63cd275a68f32d704ff", kill_on_drop: false }` [INFO] [stdout] 638d66b02604df433753ddb8eeb19b28f34a63cd2a13f63cd275a68f32d704ff