Oct 11 18:26:56.398 INFO testing is_executable-0.1.0 against master#0e07c4281c343e9e15a0a8fca79538ad1a8eb513 for rustdoc-test-static-cling Oct 11 18:26:56.398 INFO running: cargo +0e07c4281c343e9e15a0a8fca79538ad1a8eb513-alt build --frozen Oct 11 18:26:56.398 INFO running `"docker" "create" "-v" "/mnt/big/crater/./work/local/test-source/worker-2/rustdoc-test-static-cling/master#0e07c4281c343e9e15a0a8fca79538ad1a8eb513:/source:ro,Z" "-v" "/mnt/big/crater/./work/local/target-dirs/rustdoc-test-static-cling/worker-2/master#0e07c4281c343e9e15a0a8fca79538ad1a8eb513:/target:rw,Z" "-v" "/mnt/big/crater/./work/local/cargo-home:/cargo-home:ro,Z" "-v" "/mnt/big/crater/./work/local/rustup-home:/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "CMD=cargo +0e07c4281c343e9e15a0a8fca79538ad1a8eb513-alt build --frozen" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-m" "1536M" "--network" "none" "crater"` Oct 11 18:26:56.795 INFO blam! 9eac2b3eb5b6a28c44e435b9f8238542ac1cb94f1ef83fcb4bf698f34fd3ab34 Oct 11 18:26:56.796 INFO running `"docker" "start" "-a" "9eac2b3eb5b6a28c44e435b9f8238542ac1cb94f1ef83fcb4bf698f34fd3ab34"` Oct 11 18:26:57.325 INFO kablam! usermod: no changes Oct 11 18:26:57.351 INFO kablam! Compiling is_executable v0.1.0 (/source) Oct 11 18:26:58.157 INFO kablam! Finished dev [unoptimized + debuginfo] target(s) in 0.82s Oct 11 18:26:58.160 INFO kablam! su: No module specific data is present Oct 11 18:26:58.435 INFO running `"docker" "rm" "-f" "9eac2b3eb5b6a28c44e435b9f8238542ac1cb94f1ef83fcb4bf698f34fd3ab34"` Oct 11 18:26:58.524 INFO blam! 9eac2b3eb5b6a28c44e435b9f8238542ac1cb94f1ef83fcb4bf698f34fd3ab34 Oct 11 18:26:58.526 INFO running: cargo +0e07c4281c343e9e15a0a8fca79538ad1a8eb513-alt test --frozen --no-run Oct 11 18:26:58.526 INFO running `"docker" "create" "-v" "/mnt/big/crater/./work/local/test-source/worker-2/rustdoc-test-static-cling/master#0e07c4281c343e9e15a0a8fca79538ad1a8eb513:/source:ro,Z" "-v" "/mnt/big/crater/./work/local/target-dirs/rustdoc-test-static-cling/worker-2/master#0e07c4281c343e9e15a0a8fca79538ad1a8eb513:/target:rw,Z" "-v" "/mnt/big/crater/./work/local/cargo-home:/cargo-home:ro,Z" "-v" "/mnt/big/crater/./work/local/rustup-home:/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "CMD=cargo +0e07c4281c343e9e15a0a8fca79538ad1a8eb513-alt test --frozen --no-run" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-m" "1536M" "--network" "none" "crater"` Oct 11 18:26:58.756 INFO blam! 62ede2172a7fcda02aa5bb34e8203ed92db3f8c7e3844b391f1ce72a68a91a1c Oct 11 18:26:58.764 INFO running `"docker" "start" "-a" "62ede2172a7fcda02aa5bb34e8203ed92db3f8c7e3844b391f1ce72a68a91a1c"` Oct 11 18:26:59.547 INFO kablam! usermod: no changes Oct 11 18:26:59.576 INFO kablam! Compiling is_executable v0.1.0 (/source) Oct 11 18:27:01.422 INFO kablam! Finished dev [unoptimized + debuginfo] target(s) in 1.86s Oct 11 18:27:01.425 INFO kablam! su: No module specific data is present Oct 11 18:27:01.771 INFO running `"docker" "rm" "-f" "62ede2172a7fcda02aa5bb34e8203ed92db3f8c7e3844b391f1ce72a68a91a1c"` Oct 11 18:27:01.960 INFO blam! 62ede2172a7fcda02aa5bb34e8203ed92db3f8c7e3844b391f1ce72a68a91a1c Oct 11 18:27:01.962 INFO running: cargo +0e07c4281c343e9e15a0a8fca79538ad1a8eb513-alt test --frozen Oct 11 18:27:01.962 INFO running `"docker" "create" "-v" "/mnt/big/crater/./work/local/test-source/worker-2/rustdoc-test-static-cling/master#0e07c4281c343e9e15a0a8fca79538ad1a8eb513:/source:ro,Z" "-v" "/mnt/big/crater/./work/local/target-dirs/rustdoc-test-static-cling/worker-2/master#0e07c4281c343e9e15a0a8fca79538ad1a8eb513:/target:rw,Z" "-v" "/mnt/big/crater/./work/local/cargo-home:/cargo-home:ro,Z" "-v" "/mnt/big/crater/./work/local/rustup-home:/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "CMD=cargo +0e07c4281c343e9e15a0a8fca79538ad1a8eb513-alt test --frozen" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-m" "1536M" "--network" "none" "crater"` Oct 11 18:27:02.168 INFO blam! 82610f2bc62cd08c00299e5a277d18f8281fcfc2a67d77d76f3ed04a7894fc2f Oct 11 18:27:02.172 INFO running `"docker" "start" "-a" "82610f2bc62cd08c00299e5a277d18f8281fcfc2a67d77d76f3ed04a7894fc2f"` Oct 11 18:27:03.180 INFO kablam! usermod: no changes Oct 11 18:27:03.248 INFO kablam! Finished dev [unoptimized + debuginfo] target(s) in 0.01s Oct 11 18:27:03.249 INFO kablam! Running /target/debug/deps/is_executable-f0d42dae8e8bd427 Oct 11 18:27:03.251 INFO blam! Oct 11 18:27:03.251 INFO blam! running 0 tests Oct 11 18:27:03.253 INFO blam! Oct 11 18:27:03.253 INFO kablam! Running /target/debug/deps/tests-5209037497a61cfc Oct 11 18:27:03.253 INFO blam! test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out Oct 11 18:27:03.253 INFO blam! Oct 11 18:27:03.256 INFO blam! Oct 11 18:27:03.256 INFO blam! running 4 tests Oct 11 18:27:03.260 INFO blam! test executable ... ok Oct 11 18:27:03.260 INFO blam! test non_existant ... ok Oct 11 18:27:03.260 INFO blam! test not_executable ... ok Oct 11 18:27:03.348 INFO blam! test cargo_readme_up_to_date ... FAILED Oct 11 18:27:03.348 INFO kablam! error: test failed, to rerun pass '--test tests' Oct 11 18:27:03.348 INFO blam! Oct 11 18:27:03.348 INFO kablam! su: No module specific data is present Oct 11 18:27:03.348 INFO blam! failures: Oct 11 18:27:03.348 INFO blam! Oct 11 18:27:03.348 INFO blam! ---- cargo_readme_up_to_date stdout ---- Oct 11 18:27:03.348 INFO blam! Checking that `cargo readme > README.md` is up to date... Oct 11 18:27:03.348 INFO blam! Oct 11 18:27:03.348 INFO blam! +++ expected README.md Oct 11 18:27:03.348 INFO blam! --- actual README.md Oct 11 18:27:03.348 INFO blam! -# is_executable Oct 11 18:27:03.348 INFO blam! - Oct 11 18:27:03.348 INFO blam! -Is there an executable file at the given path? Oct 11 18:27:03.348 INFO blam! - Oct 11 18:27:03.348 INFO blam! -[![](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) Oct 11 18:27:03.348 INFO blam! - Oct 11 18:27:03.348 INFO blam! -A small helper function which determines whether or not the given path points to Oct 11 18:27:03.348 INFO blam! -an executable file. If there is no file at the given path, or the file is not Oct 11 18:27:03.348 INFO blam! -executable, then `false` is returned. When there is a file and the file is Oct 11 18:27:03.348 INFO blam! -executable, then `true` is returend. Oct 11 18:27:03.348 INFO blam! - Oct 11 18:27:03.348 INFO blam! -Answering this question is OS specific: some operating systems (Windows) do not Oct 11 18:27:03.348 INFO blam! -distinguish between executable and non-executable file permissions. On such Oct 11 18:27:03.348 INFO blam! -OSes, if there is a file at the given path, then `true` is returned. Oct 11 18:27:03.348 INFO blam! - Oct 11 18:27:03.348 INFO blam! -The API comes in two flavors: Oct 11 18:27:03.348 INFO blam! - Oct 11 18:27:03.348 INFO blam! -1. An extension trait to add an `is_executable` method on `std::path::Path` and Oct 11 18:27:03.348 INFO blam! - `std::fs::Permissions`: Oct 11 18:27:03.348 INFO blam! - Oct 11 18:27:03.348 INFO blam! - ```rust Oct 11 18:27:03.348 INFO blam! - use is_executable::IsExecutable; Oct 11 18:27:03.348 INFO blam! - use std::fs; Oct 11 18:27:03.348 INFO blam! - use std::path::Path; Oct 11 18:27:03.348 INFO blam! - Oct 11 18:27:03.348 INFO blam! - let path = Path::new("some/path/to/a/file"); Oct 11 18:27:03.348 INFO blam! - Oct 11 18:27:03.348 INFO blam! - // Determine if `path` is executable. Oct 11 18:27:03.348 INFO blam! - if path.is_executable() { Oct 11 18:27:03.348 INFO blam! - println!("The path is executable!"); Oct 11 18:27:03.348 INFO blam! - } else { Oct 11 18:27:03.348 INFO blam! - println!("The path is _not_ executable!"); Oct 11 18:27:03.348 INFO blam! - } Oct 11 18:27:03.348 INFO blam! - Oct 11 18:27:03.348 INFO blam! - // Determine if some `std::fs::Metadata`'s `std::fs::Permissions` are Oct 11 18:27:03.348 INFO blam! - // executable. Oct 11 18:27:03.348 INFO blam! - # let _foo = || -> ::std::io::Result<()> { Oct 11 18:27:03.348 INFO blam! - if fs::metadata("some/path")?.permissions().is_executable() { Oct 11 18:27:03.348 INFO blam! - println!("The permissions are executable!"); Oct 11 18:27:03.348 INFO blam! - } else { Oct 11 18:27:03.348 INFO blam! - println!("The permissions are _not_ executable!"); Oct 11 18:27:03.348 INFO blam! - } Oct 11 18:27:03.348 INFO blam! - # Ok(()) Oct 11 18:27:03.348 INFO blam! - # }; Oct 11 18:27:03.348 INFO blam! - ``` Oct 11 18:27:03.348 INFO blam! - Oct 11 18:27:03.348 INFO blam! -2. For convenience, a standalone `is_executable` function, which takes any Oct 11 18:27:03.348 INFO blam! -`AsRef`: Oct 11 18:27:03.348 INFO blam! - Oct 11 18:27:03.348 INFO blam! - ```rust Oct 11 18:27:03.348 INFO blam! - use is_executable::is_executable; Oct 11 18:27:03.348 INFO blam! - use std::path::Path; Oct 11 18:27:03.348 INFO blam! - Oct 11 18:27:03.348 INFO blam! - let path = Path::new("some/path/to/a/file"); Oct 11 18:27:03.348 INFO blam! - Oct 11 18:27:03.348 INFO blam! - if is_executable(&path) { Oct 11 18:27:03.348 INFO blam! - println!("The path is executable!"); Oct 11 18:27:03.348 INFO blam! - } else { Oct 11 18:27:03.348 INFO blam! - println!("The path is _not_ executable!"); Oct 11 18:27:03.348 INFO blam! - } Oct 11 18:27:03.348 INFO blam! - ``` Oct 11 18:27:03.348 INFO blam! - Oct 11 18:27:03.348 INFO blam! -License: Apache-2.0/MIT Oct 11 18:27:03.348 INFO blam! - Oct 11 18:27:03.348 INFO blam! thread 'cargo_readme_up_to_date' panicked at 'Run `cargo readme > README.md` to update README.md', tests/tests.rs:46:9 Oct 11 18:27:03.348 INFO blam! stack backtrace: Oct 11 18:27:03.349 INFO blam! 0: 0x5581bf1a1e3e - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::h52ace5b3d4e95617 Oct 11 18:27:03.349 INFO blam! at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49 Oct 11 18:27:03.349 INFO blam! 1: 0x5581bf1ae356 - std::sys_common::backtrace::print::h6cfc8a66009c1cc9 Oct 11 18:27:03.349 INFO blam! at libstd/sys_common/backtrace.rs:71 Oct 11 18:27:03.349 INFO blam! at libstd/sys_common/backtrace.rs:59 Oct 11 18:27:03.349 INFO blam! 2: 0x5581bf1a705d - std::panicking::default_hook::{{closure}}::h47bedf778bf88480 Oct 11 18:27:03.349 INFO blam! at libstd/panicking.rs:211 Oct 11 18:27:03.349 INFO blam! 3: 0x5581bf1a6d6b - std::panicking::default_hook::h1ef46fa7cd894809 Oct 11 18:27:03.349 INFO blam! at libstd/panicking.rs:221 Oct 11 18:27:03.349 INFO blam! 4: 0x5581bf1a770c - std::panicking::rust_panic_with_hook::h05510fde8841c579 Oct 11 18:27:03.349 INFO blam! at libstd/panicking.rs:476 Oct 11 18:27:03.349 INFO blam! 5: 0x5581bf134a4f - std::panicking::begin_panic::h6dfe67768f9bd1f7 Oct 11 18:27:03.349 INFO blam! at libstd/panicking.rs:410 Oct 11 18:27:03.349 INFO blam! 6: 0x5581bf1339f1 - tests::cargo_readme_up_to_date::hbc8c04e1ce8b3ef5 Oct 11 18:27:03.349 INFO blam! at tests/tests.rs:46 Oct 11 18:27:03.349 INFO blam! 7: 0x5581bf133139 - tests::cargo_readme_up_to_date::{{closure}}::h8a1e0a6e885da6d4 Oct 11 18:27:03.349 INFO blam! at tests/tests.rs:11 Oct 11 18:27:03.349 INFO blam! 8: 0x5581bf13a0dd - core::ops::function::FnOnce::call_once::h2fde58def602b942 Oct 11 18:27:03.349 INFO blam! at libcore/ops/function.rs:238 Oct 11 18:27:03.349 INFO blam! 9: 0x5581bf13e4ae - >::call_box::h95b7cb918af67b5d Oct 11 18:27:03.349 INFO blam! at libtest/lib.rs:1468 Oct 11 18:27:03.349 INFO blam! at libcore/ops/function.rs:238 Oct 11 18:27:03.349 INFO blam! at liballoc/boxed.rs:672 Oct 11 18:27:03.349 INFO blam! 10: 0x5581bf1b9529 - __rust_maybe_catch_panic Oct 11 18:27:03.349 INFO blam! at libpanic_unwind/lib.rs:102 Oct 11 18:27:03.349 INFO blam! 11: 0x5581bf15effd - std::sys_common::backtrace::__rust_begin_short_backtrace::he1120aab928e481f Oct 11 18:27:03.349 INFO blam! at libstd/panicking.rs:289 Oct 11 18:27:03.349 INFO blam! at libstd/panic.rs:392 Oct 11 18:27:03.349 INFO blam! at libtest/lib.rs:1423 Oct 11 18:27:03.349 INFO blam! at libstd/sys_common/backtrace.rs:136 Oct 11 18:27:03.349 INFO blam! 12: 0x5581bf15fc04 - std::panicking::try::do_call::ha990a345054c2d63 Oct 11 18:27:03.349 INFO blam! at libstd/thread/mod.rs:409 Oct 11 18:27:03.349 INFO blam! at libstd/panic.rs:313 Oct 11 18:27:03.349 INFO blam! at libstd/panicking.rs:310 Oct 11 18:27:03.349 INFO blam! 13: 0x5581bf1b9529 - __rust_maybe_catch_panic Oct 11 18:27:03.349 INFO blam! at libpanic_unwind/lib.rs:102 Oct 11 18:27:03.349 INFO blam! 14: 0x5581bf14d1c6 - >::call_box::h96125cb29a9ba44b Oct 11 18:27:03.349 INFO blam! at libstd/panicking.rs:289 Oct 11 18:27:03.349 INFO blam! at libstd/panic.rs:392 Oct 11 18:27:03.349 INFO blam! at libstd/thread/mod.rs:408 Oct 11 18:27:03.349 INFO blam! at liballoc/boxed.rs:672 Oct 11 18:27:03.349 INFO blam! 15: 0x5581bf1a472a - std::sys_common::thread::start_thread::h97c4c5d82028f6b1 Oct 11 18:27:03.349 INFO blam! at liballoc/boxed.rs:682 Oct 11 18:27:03.349 INFO blam! at libstd/sys_common/thread.rs:24 Oct 11 18:27:03.349 INFO blam! 16: 0x5581bf197915 - std::sys::unix::thread::Thread::new::thread_start::he7d65efc4dd16886 Oct 11 18:27:03.349 INFO blam! at libstd/sys/unix/thread.rs:90 Oct 11 18:27:03.349 INFO blam! 17: 0x7fbe7d9eb6b9 - start_thread Oct 11 18:27:03.349 INFO blam! 18: 0x7fbe7d50b41c - clone Oct 11 18:27:03.349 INFO blam! 19: 0x0 - Oct 11 18:27:03.349 INFO blam! Oct 11 18:27:03.349 INFO blam! Oct 11 18:27:03.349 INFO blam! failures: Oct 11 18:27:03.349 INFO blam! cargo_readme_up_to_date Oct 11 18:27:03.349 INFO blam! Oct 11 18:27:03.349 INFO blam! test result: FAILED. 3 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out Oct 11 18:27:03.349 INFO blam! Oct 11 18:27:04.000 INFO running `"docker" "rm" "-f" "82610f2bc62cd08c00299e5a277d18f8281fcfc2a67d77d76f3ed04a7894fc2f"` Oct 11 18:27:04.101 INFO blam! 82610f2bc62cd08c00299e5a277d18f8281fcfc2a67d77d76f3ed04a7894fc2f