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

bug to generate doc due to thiserror v1.0.35 #2118

Closed
mortifia opened this issue Sep 24, 2022 · 2 comments
Closed

bug to generate doc due to thiserror v1.0.35 #2118

mortifia opened this issue Sep 24, 2022 · 2 comments
Labels

Comments

@mortifia
Copy link

mortifia commented Sep 24, 2022

Bug Description

cargo doc fail

error[E0554]: `#![feature]` may not be used on the stable release channel
   --> C:\Users\xxxx\.cargo\registry\src\github.com-1ecc6299db9ec823\thiserror-1.0.35\src\lib.rs:211:34
    |
211 | #![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 

lib used by sqlx-core v0.6.2

Minimal Reproduction

[dependencies]
axum = "0.5.16"
tokio = { version = "1.0", features = ["full"] }
sqlx = { version = "0.6", features = ["runtime-actix-native-tls", "postgres" ] }

use sqlx::postgres::PgPoolOptions;

Info

  • SQLx version: 0.6
  • SQLx features enabled: "runtime-actix-native-tls", "postgres"
  • Database server and version: Postgres 14 (with docker-compose)
  • Operating system: windows 11 insider
  • rustc --version: rustc 1.63.0 (4b91a6ea7 2022-08-08)
@mortifia mortifia added the bug label Sep 24, 2022
@abonander
Copy link
Collaborator

Not a SQLx issue. See dtolnay/thiserror#192

@VictorKoenders
Copy link
Contributor

VictorKoenders commented Oct 16, 2022

It seems to be a breaking change from thiserror 1.0.30 to 1.0.37. Adding this to my Cargo.toml fixed rust-analyzer:

thiserror = "=1.0.34"

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

No branches or pull requests

3 participants