Skip to content

Commit b577cd9

Browse files
committed
Refer to concat and stringify macros by absolute path
1 parent 68d1f4c commit b577cd9

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/ensure.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,17 @@ macro_rules! __fancy_ensure {
699699
if !(lhs $op rhs) {
700700
#[allow(unused_imports)]
701701
use $crate::private::{BothDebug, NotBothDebug};
702-
return Err((lhs, rhs).__dispatch_ensure(concat!("Condition failed: `", stringify!($lhs), " ", stringify!($op), " ", stringify!($rhs), "`")));
702+
return Err((lhs, rhs).__dispatch_ensure(
703+
$crate::private::concat!(
704+
"Condition failed: `",
705+
$crate::private::stringify!($lhs),
706+
" ",
707+
$crate::private::stringify!($op),
708+
" ",
709+
$crate::private::stringify!($rhs),
710+
"`",
711+
),
712+
));
703713
}
704714
}
705715
}

0 commit comments

Comments
 (0)