mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 04:07:52 +02:00
Rust 1.85, edition=2024 (#15741)
This commit is contained in:
@ -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>(
|
||||
|
@ -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> {
|
||||
|
@ -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::{
|
||||
|
@ -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::{
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
Reference in New Issue
Block a user