Rust 1.85, edition=2024 (#15741)

This commit is contained in:
Jack Wright
2025-05-13 07:49:30 -07:00
committed by GitHub
parent 1a0986903f
commit c2ac8f730e
793 changed files with 4276 additions and 3687 deletions

View File

@ -1,6 +1,6 @@
use syn::{meta::ParseNestedMeta, spanned::Spanned, Attribute, Fields, LitStr};
use syn::{Attribute, Fields, LitStr, meta::ParseNestedMeta, spanned::Spanned};
use crate::{case::Case, error::DeriveError, HELPER_ATTRIBUTE};
use crate::{HELPER_ATTRIBUTE, case::Case, error::DeriveError};
pub trait ParseAttrs: Default {
fn parse_attrs<'a, M>(

View File

@ -1,7 +1,7 @@
use std::{any, fmt::Debug, marker::PhantomData};
use proc_macro2::Span;
use proc_macro_error2::{Diagnostic, Level};
use proc_macro2::Span;
#[derive(Debug)]
pub enum DeriveError<M> {

View File

@ -1,8 +1,8 @@
use proc_macro2::TokenStream as TokenStream2;
use quote::{quote, ToTokens};
use quote::{ToTokens, quote};
use syn::{
spanned::Spanned, Attribute, Data, DataEnum, DataStruct, DeriveInput, Fields, Generics, Ident,
Type,
Attribute, Data, DataEnum, DataStruct, DeriveInput, Fields, Generics, Ident, Type,
spanned::Spanned,
};
use crate::{

View File

@ -1,8 +1,8 @@
use proc_macro2::TokenStream as TokenStream2;
use quote::{quote, ToTokens};
use quote::{ToTokens, quote};
use syn::{
spanned::Spanned, Attribute, Data, DataEnum, DataStruct, DeriveInput, Fields, Generics, Ident,
Index,
Attribute, Data, DataEnum, DataStruct, DeriveInput, Fields, Generics, Ident, Index,
spanned::Spanned,
};
use crate::{

View File

@ -28,8 +28,8 @@
//! but ensures that no other code may influence this generated code or vice versa.
use proc_macro::TokenStream;
use proc_macro_error2::{Diagnostic, proc_macro_error};
use proc_macro2::TokenStream as TokenStream2;
use proc_macro_error2::{proc_macro_error, Diagnostic};
mod attributes;
mod case;

View File

@ -1,7 +1,7 @@
use proc_macro2::Span;
use std::collections::HashMap;
use syn::ext::IdentExt;
use syn::Ident;
use syn::ext::IdentExt;
use crate::attributes::{ContainerAttributes, MemberAttributes};
use crate::case::{Case, Casing};