Skip to content
Myr

Refer to concat and stringify macros by absolute path

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent 68d1f4c · Browse files · 1 file+11 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+11 added−1 removed

  • other:+11 added−1 removed

1 file+11 added−1 removed

modified:src/ensure.rs+11 added-1 removed
697 unmodified lines
698 (lhs, rhs) => {699 if !(lhs $op rhs) {700 #[allow(unused_imports)]701 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 ));713 }714 }715 }716 };
28 unmodified lines