Skip to content

Commit

Permalink
Replace proc-macro-error with proc-macro-error2
Browse files Browse the repository at this point in the history
Fixes #72
  • Loading branch information
23Skidoo committed Oct 2, 2024
1 parent 1a14dd1 commit 9019ec2
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion positional_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]}
Expand Down
2 changes: 1 addition & 1 deletion positional_derive/src/analyze.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use proc_macro_error::abort;
use proc_macro_error2::abort;
use syn::{Data, DataStruct, Fields};

mod field;
Expand Down
2 changes: 1 addition & 1 deletion positional_derive/src/analyze/field.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use proc_macro_error::abort;
use proc_macro_error2::abort;
use syn::{LitChar, LitInt, LitStr};

const FIELD_ATTRIBUTE: &str = "field";
Expand Down
2 changes: 1 addition & 1 deletion positional_derive/src/analyze/variant.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use proc_macro_error::abort;
use proc_macro_error2::abort;
use syn::{Expr, Fields};

const MATCHER_ATTRIBUTE: &str = "matcher";
Expand Down
2 changes: 1 addition & 1 deletion positional_derive/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion positional_derive/src/lower/from_struct.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion positional_derive/src/parse.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 9019ec2

Please sign in to comment.