[INFO] fetching crate cstr_core 0.1.2... [INFO] checking cstr_core-0.1.2 against try#ea663bba38739867a4b75ac820991b4f5d093c3b for pr-62262-1 [INFO] extracting crate cstr_core 0.1.2 into /workspace/builds/worker-11/source [INFO] validating manifest of crates.io crate cstr_core 0.1.2 on toolchain ea663bba38739867a4b75ac820991b4f5d093c3b [INFO] running `"/workspace/cargo-home/bin/cargo" "+ea663bba38739867a4b75ac820991b4f5d093c3b" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate cstr_core 0.1.2 [INFO] finished tweaking crates.io crate cstr_core 0.1.2 [INFO] tweaked toml for crates.io crate cstr_core 0.1.2 written to /workspace/builds/worker-11/source/Cargo.toml [INFO] running `"/workspace/cargo-home/bin/cargo" "+ea663bba38739867a4b75ac820991b4f5d093c3b" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+ea663bba38739867a4b75ac820991b4f5d093c3b" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "/opt/rustwide/cargo-home/bin/cargo" "+ea663bba38739867a4b75ac820991b4f5d093c3b" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 9a3ae045e9163502c7c0b04ee0131245b749cae86c0fed4021ab99ab76d16c52 [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" "9a3ae045e9163502c7c0b04ee0131245b749cae86c0fed4021ab99ab76d16c52"` [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Checking cty v0.1.5 [INFO] [stderr] Checking cstr_core v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/lib.rs:134:20 [INFO] [stderr] | [INFO] [stderr] 134 | b'\x20'...b'\x7e' => ([c, 0, 0, 0], 1), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/lib.rs:145:18 [INFO] [stderr] | [INFO] [stderr] 145 | 0...9 => b'0' + b, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `CString` [INFO] [stderr] --> src/lib.rs:1234:17 [INFO] [stderr] | [INFO] [stderr] 1234 | 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:1241:17 [INFO] [stderr] | [INFO] [stderr] 1241 | 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:1245:17 [INFO] [stderr] | [INFO] [stderr] 1245 | 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:1251:21 [INFO] [stderr] | [INFO] [stderr] 1251 | 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:1258:17 [INFO] [stderr] | [INFO] [stderr] 1258 | 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:1309:9 [INFO] [stderr] | [INFO] [stderr] 1309 | 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:1348:32 [INFO] [stderr] | [INFO] [stderr] 1348 | let boxed: Box = Box::from(cstr); [INFO] [stderr] | ^^^ use of undeclared type or module `Box` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Rc` [INFO] [stderr] --> src/lib.rs:1365:28 [INFO] [stderr] | [INFO] [stderr] 1365 | let rc: Rc = Rc::from(cstr); [INFO] [stderr] | ^^ use of undeclared type or module `Rc` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Arc` [INFO] [stderr] --> src/lib.rs:1366:30 [INFO] [stderr] | [INFO] [stderr] 1366 | let arc: Arc = Arc::from(cstr); [INFO] [stderr] | ^^^ use of undeclared type or module `Arc` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Rc` [INFO] [stderr] --> src/lib.rs:1371:29 [INFO] [stderr] | [INFO] [stderr] 1371 | let rc2: Rc = Rc::from(cstr.to_owned()); [INFO] [stderr] | ^^ use of undeclared type or module `Rc` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Arc` [INFO] [stderr] --> src/lib.rs:1372:31 [INFO] [stderr] | [INFO] [stderr] 1372 | let arc2: Arc = Arc::from(cstr.to_owned()); [INFO] [stderr] | ^^^ use of undeclared type or module `Arc` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Box` in this scope [INFO] [stderr] --> src/lib.rs:1348:20 [INFO] [stderr] | [INFO] [stderr] 1348 | let boxed: Box = Box::from(cstr); [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 1217 | use std::boxed::Box; [INFO] [stderr] | [INFO] [stderr] 1217 | 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:1357:22 [INFO] [stderr] | [INFO] [stderr] 1357 | let boxed = >::default(); [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 1217 | use std::boxed::Box; [INFO] [stderr] | [INFO] [stderr] 1217 | use std::prelude::v1::Box; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Rc` in this scope [INFO] [stderr] --> src/lib.rs:1365:17 [INFO] [stderr] | [INFO] [stderr] 1365 | let rc: Rc = Rc::from(cstr); [INFO] [stderr] | ^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1217 | use std::rc::Rc; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Arc` in this scope [INFO] [stderr] --> src/lib.rs:1366:18 [INFO] [stderr] | [INFO] [stderr] 1366 | let arc: Arc = Arc::from(cstr); [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1217 | use std::sync::Arc; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Rc` in this scope [INFO] [stderr] --> src/lib.rs:1371:18 [INFO] [stderr] | [INFO] [stderr] 1371 | let rc2: Rc = Rc::from(cstr.to_owned()); [INFO] [stderr] | ^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1217 | use std::rc::Rc; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Arc` in this scope [INFO] [stderr] --> src/lib.rs:1372:19 [INFO] [stderr] | [INFO] [stderr] 1372 | let arc2: Arc = Arc::from(cstr.to_owned()); [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1217 | use std::sync::Arc; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/lib.rs:134:20 [INFO] [stderr] | [INFO] [stderr] 134 | b'\x20'...b'\x7e' => ([c, 0, 0, 0], 1), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/lib.rs:145:18 [INFO] [stderr] | [INFO] [stderr] 145 | 0...9 => b'0' + b, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `to_string_lossy` found for type `&CStr` in the current scope [INFO] [stderr] --> src/lib.rs:1277:44 [INFO] [stderr] | [INFO] [stderr] 1277 | 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 type `&CStr` in the current scope [INFO] [stderr] --> src/lib.rs:1284:37 [INFO] [stderr] | [INFO] [stderr] 1284 | 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 type `&CStr` in the current scope [INFO] [stderr] --> src/lib.rs:1295:50 [INFO] [stderr] | [INFO] [stderr] 1295 | 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 std::borrow::ToOwned;` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `to_owned` found for type `&CStr` in the current scope [INFO] [stderr] --> src/lib.rs:1349:28 [INFO] [stderr] | [INFO] [stderr] 1349 | 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 std::borrow::ToOwned;` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `to_owned` found for type `&CStr` in the current scope [INFO] [stderr] --> src/lib.rs:1371:43 [INFO] [stderr] | [INFO] [stderr] 1371 | let rc2: Rc = Rc::from(cstr.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 std::borrow::ToOwned;` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `to_owned` found for type `&CStr` in the current scope [INFO] [stderr] --> src/lib.rs:1372:46 [INFO] [stderr] | [INFO] [stderr] 1372 | let arc2: Arc = Arc::from(cstr.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 std::borrow::ToOwned;` [INFO] [stderr] [INFO] [stderr] error: aborting due to 23 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" "9a3ae045e9163502c7c0b04ee0131245b749cae86c0fed4021ab99ab76d16c52"` [INFO] running `"docker" "rm" "-f" "9a3ae045e9163502c7c0b04ee0131245b749cae86c0fed4021ab99ab76d16c52"` [INFO] [stdout] 9a3ae045e9163502c7c0b04ee0131245b749cae86c0fed4021ab99ab76d16c52