[INFO] crate is_executable 0.1.2 is already in cache [INFO] extracting crate is_executable 0.1.2 into work/ex/beta-1.37-6/sources/1.36.0/reg/is_executable/0.1.2 [INFO] extracting crate is_executable 0.1.2 into work/ex/beta-1.37-6/sources/beta-2019-07-23/reg/is_executable/0.1.2 [INFO] validating manifest of is_executable-0.1.2 on toolchain 1.36.0 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.36.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of is_executable-0.1.2 on toolchain beta-2019-07-23 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-07-23" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing is_executable-0.1.2 [INFO] finished frobbing is_executable-0.1.2 [INFO] frobbed toml for is_executable-0.1.2 written to work/ex/beta-1.37-6/sources/1.36.0/reg/is_executable/0.1.2/Cargo.toml [INFO] started frobbing is_executable-0.1.2 [INFO] finished frobbing is_executable-0.1.2 [INFO] frobbed toml for is_executable-0.1.2 written to work/ex/beta-1.37-6/sources/beta-2019-07-23/reg/is_executable/0.1.2/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.36.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-07-23" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.36.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-07-23" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] testing is_executable-0.1.2 against 1.36.0 for beta-1.37-6 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.37-6/worker-0/1.36.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.37-6/sources/1.36.0/reg/is_executable/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=warn" "-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" "+1.36.0" "build" "--frozen"` [INFO] [stdout] 990f815854912ab9c054eabbd3fe4130f9458aca7a0b083a4c4cabadd3ea3c90 [INFO] running `"docker" "start" "-a" "990f815854912ab9c054eabbd3fe4130f9458aca7a0b083a4c4cabadd3ea3c90"` [INFO] [stderr] Compiling is_executable v0.1.2 (/opt/crater/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.39s [INFO] running `"docker" "inspect" "990f815854912ab9c054eabbd3fe4130f9458aca7a0b083a4c4cabadd3ea3c90"` [INFO] running `"docker" "rm" "-f" "990f815854912ab9c054eabbd3fe4130f9458aca7a0b083a4c4cabadd3ea3c90"` [INFO] [stdout] 990f815854912ab9c054eabbd3fe4130f9458aca7a0b083a4c4cabadd3ea3c90 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.37-6/worker-0/1.36.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.37-6/sources/1.36.0/reg/is_executable/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=warn" "-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" "+1.36.0" "test" "--frozen" "--no-run"` [INFO] [stdout] e73a29baa7295849dbd0accdb899673ed0254d5719bc0cc3f12a9c5fb61ae75c [INFO] running `"docker" "start" "-a" "e73a29baa7295849dbd0accdb899673ed0254d5719bc0cc3f12a9c5fb61ae75c"` [INFO] [stderr] Compiling is_executable v0.1.2 (/opt/crater/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.24s [INFO] running `"docker" "inspect" "e73a29baa7295849dbd0accdb899673ed0254d5719bc0cc3f12a9c5fb61ae75c"` [INFO] running `"docker" "rm" "-f" "e73a29baa7295849dbd0accdb899673ed0254d5719bc0cc3f12a9c5fb61ae75c"` [INFO] [stdout] e73a29baa7295849dbd0accdb899673ed0254d5719bc0cc3f12a9c5fb61ae75c [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.37-6/worker-0/1.36.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.37-6/sources/1.36.0/reg/is_executable/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=warn" "-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" "+1.36.0" "test" "--frozen"` [INFO] [stdout] cfdcc52162b1334b2bdfa421c30c72cb7968922b80e75db0421c4ac624dc0356 [INFO] running `"docker" "start" "-a" "cfdcc52162b1334b2bdfa421c30c72cb7968922b80e75db0421c4ac624dc0356"` [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running /opt/crater/target/debug/deps/is_executable-89148569b2a00f7b [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Running /opt/crater/target/debug/deps/tests-0d96c4679f4f2d53 [INFO] [stdout] running 4 tests [INFO] [stdout] test unix::executable ... ok [INFO] [stdout] test not_executable ... ok [INFO] [stdout] test non_existant ... ok [INFO] [stdout] test unix::cargo_readme_up_to_date ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- unix::cargo_readme_up_to_date stdout ---- [INFO] [stdout] Checking that `cargo readme > README.md` is up to date... [INFO] [stdout] [INFO] [stdout] +++ expected README.md [INFO] [stdout] --- actual README.md [INFO] [stdout] -[![Build Status](https://travis-ci.org/fitzgen/is_executable.svg?branch=master)](https://travis-ci.org/fitzgen/is_executable) [INFO] [stdout] - [INFO] [stdout] -# is_executable [INFO] [stdout] - [INFO] [stdout] -Is there an executable file at the given path? [INFO] [stdout] - [INFO] [stdout] -[![](https://docs.rs/is_executable/badge.svg)](https://docs.rs/is_executable/) [![](http://meritbadge.herokuapp.com/is_executable) ![](https://img.shields.io/crates/d/is_executable.png)](https://crates.io/crates/is_executable) [![Unix Build Status](https://travis-ci.org/fitzgen/is_executable.png?branch=master)](https://travis-ci.org/fitzgen/is_executable) [![Windows Build Status](https://ci.appveyor.com/api/projects/status/github/fitzgen/is_executable?branch=master&svg=true)](https://ci.appveyor.com/project/fitzgen/is-executable) [INFO] [stdout] - [INFO] [stdout] -A small helper function which determines whether or not the given path points to [INFO] [stdout] -an executable file. If there is no file at the given path, or the file is not [INFO] [stdout] -executable, then `false` is returned. When there is a file and the file is [INFO] [stdout] -executable, then `true` is returned. [INFO] [stdout] - [INFO] [stdout] -This crate works on both unix-based operating systems (mac, linux, freebsd, etc.) and Windows. [INFO] [stdout] - [INFO] [stdout] -The API comes in two flavors: [INFO] [stdout] - [INFO] [stdout] -1. An extension trait to add an `is_executable` method on `std::path::Path`: [INFO] [stdout] - [INFO] [stdout] - ```rust [INFO] [stdout] - use std::path::Path; [INFO] [stdout] - [INFO] [stdout] - use is_executable::IsExecutable; [INFO] [stdout] - [INFO] [stdout] - fn main() { [INFO] [stdout] - let path = Path::new("some/path/to/a/file"); [INFO] [stdout] - [INFO] [stdout] - // Determine if `path` is executable. [INFO] [stdout] - if path.is_executable() { [INFO] [stdout] - println!("The path is executable!"); [INFO] [stdout] - } else { [INFO] [stdout] - println!("The path is _not_ executable!"); [INFO] [stdout] - } [INFO] [stdout] - } [INFO] [stdout] - ``` [INFO] [stdout] - [INFO] [stdout] -2. For convenience, a standalone `is_executable` function, which takes any [INFO] [stdout] -`AsRef`: [INFO] [stdout] - [INFO] [stdout] - ```rust [INFO] [stdout] - use std::path::Path; [INFO] [stdout] - [INFO] [stdout] - use is_executable::is_executable; [INFO] [stdout] - [INFO] [stdout] - fn main() { [INFO] [stdout] - let path = Path::new("some/path/to/a/file"); [INFO] [stdout] - [INFO] [stdout] - // Determine if `path` is executable. [INFO] [stdout] - if is_executable(&path) { [INFO] [stdout] - println!("The path is executable!"); [INFO] [stdout] - } else { [INFO] [stdout] - println!("The path is _not_ executable!"); [INFO] [stdout] - } [INFO] [stdout] - } [INFO] [stdout] - ``` [INFO] [stdout] - [INFO] [stdout] -License: Apache-2.0/MIT [INFO] [stdout] - [INFO] [stdout] thread 'unix::cargo_readme_up_to_date' panicked at 'Run `cargo readme > README.md` to update README.md', tests/tests.rs:51:13 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x55ceb1056a03 - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::h6485381528590a55 [INFO] [stdout] at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39 [INFO] [stdout] 1: 0x55ceb105233b - std::sys_common::backtrace::_print::h49a82ae9552e35c7 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:71 [INFO] [stdout] 2: 0x55ceb1055746 - std::panicking::default_hook::{{closure}}::he20974adbefcc046 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:59 [INFO] [stdout] at src/libstd/panicking.rs:197 [INFO] [stdout] 3: 0x55ceb105546e - std::panicking::default_hook::he4af6af4ac7fef7b [INFO] [stdout] at src/libstd/panicking.rs:208 [INFO] [stdout] 4: 0x55ceb1055e4f - std::panicking::rust_panic_with_hook::h057ff03eb4c8000f [INFO] [stdout] at src/libstd/panicking.rs:474 [INFO] [stdout] 5: 0x55ceb0fea853 - std::panicking::begin_panic::h87e34494309ffd77 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:408 [INFO] [stdout] 6: 0x55ceb0fef31a - tests::unix::cargo_readme_up_to_date::h782796456dc2ed1d [INFO] [stdout] at tests/tests.rs:51 [INFO] [stdout] 7: 0x55ceb0feea89 - tests::unix::cargo_readme_up_to_date::{{closure}}::hb71fa9cae3ec706d [INFO] [stdout] at tests/tests.rs:16 [INFO] [stdout] 8: 0x55ceb0fe7bdd - core::ops::function::FnOnce::call_once::hf166bc5851a0259e [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/ops/function.rs:231 [INFO] [stdout] 9: 0x55ceb0ffc07e - as core::ops::function::FnOnce>::call_once::h6b004fa8f4fc1608 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] 10: 0x55ceb105d039 - __rust_maybe_catch_panic [INFO] [stdout] at src/libpanic_unwind/lib.rs:85 [INFO] [stdout] 11: 0x55ceb1016977 - test::run_test::run_test_inner::{{closure}}::h9a4d23c41d058d37 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:272 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:394 [INFO] [stdout] at src/libtest/lib.rs:1468 [INFO] [stdout] 12: 0x55ceb0ff1394 - std::sys_common::backtrace::__rust_begin_short_backtrace::h3765d76361a33ff7 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/sys_common/backtrace.rs:136 [INFO] [stdout] 13: 0x55ceb0ff5444 - std::panicking::try::do_call::h6f86e980b52f74d5 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/mod.rs:470 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:315 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:293 [INFO] [stdout] 14: 0x55ceb105d039 - __rust_maybe_catch_panic [INFO] [stdout] at src/libpanic_unwind/lib.rs:85 [INFO] [stdout] 15: 0x55ceb0ff5a51 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h760b8a2b155f54c3 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:272 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:394 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/mod.rs:469 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/ops/function.rs:231 [INFO] [stdout] 16: 0x55ceb1048f7e - as core::ops::function::FnOnce>::call_once::h805c3cc89d534c05 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] 17: 0x55ceb105c71f - std::sys::unix::thread::Thread::new::thread_start::h6f10b78f26c98dc6 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] at src/libstd/sys_common/thread.rs:13 [INFO] [stdout] at src/libstd/sys/unix/thread.rs:79 [INFO] [stdout] 18: 0x7fdd44aef4a3 - start_thread [INFO] [stdout] 19: 0x7fdd4461ad0e - __clone [INFO] [stdout] 20: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] unix::cargo_readme_up_to_date [INFO] [stdout] [INFO] [stdout] test result: FAILED. 3 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--test tests' [INFO] running `"docker" "inspect" "cfdcc52162b1334b2bdfa421c30c72cb7968922b80e75db0421c4ac624dc0356"` [INFO] running `"docker" "rm" "-f" "cfdcc52162b1334b2bdfa421c30c72cb7968922b80e75db0421c4ac624dc0356"` [INFO] [stdout] cfdcc52162b1334b2bdfa421c30c72cb7968922b80e75db0421c4ac624dc0356