File tree Expand file tree Collapse file tree 4 files changed +23
-0
lines changed Expand file tree Collapse file tree 4 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -396,6 +396,9 @@ pub mod net;
396
396
pub mod option;
397
397
pub mod panic;
398
398
pub mod panicking;
399
+ #[ cfg( not( bootstrap) ) ]
400
+ #[ unstable( feature = "core_pattern_types" , issue = "none" ) ]
401
+ pub mod pat;
399
402
pub mod pin;
400
403
pub mod result;
401
404
pub mod sync;
Original file line number Diff line number Diff line change
1
+ //! Helper module for exporting the `pattern_type` macro
2
+
3
+ /// Creates a pattern type.
4
+ /// ```ignore (cannot test this from within core yet)
5
+ /// type Positive = std::pat::pattern_type!(i32 is 1..);
6
+ /// ```
7
+ #[ macro_export]
8
+ #[ rustc_builtin_macro( pattern_type) ]
9
+ #[ unstable( feature = "core_pattern_type" , issue = "none" ) ]
10
+ macro_rules! pattern_type {
11
+ ( $( $arg: tt) * ) => {
12
+ /* compiler built-in */
13
+ } ;
14
+ }
Original file line number Diff line number Diff line change @@ -576,6 +576,9 @@ pub mod net;
576
576
pub mod num;
577
577
pub mod os;
578
578
pub mod panic;
579
+ #[ cfg( not( bootstrap) ) ]
580
+ #[ unstable( feature = "core_pattern_types" , issue = "none" ) ]
581
+ pub mod pat;
579
582
pub mod path;
580
583
pub mod process;
581
584
pub mod sync;
Original file line number Diff line number Diff line change
1
+ //! Helper module for exporting the `pattern_type` macro
2
+
3
+ pub use core:: pattern_type;
You can’t perform that action at this time.
0 commit comments