Revert "feat: add #[diagnostic::on_unimplemented] to IntoResponse and IntoResponseParts (#3723)"

This reverts commit 7bf2f675ef.
This commit is contained in:
David Pedersen
2026-05-05 15:04:03 +02:00
parent c2bf6db649
commit b7d082a7a9
16 changed files with 50 additions and 115 deletions
-3
View File
@@ -109,9 +109,6 @@ use std::{
/// let app = Router::new().route("/", get(|| async { MyBody }));
/// # let _: Router = app;
/// ```
#[diagnostic::on_unimplemented(
note = "See `https://docs.rs/axum/0.8/axum/response/trait.IntoResponse.html` for details"
)]
pub trait IntoResponse {
/// Create a response.
#[must_use]
@@ -70,9 +70,6 @@ use std::{convert::Infallible, fmt};
/// SetHeader("x-foo", "custom")
/// }
/// ```
#[diagnostic::on_unimplemented(
note = "See `https://docs.rs/axum/0.8/axum/response/trait.IntoResponseParts.html` for details"
)]
pub trait IntoResponseParts {
/// The type returned in the event of an error.
///