Skip to content

Commit

Permalink
Update some URLs to point to new crate
Browse files Browse the repository at this point in the history
  • Loading branch information
GnomedDev committed Sep 1, 2024
1 parent ea66ab7 commit e4255a2
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion proc-macro-error-attr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion proc-macro-error-attr/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -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!
Expand All @@ -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`
Expand Down Expand Up @@ -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]"
);
}
Expand Down
4 changes: 2 additions & 2 deletions tests/runtime-errors.rs
Original file line number Diff line number Diff line change
@@ -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");
}

0 comments on commit e4255a2

Please sign in to comment.