Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error[E0658]: use of unstable library feature 'matches_macro' #69

Closed
vielmetti opened this issue May 18, 2020 · 4 comments
Closed

error[E0658]: use of unstable library feature 'matches_macro' #69

vielmetti opened this issue May 18, 2020 · 4 comments

Comments

@vielmetti
Copy link

Describe the bug

failed to compile gitui v0.2.5 on Ubuntu 20.04 on WSL 2

To Reproduce

run cargo install gitui

errors in the log:
error[E0658]: use of unstable library feature 'matches_macro'

Expected behavior

cargo install gitui should work as documented.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 10 + WSL 2 + Ubuntu 20.04 LTS
  • Version: gitui v0.2.5

Additional context
Add any other context about the problem here.

error[E0658]: use of unstable library feature 'matches_macro'
   --> /home/emv/.cargo/registry/src/github.com-1ecc6299db9ec823/gitui-0.2.5/src/components/changes.rs:140:17
    |
140 |                 matches!(tree_item.kind, FileTreeItemKind::Path(_));
    |                 ^^^^^^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/65721

error[E0658]: use of unstable library feature 'matches_macro'
   --> /home/emv/.cargo/registry/src/github.com-1ecc6299db9ec823/gitui-0.2.5/src/components/statustree.rs:199:12
    |
199 |         if matches!(item_kind,  FileTreeItemKind::Path(PathCollapsed(collapsed))
    |            ^^^^^^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/65721

error[E0658]: use of unstable library feature 'matches_macro'
   --> /home/emv/.cargo/registry/src/github.com-1ecc6299db9ec823/gitui-0.2.5/src/components/statustree.rs:217:12
    |
217 |         if matches!(item_kind, FileTreeItemKind::File(_))
    |            ^^^^^^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/65721

error[E0658]: use of unstable library feature 'matches_macro'
   --> /home/emv/.cargo/registry/src/github.com-1ecc6299db9ec823/gitui-0.2.5/src/components/statustree.rs:218:16
    |
218 |             || matches!(item_kind,FileTreeItemKind::Path(PathCollapsed(collapsed))
    |                ^^^^^^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/65721

error[E0658]: use of unstable library feature 'matches_macro'
   --> /home/emv/.cargo/registry/src/github.com-1ecc6299db9ec823/gitui-0.2.5/src/components/statustree.rs:226:19
    |
226 |         } else if matches!(item_kind,  FileTreeItemKind::Path(PathCollapsed(collapsed))
    |                   ^^^^^^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/65721

error[E0658]: use of unstable library feature 'matches_macro'
   --> /home/emv/.cargo/registry/src/github.com-1ecc6299db9ec823/gitui-0.2.5/src/components/statustree.rs:300:16
    |
300 |             if matches!(item_kind, FileTreeItemKind::Path(PathCollapsed(collapsed)) if collapsed)
    |                ^^^^^^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/65721

error: aborting due to 6 previous errors

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

Caused by:
  could not compile `gitui`.
@vielmetti
Copy link
Author

Problem replicates on Ubuntu 20.04 on the Pi 4. Both report rustc 1.14.0 as the version.

@vielmetti
Copy link
Author

The error message references rust-lang/rust#65721

@extrawurst
Copy link
Owner

yeah the min rust version is 1.42 - I should mention that in the readme. using rustup makes it super easy to install a more current version of rust.

@vielmetti
Copy link
Author

Installed the current version using rustup and all is well.

(wow, that's an old version of rustc in Ubuntu 20.04)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants