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

Fails to evaluate anyhow crate's build script after sync. #9959

Closed
ledyba opened this issue Jan 12, 2023 · 2 comments
Closed

Fails to evaluate anyhow crate's build script after sync. #9959

ledyba opened this issue Jan 12, 2023 · 2 comments
Labels
bug subsystem::project model Issues with setting up project structure and retrieving information about project from various tool

Comments

@ledyba
Copy link

ledyba commented Jan 12, 2023

Environment

  • IntelliJ Rust plugin version: 0.4.185.5086-223
  • Rust toolchain version: 1.66.1 (90743e729 2023-01-10) x86_64-pc-windows-msvc
  • IDE name and version: CLion 2022.3.1 (CL-223.8214.51)
  • Operating system: Windows 10 10.0
  • Macro expansion: enabled

Problem description

Failed to build project with this message:

error[E0554]: `#![feature]` may not be used on the stable release channel
   --> C:\Users\kaede\scoop\persist\rustup-msvc\.cargo\registry\src\github.com-1ecc6299db9ec823\anyhow-1.0.68\src\lib.rs:214:32
    |
214 | #![cfg_attr(backtrace, feature(error_generic_member_access, provide_any))]
    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^

image

Steps to reproduce

  1. Create a new project.
  2. Add anyhow = "1.0.68" to dependencies. Do not push build button yet.
  3. Push sync button.
  4. Build the project.

After step 4, cargo build always fails. For workaround, remove /target/ and type cargo build from a terminal.

Maybe rust-lang/rust-analyzer#12973, dtolnay/anyhow#250 and dtolnay/anyhow#288 are related issue.

#9198 may be not fully resolved or en-bugged.

@ledyba ledyba changed the title Failed to evaluate anyhow crate's build script. Failed to evaluate anyhow crate's build script after sync. Jan 12, 2023
@ledyba ledyba changed the title Failed to evaluate anyhow crate's build script after sync. Fail to evaluate anyhow crate's build script after sync. Jan 12, 2023
@ledyba ledyba changed the title Fail to evaluate anyhow crate's build script after sync. Fails to evaluate anyhow crate's build script after sync. Jan 12, 2023
@mati865
Copy link
Contributor

mati865 commented Jan 13, 2023

Possibly fixed by #9901

@Undin Undin added bug subsystem::project model Issues with setting up project structure and retrieving information about project from various tool labels Jan 14, 2023
@Undin
Copy link
Member

Undin commented Jan 14, 2023

Fixed by #9901

@Undin Undin closed this as completed Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug subsystem::project model Issues with setting up project structure and retrieving information about project from various tool
Projects
None yet
Development

No branches or pull requests

3 participants