Skip to content

Commit

Permalink
Fully qualify recursive macro calls (rust-lang#1310)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgemmell authored Jun 20, 2022
1 parent c4d349c commit f3f33b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/std_detect/src/detect/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ macro_rules! features {
};
)*
$(
($bind_feature) => { $macro_name!($feature_impl) };
($bind_feature) => { $crate::$macro_name!($feature_impl) };
)*
$(
($nort_feature) => {
Expand All @@ -35,7 +35,7 @@ macro_rules! features {
};
)*
($t:tt,) => {
$macro_name!($t);
$crate::$macro_name!($t);
};
($t:tt) => {
compile_error!(
Expand Down Expand Up @@ -66,7 +66,7 @@ macro_rules! features {
};
)*
$(
($bind_feature) => { $macro_name!($feature_impl) };
($bind_feature) => { $crate::$macro_name!($feature_impl) };
)*
$(
($nort_feature) => {
Expand All @@ -79,7 +79,7 @@ macro_rules! features {
};
)*
($t:tt,) => {
$macro_name!($t);
$crate::$macro_name!($t);
};
($t:tt) => {
compile_error!(
Expand Down

0 comments on commit f3f33b5

Please sign in to comment.