mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 19:27:30 +03:00
f613636ae8
That's what the gates are actually gating, and the single char difference in naming was not helpful either
15 lines
412 B
Rust
15 lines
412 B
Rust
//! Helper module for exporting the `pattern_type` macro
|
|
|
|
/// Creates a pattern type.
|
|
/// ```ignore (cannot test this from within core yet)
|
|
/// type Positive = std::pat::pattern_type!(i32 is 1..);
|
|
/// ```
|
|
#[macro_export]
|
|
#[rustc_builtin_macro(pattern_type)]
|
|
#[unstable(feature = "pattern_type_macro", issue = "123646")]
|
|
macro_rules! pattern_type {
|
|
($($arg:tt)*) => {
|
|
/* compiler built-in */
|
|
};
|
|
}
|