Skip to content

Commit f177625

Browse files
committed
core: Remove #[macro_export] from debug_assert_matches
The `debug_assert_matches` macro was marked with the `#[macro_export]` attribute, despite being a declarative macro/macro 2.0, for which the exporting rules are similar to items. In fact, `#[macro_export]` on a decl macro has no effect on its visibility.
1 parent 63a81b0 commit f177625

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

library/core/src/macros/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ macro_rules! debug_assert_ne {
312312
/// let c = Ok("abc".to_string());
313313
/// debug_assert_matches!(c, Ok(x) | Err(x) if x.len() < 100);
314314
/// ```
315-
#[macro_export]
316315
#[unstable(feature = "assert_matches", issue = "82775")]
317316
#[allow_internal_unstable(assert_matches)]
318317
#[rustc_macro_transparency = "semitransparent"]

0 commit comments

Comments
 (0)