Skip to content

Commit

Permalink
Merge pull request #24 from kiatweitan/replace-proc-macro-error
Browse files Browse the repository at this point in the history
replace proc-macro-error dependency
  • Loading branch information
danielschemmel authored Sep 13, 2024
2 parents 921d183 + 6e9d99c commit 4e1f552
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build-info-proc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ chrono = { version = "0.4.23", default-features = false, features = ["std"] }
num-bigint = "0.4"
num-traits = "0.2"
proc-macro2 = "1"
proc-macro-error = "1"
proc-macro-error2 = "2.0"
quote = "1"
serde_json = "1"
syn = { version = "2", features = ["full"] }
Expand Down
2 changes: 1 addition & 1 deletion build-info-proc/src/format/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use anyhow::Result;
use build_info_common::BuildInfo;
use proc_macro::TokenStream;
use proc_macro2::Span;
use proc_macro_error::{abort, abort_call_site, emit_error};
use proc_macro_error2::{abort, abort_call_site, emit_error};
use quote::quote;
use syn::parse_macro_input;

Expand Down
2 changes: 1 addition & 1 deletion build-info-proc/src/format/value/functions.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use proc_macro2::Span;
use proc_macro_error::abort;
use proc_macro_error2::abort;

use super::Value;

Expand Down
2 changes: 1 addition & 1 deletion build-info-proc/src/format/value/macros.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use proc_macro2::Span;
use proc_macro_error::{abort, abort_if_dirty, emit_error};
use proc_macro_error2::{abort, abort_if_dirty, emit_error};

use super::{as_named_arguments_1, Value};

Expand Down
2 changes: 1 addition & 1 deletion build-info-proc/src/format/value/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::any::Any;

use num_bigint::BigInt;
use num_traits::cast::ToPrimitive;
use proc_macro_error::abort_call_site;
use proc_macro_error2::abort_call_site;

use super::{as_arguments_0, as_index, as_simple_arguments_1, FormatSpecifier, Type, Value, OP_ARRAY_INDEX};

Expand Down
2 changes: 1 addition & 1 deletion build-info-proc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::io::Cursor;
use base64::read::DecoderReader as Base64Decoder;
use build_info_common::{BuildInfo, VersionedString};
use proc_macro::TokenStream;
use proc_macro_error::{abort_call_site, emit_call_site_error, proc_macro_error};
use proc_macro_error2::{abort_call_site, emit_call_site_error, proc_macro_error};

mod format;
#[cfg(feature = "runtime")]
Expand Down

0 comments on commit 4e1f552

Please sign in to comment.