mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
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.
This commit is contained in:
parent
63a81b0c5a
commit
f1776250eb
@ -312,7 +312,6 @@ macro_rules! debug_assert_ne {
|
||||
/// let c = Ok("abc".to_string());
|
||||
/// debug_assert_matches!(c, Ok(x) | Err(x) if x.len() < 100);
|
||||
/// ```
|
||||
#[macro_export]
|
||||
#[unstable(feature = "assert_matches", issue = "82775")]
|
||||
#[allow_internal_unstable(assert_matches)]
|
||||
#[rustc_macro_transparency = "semitransparent"]
|
||||
|
Loading…
Reference in New Issue
Block a user