structopt 0.2.9

Parse command line argument by defining a struct.
Documentation
Build #102295 2018-06-05T15:48:45.857433+00:00
# rustc version
rustc 1.26.0-dev (0eb87c9bf 2018-03-16)# docs.rs version
cratesfyi 0.5.0 (579f83b 2018-03-05)# build log
Updating registry `https://github.com/rust-lang/crates.io-index`
Downloading structopt v0.2.9
Fresh vec_map v0.8.1
Fresh strsim v0.7.0
Fresh unicode-width v0.1.5
Fresh ansi_term v0.11.0
Fresh libc v0.2.42
Fresh bitflags v1.0.3
Fresh unicode-xid v0.1.0
Fresh atty v0.2.10
Fresh textwrap v0.9.0
Fresh proc-macro2 v0.4.6
Fresh quote v0.6.3
Fresh syn v0.14.2
Compiling structopt-derive v0.2.9
Fresh clap v2.31.2
Running `rustc --crate-name structopt_derive .cargo/registry/src/github.com-1ecc6299db9ec823/structopt-derive-0.2.9/src/lib.rs --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C debuginfo=2 -C metadata=66d361b037e0bd71 -C extra-filename=-66d361b037e0bd71 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern syn=/home/cratesfyi/cratesfyi/debug/deps/libsyn-1d67ee22b387fdc2.rlib --extern-version syn=syn,0.14.2 --extern proc_macro2=/home/cratesfyi/cratesfyi/debug/deps/libproc_macro2-9faa3c9bc98776ed.rlib --extern-version proc_macro2=proc-macro2,0.4.6 --extern quote=/home/cratesfyi/cratesfyi/debug/deps/libquote-ce10ed3dee502eae.rlib --extern-version quote=quote,0.6.3 --cap-lints allow`
error[E0658]: non-reference pattern used to match a reference (see issue #42640)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/structopt-derive-0.2.9/src/attrs.rs:112:17
|
112 | /                 NameValue(MetaNameValue {
113 | |                     ident,
114 | |                     lit: Str(value),
115 | |                     ..
116 | |                 }) => self.push_str_method(&ident.to_string(), &value.value()),
| |__________________^
|
= help: add #![feature(match_default_bindings)] to the crate attributes to enable
help: consider using a reference
|
112 |                 &NameValue(MetaNameValue {
113 |                     ident,
114 |                     lit: Str(value),
115 |                     ..
116 |                 }) => self.push_str_method(&ident.to_string(), &value.value()),
|

error[E0658]: non-reference pattern used to match a reference (see issue #42640)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/structopt-derive-0.2.9/src/attrs.rs:117:17
|
117 |                 NameValue(MetaNameValue { ident, lit, .. }) => self.methods.push(Method {
|                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a reference: `&NameValue(MetaNameValue { ident, lit, .. })`
|
= help: add #![feature(match_default_bindings)] to the crate attributes to enable

error[E0658]: non-reference pattern used to match a reference (see issue #42640)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/structopt-derive-0.2.9/src/attrs.rs:121:17
|
121 |                 List(MetaList { ident, nested, .. }) if ident == "parse" => {
|                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a reference: `&List(MetaList { ident, nested, .. })`
|
= help: add #![feature(match_default_bindings)] to the crate attributes to enable

error[E0658]: non-reference pattern used to match a reference (see issue #42640)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/structopt-derive-0.2.9/src/attrs.rs:151:17
|
151 | /                 List(MetaList {
152 | |                     ident, ref nested, ..
153 | |                 }) if ident == "raw" =>
| |__________________^
|
= help: add #![feature(match_default_bindings)] to the crate attributes to enable
help: consider using a reference
|
151 |                 &List(MetaList {
152 |                     ident, ref nested, ..
153 |                 }) if ident == "raw" =>
|

error[E0658]: non-reference pattern used to match a reference (see issue #42640)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/structopt-derive-0.2.9/src/attrs.rs:164:17
|
164 |                 Word(ref w) if w == "subcommand" => {
|                 ^^^^^^^^^^^ help: consider using a reference: `&Word(ref w)`
|
= help: add #![feature(match_default_bindings)] to the crate attributes to enable

error[E0658]: non-reference pattern used to match a reference (see issue #42640)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/structopt-derive-0.2.9/src/attrs.rs:167:17
|
167 |                 Word(ref w) if w == "flatten" => {
|                 ^^^^^^^^^^^ help: consider using a reference: `&Word(ref w)`
|
= help: add #![feature(match_default_bindings)] to the crate attributes to enable

error[E0658]: non-reference pattern used to match a reference (see issue #42640)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/structopt-derive-0.2.9/src/attrs.rs:170:25
|
170 |                 ref i @ List(..) | ref i @ Word(..) => panic!("unsupported option: {}", quote!(#i)),
|                         ^^^^^^^^ help: consider using a reference: `&List(..)`
|
= help: add #![feature(match_default_bindings)] to the crate attributes to enable

error[E0658]: non-reference pattern used to match a reference (see issue #42640)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/structopt-derive-0.2.9/src/attrs.rs:170:44
|
170 |                 ref i @ List(..) | ref i @ Word(..) => panic!("unsupported option: {}", quote!(#i)),
|                                            ^^^^^^^^ help: consider using a reference: `&Word(..)`
|
= help: add #![feature(match_default_bindings)] to the crate attributes to enable

error[E0658]: non-reference pattern used to match a reference (see issue #42640)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/structopt-derive-0.2.9/src/attrs.rs:127:25
|
127 | /                         Meta(NameValue(MetaNameValue {
128 | |                             ident, lit: Str(v), ..
129 | |                         })) => {
| |___________________________^
|
= help: add #![feature(match_default_bindings)] to the crate attributes to enable
help: consider using a reference
|
127 |                         &Meta(NameValue(MetaNameValue {
128 |                             ident, lit: Str(v), ..
129 |                         })) => {
|

error[E0658]: non-reference pattern used to match a reference (see issue #42640)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/structopt-derive-0.2.9/src/attrs.rs:134:25
|
134 |                         Meta(Word(ref i)) => {
|                         ^^^^^^^^^^^^^^^^^ help: consider using a reference: `&Meta(Word(ref i))`
|
= help: add #![feature(match_default_bindings)] to the crate attributes to enable

error[E0658]: non-reference pattern used to match a reference (see issue #42640)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/structopt-derive-0.2.9/src/attrs.rs:157:29
|
157 | /                             Meta(NameValue(MetaNameValue {
158 | |                                 ident, lit: Str(v), ..
159 | |                             })) => self.push_raw_method(&ident.to_string(), v),
| |_______________________________^
|
= help: add #![feature(match_default_bindings)] to the crate attributes to enable
help: consider using a reference
|
157 |                             &Meta(NameValue(MetaNameValue {
158 |                                 ident, lit: Str(v), ..
159 |                             })) => self.push_raw_method(&ident.to_string(), v),
|

error: aborting due to 11 previous errors

For more information about this error, try `rustc --explain E0658`.
thread 'main' panicked at 'Error(
CargoError(
ChainedError {
error: Could not compile `structopt-derive`.,
cause: process didn't exit successfully: `rustc --crate-name structopt_derive .cargo/registry/src/github.com-1ecc6299db9ec823/structopt-derive-0.2.9/src/lib.rs --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C debuginfo=2 -C metadata=66d361b037e0bd71 -C extra-filename=-66d361b037e0bd71 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern syn=/home/cratesfyi/cratesfyi/debug/deps/libsyn-1d67ee22b387fdc2.rlib --extern-version syn=syn,0.14.2 --extern proc_macro2=/home/cratesfyi/cratesfyi/debug/deps/libproc_macro2-9faa3c9bc98776ed.rlib --extern-version proc_macro2=proc-macro2,0.4.6 --extern quote=/home/cratesfyi/cratesfyi/debug/deps/libquote-ce10ed3dee502eae.rlib --extern-version quote=quote,0.6.3 --cap-lints allow` (exit code: 101)
}
),
State {
next_error: None,
backtrace: None
}
)', src/bin/cratesfyi.rs:142:13
note: Run with `RUST_BACKTRACE=1` for a backtrace.