Add deprecation message for top-level lint settings (#9582)

This commit is contained in:
Micha Reiser 2024-01-29 18:52:49 +01:00 committed by Zanie Blue
parent c3b33e9c4d
commit c2bf725086
7 changed files with 263 additions and 10 deletions

View file

@ -48,10 +48,10 @@ pub(crate) fn derive_impl(input: DeriveInput) -> syn::Result<TokenStream> {
for token in list.tokens.clone() {
if let TokenTree::Ident(ident) = token {
if ident == "flatten" {
let ty_name = ty.path.require_ident()?;
output.push(quote_spanned!(
ident.span() => (#ty_name::record(visit))
ty.span() => (<#ty>::record(visit))
));
break;
}
}