diff --git a/core/codegen/src/derive/from_form.rs b/core/codegen/src/derive/from_form.rs index 24db4a0a..19c4cc02 100644 --- a/core/codegen/src/derive/from_form.rs +++ b/core/codegen/src/derive/from_form.rs @@ -123,7 +123,9 @@ pub fn derive_from_form(input: proc_macro::TokenStream) -> TokenStream { Ok(quote_spanned! { input.span() => /// Rocket generated FormForm context. #[doc(hidden)] - #[allow(private_in_public)] + #[allow(unknown_lints)] + #[allow(renamed_and_removed_lints)] + #[allow(private_in_public, private_bounds)] #vis struct #ctxt_ty #impl_gen #where_clause { __opts: #_form::Options, __errors: #_form::Errors<'r>, @@ -148,6 +150,7 @@ pub fn derive_from_form(input: proc_macro::TokenStream) -> TokenStream { #[allow(unused_imports)] use #_http::uncased::AsUncased; }) + .outer_mapper(quote!(#[allow(renamed_and_removed_lints)])) .outer_mapper(quote!(#[allow(private_in_public)])) .outer_mapper(quote!(#[rocket::async_trait])) .inner_mapper(MapperBuild::new() diff --git a/core/codegen/tests/from_form.rs b/core/codegen/tests/from_form.rs index 814ab881..621ffa04 100644 --- a/core/codegen/tests/from_form.rs +++ b/core/codegen/tests/from_form.rs @@ -984,7 +984,7 @@ fn json_wrapper_works() { assert_eq!(form, JsonToken(Json("foo bar"))); } -// FIXME: https://github.com/rust-lang/rust/issues/86706 +#[allow(renamed_and_removed_lints)] #[allow(private_in_public)] struct Q(T); diff --git a/core/codegen/tests/uri_display.rs b/core/codegen/tests/uri_display.rs index 9ffd1436..cce97817 100644 --- a/core/codegen/tests/uri_display.rs +++ b/core/codegen/tests/uri_display.rs @@ -247,7 +247,7 @@ fn uri_display_serde() { assert_query_value_roundtrip!(JsonFoo, JsonFoo(Json(bam.clone()))); - // FIXME: https://github.com/rust-lang/rust/issues/86706 + #[allow(renamed_and_removed_lints)] #[allow(private_in_public)] #[derive(Debug, PartialEq, Clone, FromForm, UriDisplayQuery)] struct Q(Json);