Move [debug_]assert_matches to mod {core, std}::assert.

This commit is contained in:
Mara Bos
2021-07-07 16:25:46 +00:00
parent c5e344f774
commit e3044432c7
9 changed files with 36 additions and 15 deletions

View File

@@ -179,6 +179,16 @@ use prelude::v1::*;
#[macro_use]
mod macros;
// We don't export this through #[macro_export] for now, to avoid breakage.
// See https://github.com/rust-lang/rust/issues/82913
#[cfg(not(test))]
#[unstable(feature = "assert_matches", issue = "82775")]
/// Unstable module containing the unstable `assert_matches` macro.
pub mod assert {
#[unstable(feature = "assert_matches", issue = "82775")]
pub use crate::macros::{assert_matches, debug_assert_matches};
}
#[macro_use]
mod internal_macros;