diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2019-10-23 15:30:04 +0200 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2019-10-23 15:35:36 +0200 |
| commit | 7472cd46aa6c004568d12a71ecd90c9c45b69fb0 (patch) | |
| tree | 212e6e6c7e21d9c9fdd6c9163ffa8edf2585ede1 /src/libstd | |
| parent | f69293ae808dea61a2dacee6057ca5bb0d7dc817 (diff) | |
| download | rust-7472cd46aa6c004568d12a71ecd90c9c45b69fb0.tar.gz rust-7472cd46aa6c004568d12a71ecd90c9c45b69fb0.zip | |
Move the `matches!` macro to the prelude
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/lib.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index 4c079108e2e..d0cb0104f6c 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -354,16 +354,7 @@ extern crate cfg_if; // The standard macros that are not built-in to the compiler. #[macro_use] -#[path = "macros.rs"] -mod prelude_macros; - -/// Macros that are not in the prelude and need to be imported explicitly -#[unstable(feature = "matches_macro", issue = "0")] -pub mod macros { - #[unstable(feature = "matches_macro", issue = "0")] - #[doc(inline)] - pub use core::macros::matches; -} +mod macros; // The Rust prelude pub mod prelude; @@ -537,6 +528,7 @@ pub use core::{ writeln, // Unstable todo, + matches, }; // Re-export built-in macros defined through libcore. |
