diff --git a/README.md b/README.md index 2899377..0910eac 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Makes error reporting in procedural macros nice and easy -[![docs.rs](https://docs.rs/proc-macro-error/badge.svg)](https://docs.rs/proc-macro-error) +[![docs.rs](https://docs.rs/proc-macro-error2/badge.svg)](https://docs.rs/proc-macro-error2) [![unsafe forbidden](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-code/safety-dance/) This crate aims to make error reporting in proc-macros simple and easy to use. @@ -242,9 +242,9 @@ be dual licensed as above, without any additional terms or conditions. [compl_err]: https://doc.rust-lang.org/std/macro.compile_error.html [`proc_macro::Diagnostic`]: https://doc.rust-lang.org/proc_macro/struct.Diagnostic.html -[crate::dummy]: https://docs.rs/proc-macro-error/1/proc_macro_error/dummy/index.html -[crate::multi]: https://docs.rs/proc-macro-error/1/proc_macro_error/multi/index.html +[crate::dummy]: https://docs.rs/proc-macro-error2/1/proc_macro_error/dummy/index.html +[crate::multi]: https://docs.rs/proc-macro-error2/1/proc_macro_error/multi/index.html -[`abort_call_site!`]: https://docs.rs/proc-macro-error/1/proc_macro_error/macro.abort_call_site.html -[`abort!`]: https://docs.rs/proc-macro-error/1/proc_macro_error/macro.abort.html -[guide]: https://docs.rs/proc-macro-error +[`abort_call_site!`]: https://docs.rs/proc-macro-error2/1/proc_macro_error/macro.abort_call_site.html +[`abort!`]: https://docs.rs/proc-macro-error2/1/proc_macro_error/macro.abort.html +[guide]: https://docs.rs/proc-macro-error2 diff --git a/proc-macro-error-attr/Cargo.toml b/proc-macro-error-attr/Cargo.toml index 2f84893..1810c8f 100644 --- a/proc-macro-error-attr/Cargo.toml +++ b/proc-macro-error-attr/Cargo.toml @@ -7,7 +7,7 @@ authors = [ ] edition = "2021" rust-version = "1.61" -description = "Attribute macro for proc-macro-error crate" +description = "Attribute macro for the proc-macro-error2 crate" license = "MIT OR Apache-2.0" repository = "https://github.com/GnomedDev/proc-macro-error-2" diff --git a/proc-macro-error-attr/src/lib.rs b/proc-macro-error-attr/src/lib.rs index 6b711c0..0f25931 100644 --- a/proc-macro-error-attr/src/lib.rs +++ b/proc-macro-error-attr/src/lib.rs @@ -1,5 +1,5 @@ //! This is `#[proc_macro_error]` attribute to be used with -//! [`proc-macro-error`](https://docs.rs/proc-macro-error/). There you go. +//! [`proc-macro-error`](https://docs.rs/proc-macro-error2/). There you go. use crate::parse::parse_input; use crate::parse::Attribute; diff --git a/src/lib.rs b/src/lib.rs index e4e4e6c..f708a4b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -//! # proc-macro-error +//! # proc-macro-error2 //! //! This crate aims to make error reporting in proc-macros simple and easy to use. //! Migrate from `panic!`-based errors for as little effort as possible! @@ -21,7 +21,7 @@ //! //! ```toml //! [dependencies] -//! proc-macro-error = { version = "1", default-features = false } +//! proc-macro-error2 = { version = "2.0.0-pre.1", default-features = false } //! ``` //! //! ***Please note that disabling this feature makes sense only if you don't depend on `syn` @@ -482,7 +482,7 @@ struct AbortNow; fn check_correctness() { assert!( ENTERED_ENTRY_POINT.with(Cell::get) != 0, - "proc-macro-error API cannot be used outside of `entry_point` invocation, \ + "proc-macro-error2 API cannot be used outside of `entry_point` invocation, \ perhaps you forgot to annotate your #[proc_macro] function with `#[proc_macro_error]" ); } diff --git a/tests/runtime-errors.rs b/tests/runtime-errors.rs index 8ec211c..bb7e726 100644 --- a/tests/runtime-errors.rs +++ b/tests/runtime-errors.rs @@ -1,13 +1,13 @@ use proc_macro_error2::*; #[test] -#[should_panic = "proc-macro-error API cannot be used outside of"] +#[should_panic = "proc-macro-error2 API cannot be used outside of"] fn missing_attr_emit() { emit_call_site_error!("You won't see me"); } #[test] -#[should_panic = "proc-macro-error API cannot be used outside of"] +#[should_panic = "proc-macro-error2 API cannot be used outside of"] fn missing_attr_abort() { abort_call_site!("You won't see me"); }