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

fix: error[E0658]: attribute name space is experimental #2717

Conversation

SuccinctPaul
Copy link

Motivation

  • Resolve error error[E0658]: attribute name space is experimental . Error logs as bellow:
error[E0658]: `#[diagnostic]` attribute name space is experimental
  --> axum-core/src/extract/mod.rs:48:5
   |
48 |     diagnostic::on_unimplemented(
   |     ^^^^^^^^^^
   |
   = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information
   = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable
   = note: this compiler was built on 2024-02-26; consider upgrading it if it is out of date

Solution

  1. we can update toolchain to after 2024-02-26.
  2. we adopt the older toolchains by add #![feature(diagnostic_namespace)] to the crate attributes to enable

Adoption will be suitable for more users. And this pr is for solution#2.

See more

@jplatte
Copy link
Member

jplatte commented Apr 20, 2024

See #2693.

@jplatte jplatte closed this Apr 20, 2024
@SuccinctPaul SuccinctPaul deleted the fix/add_diagnostic_namespace_feature branch April 20, 2024 15:13
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

Successfully merging this pull request may close these issues.

2 participants