[INFO] crate cstr_core 0.1.2 is already in cache [INFO] extracting crate cstr_core 0.1.2 into work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/reg/cstr_core/0.1.2 [INFO] extracting crate cstr_core 0.1.2 into work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/reg/cstr_core/0.1.2 [INFO] validating manifest of cstr_core-0.1.2 on toolchain master#60960a260f7b5c695fd0717311d72ce62dd4eb43 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of cstr_core-0.1.2 on toolchain try#266783e4e09e4e9d5307c1c8e695659c58bbcac7 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing cstr_core-0.1.2 [INFO] finished frobbing cstr_core-0.1.2 [INFO] frobbed toml for cstr_core-0.1.2 written to work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/reg/cstr_core/0.1.2/Cargo.toml [INFO] started frobbing cstr_core-0.1.2 [INFO] finished frobbing cstr_core-0.1.2 [INFO] frobbed toml for cstr_core-0.1.2 written to work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/reg/cstr_core/0.1.2/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] checking cstr_core-0.1.2 against master#60960a260f7b5c695fd0717311d72ce62dd4eb43 for pr-63376 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-63376/worker-2/master#60960a260f7b5c695fd0717311d72ce62dd4eb43:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/reg/cstr_core/0.1.2:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 07d18f89a7d80d7d13a2d759e7936a094cf2828a904851d947a574edd2fe55f9 [INFO] running `"docker" "start" "-a" "07d18f89a7d80d7d13a2d759e7936a094cf2828a904851d947a574edd2fe55f9"` [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Checking cty v0.1.5 [INFO] [stderr] Checking cstr_core v0.1.2 (/opt/crater/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] | ^^^^^^^^^^^^^^^ [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] | ^^^^^^^^^^^^^^^ [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] | ^^^^^^^^ [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] | ^^^^^^^^ [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] | ^^^^^^^^ [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] | ^^^^^^^^ [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" "07d18f89a7d80d7d13a2d759e7936a094cf2828a904851d947a574edd2fe55f9"` [INFO] running `"docker" "rm" "-f" "07d18f89a7d80d7d13a2d759e7936a094cf2828a904851d947a574edd2fe55f9"` [INFO] [stdout] 07d18f89a7d80d7d13a2d759e7936a094cf2828a904851d947a574edd2fe55f9