jni 0.9.2

Rust bindings to the JNI
Build #82206 2018-01-12T17:04:17.621565+00:00
# rustc version
rustc 1.22.0-dev (b1cfd1750 2017-09-21)
# docs.rs version
cratesfyi 0.4.2 (13da7b2 2017-10-12)

# build log
Updating registry `https://github.com/rust-lang/crates.io-index`
Downloading jni v0.9.2
Fresh cc v1.0.4
Fresh jni-sys v0.3.0
Fresh rustc-demangle v0.1.5
Fresh byteorder v1.2.1
Fresh ascii v0.7.1
Fresh cesu8 v1.1.0
Fresh cfg-if v0.1.2
Fresh same-file v1.0.2
Fresh libc v0.2.36
Fresh log v0.4.1
Fresh combine v2.5.2
Fresh log v0.3.9
Fresh backtrace-sys v0.1.16
Fresh walkdir v2.0.1
Fresh backtrace v0.3.5
Compiling jni v0.9.2
Fresh error-chain v0.11.0
Running `rustc --crate-name build_script_build .cargo/registry/src/github.com-1ecc6299db9ec823/jni-0.9.2/build.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="error-chain"' --cfg 'feature="backtrace"' -C metadata=434933ffab884cad -C extra-filename=-434933ffab884cad --out-dir /home/cratesfyi/cratesfyi/debug/build/jni-434933ffab884cad -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern walkdir=/home/cratesfyi/cratesfyi/debug/deps/libwalkdir-fbb3b6f5b0f9672f.rlib --extern-version walkdir=walkdir,2.0.1 --cap-lints allow`
error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/jni-0.9.2/build.rs:66:54
|
66 |        let (mut exe_path, mut exe_meta): (PathBuf, _) = paths
|   ______________________________________________________-
|  |______________________________________________________|
| ||
67 | ||         .filter_map(|p| symlink_metadata(p).map(|m| (p.into(), m)).ok())
68 | ||         .nth(0)?;
| ||                -
| ||________________|
| |_________________the `?` operator cannot be applied to type `std::option::Option<(_, std::fs::Metadata)>`
|                   in this macro invocation
|
= help: the trait `std::ops::Try` is not implemented for `std::option::Option<(_, std::fs::Metadata)>`
= note: required by `std::ops::Try::into_result`

error[E0277]: the `?` operator can only be used in a function that returns `Result` (or another type that implements `std::ops::Try`)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/jni-0.9.2/build.rs:66:54
|
66 |        let (mut exe_path, mut exe_meta): (PathBuf, _) = paths
|   ______________________________________________________-
|  |______________________________________________________|
| ||
67 | ||         .filter_map(|p| symlink_metadata(p).map(|m| (p.into(), m)).ok())
68 | ||         .nth(0)?;
| ||                -
| ||________________|
| |_________________cannot use the `?` operator in a function that returns `std::option::Option<std::path::PathBuf>`
|                   in this macro invocation
|
= help: the trait `std::ops::Try` is not implemented for `std::option::Option<std::path::PathBuf>`
= note: required by `std::ops::Try::from_error`

error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/jni-0.9.2/build.rs:71:20
|
71 |         exe_path = ::std::fs::read_link(&exe_path).ok()?;
|                    -------------------------------------
|                    |
|                    the `?` operator cannot be applied to type `std::option::Option<std::path::PathBuf>`
|                    in this macro invocation
|
= help: the trait `std::ops::Try` is not implemented for `std::option::Option<std::path::PathBuf>`
= note: required by `std::ops::Try::into_result`

error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/jni-0.9.2/build.rs:72:20
|
72 |         exe_meta = symlink_metadata(&exe_path).ok()?;
|                    ---------------------------------
|                    |
|                    the `?` operator cannot be applied to type `std::option::Option<std::fs::Metadata>`
|                    in this macro invocation
|
= help: the trait `std::ops::Try` is not implemented for `std::option::Option<std::fs::Metadata>`
= note: required by `std::ops::Try::into_result`

error[E0277]: the `?` operator can only be used in a function that returns `Result` (or another type that implements `std::ops::Try`)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/jni-0.9.2/build.rs:72:20
|
72 |         exe_meta = symlink_metadata(&exe_path).ok()?;
|                    ---------------------------------
|                    |
|                    cannot use the `?` operator in a function that returns `std::option::Option<std::path::PathBuf>`
|                    in this macro invocation
|
= help: the trait `std::ops::Try` is not implemented for `std::option::Option<std::path::PathBuf>`
= note: required by `std::ops::Try::from_error`

error: aborting due to 5 previous errors

thread 'main' panicked at 'ChainedError {
error: Could not compile `jni`.,
cause: process didn't exit successfully: `rustc --crate-name build_script_build .cargo/registry/src/github.com-1ecc6299db9ec823/jni-0.9.2/build.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg feature="default" --cfg feature="error-chain" --cfg feature="backtrace" -C metadata=434933ffab884cad -C extra-filename=-434933ffab884cad --out-dir /home/cratesfyi/cratesfyi/debug/build/jni-434933ffab884cad -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern walkdir=/home/cratesfyi/cratesfyi/debug/deps/libwalkdir-fbb3b6f5b0f9672f.rlib --extern-version walkdir=walkdir,2.0.1 --cap-lints allow` (exit code: 101)
}', src/bin/cratesfyi.rs:142
note: Run with `RUST_BACKTRACE=1` for a backtrace.