diff --git a/positional_derive/Cargo.toml b/positional_derive/Cargo.toml index a760d8b..5055f39 100644 --- a/positional_derive/Cargo.toml +++ b/positional_derive/Cargo.toml @@ -10,7 +10,7 @@ documentation = "https://docs.rs/positional" proc-macro = true [dependencies] -proc-macro-error = "1.0.4" +proc-macro-error2 = "2.0" proc-macro2 = "1.0.39" quote = "1.0" syn = {version = "2.0.63", features = ["extra-traits", "full"]} diff --git a/positional_derive/src/analyze.rs b/positional_derive/src/analyze.rs index 8724b77..ae0e14d 100644 --- a/positional_derive/src/analyze.rs +++ b/positional_derive/src/analyze.rs @@ -1,4 +1,4 @@ -use proc_macro_error::abort; +use proc_macro_error2::abort; use syn::{Data, DataStruct, Fields}; mod field; diff --git a/positional_derive/src/analyze/field.rs b/positional_derive/src/analyze/field.rs index d25c44d..e281640 100644 --- a/positional_derive/src/analyze/field.rs +++ b/positional_derive/src/analyze/field.rs @@ -1,4 +1,4 @@ -use proc_macro_error::abort; +use proc_macro_error2::abort; use syn::{LitChar, LitInt, LitStr}; const FIELD_ATTRIBUTE: &str = "field"; diff --git a/positional_derive/src/analyze/variant.rs b/positional_derive/src/analyze/variant.rs index 5c67079..ba10dd2 100644 --- a/positional_derive/src/analyze/variant.rs +++ b/positional_derive/src/analyze/variant.rs @@ -1,4 +1,4 @@ -use proc_macro_error::abort; +use proc_macro_error2::abort; use syn::{Expr, Fields}; const MATCHER_ATTRIBUTE: &str = "matcher"; diff --git a/positional_derive/src/lib.rs b/positional_derive/src/lib.rs index dd3a09f..cf4474b 100644 --- a/positional_derive/src/lib.rs +++ b/positional_derive/src/lib.rs @@ -1,5 +1,5 @@ use proc_macro::TokenStream; -use proc_macro_error::proc_macro_error; +use proc_macro_error2::proc_macro_error; mod analyze; mod codegen; diff --git a/positional_derive/src/lower/from_struct.rs b/positional_derive/src/lower/from_struct.rs index 040a039..55ff2a5 100644 --- a/positional_derive/src/lower/from_struct.rs +++ b/positional_derive/src/lower/from_struct.rs @@ -1,6 +1,6 @@ use super::extract_option_type; use crate::analyze::{FieldAlignment, StructModel}; -use proc_macro_error::abort; +use proc_macro_error2::abort; pub struct StructIr { pub container_identity: syn::Ident, diff --git a/positional_derive/src/parse.rs b/positional_derive/src/parse.rs index 785f81c..fcab56f 100644 --- a/positional_derive/src/parse.rs +++ b/positional_derive/src/parse.rs @@ -1,5 +1,5 @@ use proc_macro2::TokenStream; -use proc_macro_error::abort; +use proc_macro_error2::abort; use syn::{Data, DeriveInput}; pub type Ast = DeriveInput;