cshuaimin / scd

Sync current directory between your shell and a file manager
MIT License
128 stars 0 forks source link

Can't build: error[E0658]: use of unstable library feature 'matches_macro' #2

Closed janlimpens closed 4 years ago

janlimpens commented 4 years ago

Started with cargo install and it went well until


     Running `rustc --edition=2018 --crate-name scd /home/someusername/.cargo/registry/src/github.com-1ecc6299db9ec823/scd-0.1.0/src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=1ae8e141ac7754d8 -C extra-filename=-1ae8e141ac7754d8 --out-dir /tmp/cargo-installc5IZcT/release/deps -L dependency=/tmp/cargo-installc5IZcT/release/deps --extern anyhow=/tmp/cargo-installc5IZcT/release/deps/libanyhow-4d93c80380af8a60.rlib --extern crossbeam_channel=/tmp/cargo-installc5IZcT/release/deps/libcrossbeam_channel-f425790613309014.rlib --extern nix=/tmp/cargo-installc5IZcT/release/deps/libnix-88f225f22a93f05f.rlib --extern notify=/tmp/cargo-installc5IZcT/release/deps/libnotify-a0061427f6060594.rlib --extern serde=/tmp/cargo-installc5IZcT/release/deps/libserde-88df891b12fa4496.rlib --extern serde_yaml=/tmp/cargo-installc5IZcT/release/deps/libserde_yaml-5a3690eb1a0cb492.rlib --extern structopt=/tmp/cargo-installc5IZcT/release/deps/libstructopt-b552ba0a645fcb2e.rlib --extern sysinfo=/tmp/cargo-installc5IZcT/release/deps/libsysinfo-da381545ec2b5531.rlib --extern termion=/tmp/cargo-installc5IZcT/release/deps/libtermion-7c164d932a107834.rlib --extern tui=/tmp/cargo-installc5IZcT/release/deps/libtui-2e74743ed0f5d0f7.rlib --cap-lints allow`
error[E0658]: use of unstable library feature 'matches_macro'
   --> /home/someusername/.cargo/registry/src/github.com-1ecc6299db9ec823/scd-0.1.0/src/handlers.rs:161:16
    |
161 |             if matches!(action, Action::Filter) {
    |                ^^^^^^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/65721

error[E0658]: use of unstable library feature 'matches_macro'
   --> /home/someusername/.cargo/registry/src/github.com-1ecc6299db9ec823/scd-0.1.0/src/handlers.rs:171:16
    |
171 |             if matches!(action, Action::Filter) {
    |                ^^^^^^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/65721

error[E0658]: use of unstable library feature 'matches_macro'
   --> /home/someusername/.cargo/registry/src/github.com-1ecc6299db9ec823/scd-0.1.0/src/handlers.rs:189:16
    |
189 |             if matches!(action, Action::Filter) {
    |                ^^^^^^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/65721

error[E0658]: use of unstable library feature 'matches_macro'
   --> /home/someusername/.cargo/registry/src/github.com-1ecc6299db9ec823/scd-0.1.0/src/handlers.rs:199:16
    |
199 |             if matches!(action, Action::Filter) {
    |                ^^^^^^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/65721

error[E0658]: use of unstable library feature 'matches_macro'
  --> /home/someusername/.cargo/registry/src/github.com-1ecc6299db9ec823/scd-0.1.0/src/main.rs:78:43
   |
78 |             Event::Key(Key::Char('q')) if matches!(app.mode, app::Mode::Normal) => {
   |                                           ^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/65721

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0658`.
error: failed to compile `scd v0.1.0`, intermediate artifacts can be found at `/tmp/cargo-installc5IZcT`

Caused by:
  could not compile `scd`.

Caused by:
  process didn't exit successfully: `rustc --edition=2018 --crate-name scd /home/someusername/.cargo/registry/src/github.com-1ecc6299db9ec823/scd-0.1.0/src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=1ae8e141ac7754d8 -C extra-filename=-1ae8e141ac7754d8 --out-dir /tmp/cargo-installc5IZcT/release/deps -L dependency=/tmp/cargo-installc5IZcT/release/deps --extern anyhow=/tmp/cargo-installc5IZcT/release/deps/libanyhow-4d93c80380af8a60.rlib --extern crossbeam_channel=/tmp/cargo-installc5IZcT/release/deps/libcrossbeam_channel-f425790613309014.rlib --extern nix=/tmp/cargo-installc5IZcT/release/deps/libnix-88f225f22a93f05f.rlib --extern notify=/tmp/cargo-installc5IZcT/release/deps/libnotify-a0061427f6060594.rlib --extern serde=/tmp/cargo-installc5IZcT/release/deps/libserde-88df891b12fa4496.rlib --extern serde_yaml=/tmp/cargo-installc5IZcT/release/deps/libserde_yaml-5a3690eb1a0cb492.rlib --extern structopt=/tmp/cargo-installc5IZcT/release/deps/libstructopt-b552ba0a645fcb2e.rlib --extern sysinfo=/tmp/cargo-installc5IZcT/release/deps/libsysinfo-da381545ec2b5531.rlib --extern termion=/tmp/cargo-installc5IZcT/release/deps/libtermion-7c164d932a107834.rlib --extern tui=/tmp/cargo-installc5IZcT/release/deps/libtui-2e74743ed0f5d0f7.rlib --cap-lints allow` (exit code: 1)```
cshuaimin commented 4 years ago

Hi, The matches! macro was stabilized in Rust 1.42. Are you using an old compiler?

janlimpens commented 4 years ago

So it seems, 1.40. Thanks!

Hi, The matches! macro was stabilized in Rust 1.42. Are you using an old compiler?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.