error2/macros.rs
1/// Constructs a [`Location`](crate::Location) that is not affected by `#[track_caller]`.
2#[macro_export]
3macro_rules! location {
4 () => {
5 $crate::Location::new(::core::file!(), ::core::line!(), ::core::column!())
6 };
7}
8
9/// Constructs a [`Locations`](crate::Locations) that is not affected by `#[track_caller]`.
10#[macro_export]
11macro_rules! locations {
12 () => {
13 $crate::Locations::new($crate::location!())
14 };
15}