Skip to content

Failure to evaluate build script for anyhow  #9198

Closed
@neonaot

Description

@neonaot

Environment

CLion2022.2
cargo 1.62.1-aarch64-apple-darwin
Rust plugin 0.4.175.4772-222

Originally posted in https://youtrack.jetbrains.com/issue/CPP-30162/Failure-to-evaluate-build-script-for-anyhow

Problem description

Error during syncing:

error[E0554]: `#![feature]` may not be used on the stable release channel
   --> /Users/wrichard/.cargo/registry/src/git.colasdn.top-1ecc6299db9ec823/anyhow-1.0.61/src/lib.rs:214:32
    |
214 | #![cfg_attr(backtrace, feature(backtrace))]
    |                                ^^^^^^^^^

Expected

Code completion involving include!(concat!(env!("OUT_DIR"), "/bindings.rs")) works

Steps to reproduce

  1. Create a rust project with a dependency on anyhow
  2. Enable evaluate.build.scripts and proc macro expansion
  3. Sync project

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions