[INFO] crate is_executable 0.1.2 is already in cache [INFO] extracting crate is_executable 0.1.2 into work/ex/beta-1.38-1/sources/1.37.0/reg/is_executable/0.1.2 [INFO] extracting crate is_executable 0.1.2 into work/ex/beta-1.38-1/sources/beta-2019-08-13/reg/is_executable/0.1.2 [INFO] validating manifest of is_executable-0.1.2 on toolchain 1.37.0 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of is_executable-0.1.2 on toolchain beta-2019-08-13 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "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.38-1/sources/1.37.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.38-1/sources/beta-2019-08-13/reg/is_executable/0.1.2/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] testing is_executable-0.1.2 against beta-2019-08-13 for beta-1.38-1 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-1/beta-2019-08-13:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/beta-2019-08-13/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" "+beta-2019-08-13" "build" "--frozen"` [INFO] [stdout] 66acbd46c9a9c414d2b6860bab4f59b332fb20458f31804859a532a021baf244 [INFO] running `"docker" "start" "-a" "66acbd46c9a9c414d2b6860bab4f59b332fb20458f31804859a532a021baf244"` [INFO] [stderr] Compiling is_executable v0.1.2 (/opt/crater/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.38s [INFO] running `"docker" "inspect" "66acbd46c9a9c414d2b6860bab4f59b332fb20458f31804859a532a021baf244"` [INFO] running `"docker" "rm" "-f" "66acbd46c9a9c414d2b6860bab4f59b332fb20458f31804859a532a021baf244"` [INFO] [stdout] 66acbd46c9a9c414d2b6860bab4f59b332fb20458f31804859a532a021baf244 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-1/beta-2019-08-13:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/beta-2019-08-13/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" "+beta-2019-08-13" "test" "--frozen" "--no-run"` [INFO] [stdout] 8abd6e7d57996d776243c196d03e1edf9c5b2645bf97243c31f721ef3fadf647 [INFO] running `"docker" "start" "-a" "8abd6e7d57996d776243c196d03e1edf9c5b2645bf97243c31f721ef3fadf647"` [INFO] [stderr] Compiling is_executable v0.1.2 (/opt/crater/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.67s [INFO] running `"docker" "inspect" "8abd6e7d57996d776243c196d03e1edf9c5b2645bf97243c31f721ef3fadf647"` [INFO] running `"docker" "rm" "-f" "8abd6e7d57996d776243c196d03e1edf9c5b2645bf97243c31f721ef3fadf647"` [INFO] [stdout] 8abd6e7d57996d776243c196d03e1edf9c5b2645bf97243c31f721ef3fadf647 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-1/beta-2019-08-13:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/beta-2019-08-13/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" "+beta-2019-08-13" "test" "--frozen"` [INFO] [stdout] e5ce2148cdb77998620d9e00b4fd4c9c1878655b4aefff7d6c25a6aaa4410724 [INFO] running `"docker" "start" "-a" "e5ce2148cdb77998620d9e00b4fd4c9c1878655b4aefff7d6c25a6aaa4410724"` [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running /opt/crater/target/debug/deps/is_executable-569e2be394eaa540 [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-0a478094e744db7c [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: 0x559f4fa30ecb - backtrace::backtrace::libunwind::trace::h23ae608c8b906c69 [INFO] [stdout] at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.34/src/backtrace/libunwind.rs:88 [INFO] [stdout] 1: 0x559f4fa30ecb - backtrace::backtrace::trace_unsynchronized::h65b3ea295a85fd48 [INFO] [stdout] at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.34/src/backtrace/mod.rs:66 [INFO] [stdout] 2: 0x559f4fa30ecb - std::sys_common::backtrace::_print::h24f527b44b6cfc06 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:47 [INFO] [stdout] 3: 0x559f4fa30ecb - std::sys_common::backtrace::print::h712608e4347fd64a [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:36 [INFO] [stdout] 4: 0x559f4fa30ecb - std::panicking::default_hook::{{closure}}::h6c3d570c2b500048 [INFO] [stdout] at src/libstd/panicking.rs:200 [INFO] [stdout] 5: 0x559f4fa30b3c - std::panicking::default_hook::hb29963fb4747e0dd [INFO] [stdout] at src/libstd/panicking.rs:211 [INFO] [stdout] 6: 0x559f4fa3163d - std::panicking::rust_panic_with_hook::hd1236c3083de823a [INFO] [stdout] at src/libstd/panicking.rs:477 [INFO] [stdout] 7: 0x559f4f9c80b1 - std::panicking::begin_panic::h41ecdf4b326d4d60 [INFO] [stdout] at /rustc/e450539c2a8d7f791268d699cbe45ab3e57d43a1/src/libstd/panicking.rs:411 [INFO] [stdout] 8: 0x559f4f9cda67 - tests::unix::cargo_readme_up_to_date::h9ea4176463ff640e [INFO] [stdout] at tests/tests.rs:51 [INFO] [stdout] 9: 0x559f4f9cd22a - tests::unix::cargo_readme_up_to_date::{{closure}}::hec1797e1f129130f [INFO] [stdout] at tests/tests.rs:16 [INFO] [stdout] 10: 0x559f4f9c6dce - core::ops::function::FnOnce::call_once::h67c7a2d643fadf49 [INFO] [stdout] at /rustc/e450539c2a8d7f791268d699cbe45ab3e57d43a1/src/libcore/ops/function.rs:235 [INFO] [stdout] 11: 0x559f4f9d947f - as core::ops::function::FnOnce>::call_once::h355e655b04400826 [INFO] [stdout] at /rustc/e450539c2a8d7f791268d699cbe45ab3e57d43a1/src/liballoc/boxed.rs:787 [INFO] [stdout] 12: 0x559f4fa384aa - __rust_maybe_catch_panic [INFO] [stdout] at src/libpanic_unwind/lib.rs:80 [INFO] [stdout] 13: 0x559f4f9f3a6e - std::panicking::try::h5890cbed5d1d8df0 [INFO] [stdout] at /rustc/e450539c2a8d7f791268d699cbe45ab3e57d43a1/src/libstd/panicking.rs:275 [INFO] [stdout] 14: 0x559f4f9f3a6e - std::panic::catch_unwind::hf93cc71fc6442fdf [INFO] [stdout] at /rustc/e450539c2a8d7f791268d699cbe45ab3e57d43a1/src/libstd/panic.rs:394 [INFO] [stdout] 15: 0x559f4f9f3a6e - test::run_test::run_test_inner::{{closure}}::ha399a28a3066698d [INFO] [stdout] at src/libtest/lib.rs:1408 [INFO] [stdout] 16: 0x559f4f9ceea5 - std::sys_common::backtrace::__rust_begin_short_backtrace::h089859c639046955 [INFO] [stdout] at /rustc/e450539c2a8d7f791268d699cbe45ab3e57d43a1/src/libstd/sys_common/backtrace.rs:77 [INFO] [stdout] 17: 0x559f4f9d30b5 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h8d489100862c3e01 [INFO] [stdout] at /rustc/e450539c2a8d7f791268d699cbe45ab3e57d43a1/src/libstd/thread/mod.rs:470 [INFO] [stdout] 18: 0x559f4f9d30b5 - as core::ops::function::FnOnce<()>>::call_once::h5746c9e2571824d0 [INFO] [stdout] at /rustc/e450539c2a8d7f791268d699cbe45ab3e57d43a1/src/libstd/panic.rs:315 [INFO] [stdout] 19: 0x559f4f9d30b5 - std::panicking::try::do_call::hfd443b32b22f72a6 [INFO] [stdout] at /rustc/e450539c2a8d7f791268d699cbe45ab3e57d43a1/src/libstd/panicking.rs:296 [INFO] [stdout] 20: 0x559f4fa384aa - __rust_maybe_catch_panic [INFO] [stdout] at src/libpanic_unwind/lib.rs:80 [INFO] [stdout] 21: 0x559f4f9d36b2 - std::panicking::try::h332f368ed7d9b7d1 [INFO] [stdout] at /rustc/e450539c2a8d7f791268d699cbe45ab3e57d43a1/src/libstd/panicking.rs:275 [INFO] [stdout] 22: 0x559f4f9d36b2 - std::panic::catch_unwind::h316b7be8b4198222 [INFO] [stdout] at /rustc/e450539c2a8d7f791268d699cbe45ab3e57d43a1/src/libstd/panic.rs:394 [INFO] [stdout] 23: 0x559f4f9d36b2 - std::thread::Builder::spawn_unchecked::{{closure}}::h916aed08bc6e5276 [INFO] [stdout] at /rustc/e450539c2a8d7f791268d699cbe45ab3e57d43a1/src/libstd/thread/mod.rs:469 [INFO] [stdout] 24: 0x559f4f9d36b2 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h9091646be5c55ea6 [INFO] [stdout] at /rustc/e450539c2a8d7f791268d699cbe45ab3e57d43a1/src/libcore/ops/function.rs:235 [INFO] [stdout] 25: 0x559f4fa25a6f - as core::ops::function::FnOnce>::call_once::hb5396a93648ae250 [INFO] [stdout] at /rustc/e450539c2a8d7f791268d699cbe45ab3e57d43a1/src/liballoc/boxed.rs:787 [INFO] [stdout] 26: 0x559f4fa37be0 - as core::ops::function::FnOnce>::call_once::h92593001847bb63e [INFO] [stdout] at /rustc/e450539c2a8d7f791268d699cbe45ab3e57d43a1/src/liballoc/boxed.rs:787 [INFO] [stdout] 27: 0x559f4fa37be0 - std::sys_common::thread::start_thread::h569f3ccc0d5dcd83 [INFO] [stdout] at src/libstd/sys_common/thread.rs:13 [INFO] [stdout] 28: 0x559f4fa37be0 - std::sys::unix::thread::Thread::new::thread_start::hd9ff46fad032d886 [INFO] [stdout] at src/libstd/sys/unix/thread.rs:79 [INFO] [stdout] 29: 0x7f25d688c4a4 - start_thread [INFO] [stdout] 30: 0x7f25d63b7d0f - __clone [INFO] [stdout] 31: 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" "e5ce2148cdb77998620d9e00b4fd4c9c1878655b4aefff7d6c25a6aaa4410724"` [INFO] running `"docker" "rm" "-f" "e5ce2148cdb77998620d9e00b4fd4c9c1878655b4aefff7d6c25a6aaa4410724"` [INFO] [stdout] e5ce2148cdb77998620d9e00b4fd4c9c1878655b4aefff7d6c25a6aaa4410724