Skip to content

cargo build thiserror failed #11363

Closed as not planned
Closed as not planned
@baoyachi

Description

@baoyachi

Problem

Execute cargo clean to solve the compilation pass. Why directly execute cargo b to report this error

~ cargo b
...
...
    Checking webpki-roots v0.22.5
    Checking cpufeatures v0.2.5
    Checking polling v2.4.0
    Checking async-channel v1.7.1
    Checking tokio-rustls v0.23.4
    Checking thiserror v1.0.37
    Checking rust_decimal v1.26.1
    Checking sha1 v0.10.5
    Checking async-lock v2.6.0
error[E0554]: `#![feature]` may not be used on the stable release channel
   --> /Users/baoyachi/.cargo/registry/src/crates.io/thiserror-1.0.37/src/lib.rs:238:34
    |
238 | #![cfg_attr(provide_any, feature(provide_any))]
    |                                  ^^^^^^^^^^^

For more information about this error, try `rustc --explain E0554`.
error: could not compile `thiserror` due to previous error
warning: build failed, waiting for other jobs to finish...

The Detail error: dtolnay/thiserror#192

Steps

No response

Possible Solution(s)

dtolnay/thiserror#192

Notes

No response

Version

~ rustc -Vv
rustc 1.65.0 (897e37553 2022-11-02)
binary: rustc
commit-hash: 897e37553bba8b42751c67658967889d11ecd120
commit-date: 2022-11-02
host: x86_64-apple-darwin
release: 1.65.0
LLVM version: 15.0.0
➜  ~ cargo -Vv
cargo 1.65.0 (4bc8f24d3 2022-10-20)
release: 1.65.0
commit-hash: 4bc8f24d3e899462e43621aab981f6383a370365
commit-date: 2022-10-20
host: x86_64-apple-darwin
libgit2: 1.5.0 (sys:0.15.0 vendored)
libcurl: 7.79.1 (sys:0.4.55+curl-7.83.1 system ssl:(SecureTransport) LibreSSL/3.3.6)
os: Mac OS 12.6.0 [64-bit]

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions