We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19cab6b commit 2c70c8aCopy full SHA for 2c70c8a
library/core/src/macros/mod.rs
@@ -237,9 +237,10 @@ pub macro assert_matches {
237
/// ```
238
#[unstable(feature = "cfg_match", issue = "115585")]
239
#[rustc_diagnostic_item = "cfg_match"]
240
+#[rustc_macro_transparency = "semitransparent"]
241
pub macro cfg_match {
242
({ $($tt:tt)* }) => {{
- cfg_match! { $($tt)* }
243
+ $crate::cfg_match! { $($tt)* }
244
}},
245
(_ => { $($output:tt)* }) => {
246
$($output)*
@@ -249,10 +250,10 @@ pub macro cfg_match {
249
250
$($( $rest:tt )+)?
251
) => {
252
#[cfg($cfg)]
- cfg_match! { _ => $output }
253
+ $crate::cfg_match! { _ => $output }
254
$(
255
#[cfg(not($cfg))]
- cfg_match! { $($rest)+ }
256
+ $crate::cfg_match! { $($rest)+ }
257
)?
258
},
259
}
0 commit comments