Skip to content

Commit

Permalink
Merge pull request #58 from jewlexx/error2
Browse files Browse the repository at this point in the history
updated to proc-macro-error2
  • Loading branch information
jewlexx authored Sep 11, 2024
2 parents 7ddabee + cb8fb2b commit 0a04b1e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions quork-proc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "quork-proc"
license = "MIT"
version = "0.3.1"
description = "The proc macros for quork (not intended for independant use)"
authors = ["Juliette Cordor"]
description = "The proc macros for quork (not intended for independant use)"
documentation = "https://docs.rs/quork"
repository = "https://github.com/jewlexx/quork.git"
homepage = "https://github.com/jewlexx/quork.git"
edition = "2018"
homepage = "https://github.com/jewlexx/quork.git"
license = "MIT"
name = "quork-proc"
repository = "https://github.com/jewlexx/quork.git"
version = "0.3.1"

[lib]
proc-macro = true
Expand All @@ -16,7 +16,7 @@ proc-macro = true

[dependencies]
proc-macro-crate = "3.1"
proc-macro-error = "1.0"
proc-macro-error2 = "2.0"
proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "2.0", features = ["full"] }
4 changes: 2 additions & 2 deletions quork-proc/src/enum_list.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use proc_macro2::{Ident, Span, TokenStream};
use proc_macro_error::{abort_if_dirty, emit_error};
use proc_macro_error2::{abort_if_dirty, emit_error};
use syn::{spanned::Spanned, Data, DeriveInput};

use proc_macro_crate::{crate_name, FoundCrate};
Expand Down Expand Up @@ -35,7 +35,7 @@ pub fn enum_list(ast: &DeriveInput) -> TokenStream {
})
.collect::<Vec<_>>()
}
_ => proc_macro_error::abort_call_site!("Can only be derived on an enum"),
_ => proc_macro_error2::abort_call_site!("Can only be derived on an enum"),
};

abort_if_dirty();
Expand Down
2 changes: 1 addition & 1 deletion quork-proc/src/from_tuple.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use proc_macro2::Span;
use proc_macro_error::abort_call_site;
use proc_macro_error2::abort_call_site;
use syn::{DeriveInput, Ident, Type};

pub fn derive(input: &DeriveInput) -> proc_macro2::TokenStream {
Expand Down
2 changes: 1 addition & 1 deletion quork-proc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#![warn(clippy::pedantic)]
#![warn(missing_docs)]

use proc_macro_error::proc_macro_error;
use proc_macro_error2::proc_macro_error;
use syn::{parse_macro_input, DeriveInput, LitStr};

mod const_str;
Expand Down
2 changes: 1 addition & 1 deletion quork-proc/src/new.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use proc_macro2::TokenStream;
use proc_macro_error::abort_call_site;
use proc_macro_error2::abort_call_site;
use syn::{Data, DeriveInput};

pub fn derive(ast: &DeriveInput) -> TokenStream {
Expand Down

0 comments on commit 0a04b1e

Please sign in to comment.