Skip to content

Commit 36b9aee

Browse files
authored
Rollup merge of #128800 - clarfonthey:core-pattern-type, r=compiler-errors
Add tracking issue to core-pattern-type While the actual `pattern_types` feature flag has an issue assigned, the exported macro and its module do not. cc #123646
2 parents fbbabb9 + 0257f42 commit 36b9aee

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

library/core/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ pub mod net;
391391
pub mod option;
392392
pub mod panic;
393393
pub mod panicking;
394-
#[unstable(feature = "core_pattern_types", issue = "none")]
394+
#[unstable(feature = "core_pattern_types", issue = "123646")]
395395
pub mod pat;
396396
pub mod pin;
397397
#[unstable(feature = "new_range_api", issue = "125687")]

library/core/src/pat.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/// ```
77
#[macro_export]
88
#[rustc_builtin_macro(pattern_type)]
9-
#[unstable(feature = "core_pattern_type", issue = "none")]
9+
#[unstable(feature = "core_pattern_type", issue = "123646")]
1010
macro_rules! pattern_type {
1111
($($arg:tt)*) => {
1212
/* compiler built-in */

library/std/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ pub mod net;
586586
pub mod num;
587587
pub mod os;
588588
pub mod panic;
589-
#[unstable(feature = "core_pattern_types", issue = "none")]
589+
#[unstable(feature = "core_pattern_types", issue = "123646")]
590590
pub mod pat;
591591
pub mod path;
592592
#[unstable(feature = "anonymous_pipe", issue = "127154")]

tests/ui/type/pattern_types/feature-gate-pattern_types.stderr

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ error[E0658]: use of unstable library feature 'core_pattern_type'
44
LL | type NonNullU32 = pattern_type!(u32 is 1..);
55
| ^^^^^^^^^^^^
66
|
7+
= note: see issue #123646 <https://github.com/rust-lang/rust/issues/123646> for more information
78
= help: add `#![feature(core_pattern_type)]` to the crate attributes to enable
89
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
910

@@ -13,6 +14,7 @@ error[E0658]: use of unstable library feature 'core_pattern_type'
1314
LL | type Percent = pattern_type!(u32 is 0..=100);
1415
| ^^^^^^^^^^^^
1516
|
17+
= note: see issue #123646 <https://github.com/rust-lang/rust/issues/123646> for more information
1618
= help: add `#![feature(core_pattern_type)]` to the crate attributes to enable
1719
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
1820

@@ -22,6 +24,7 @@ error[E0658]: use of unstable library feature 'core_pattern_type'
2224
LL | type Negative = pattern_type!(i32 is ..=0);
2325
| ^^^^^^^^^^^^
2426
|
27+
= note: see issue #123646 <https://github.com/rust-lang/rust/issues/123646> for more information
2528
= help: add `#![feature(core_pattern_type)]` to the crate attributes to enable
2629
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
2730

@@ -31,6 +34,7 @@ error[E0658]: use of unstable library feature 'core_pattern_type'
3134
LL | type Positive = pattern_type!(i32 is 0..);
3235
| ^^^^^^^^^^^^
3336
|
37+
= note: see issue #123646 <https://github.com/rust-lang/rust/issues/123646> for more information
3438
= help: add `#![feature(core_pattern_type)]` to the crate attributes to enable
3539
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
3640

@@ -40,6 +44,7 @@ error[E0658]: use of unstable library feature 'core_pattern_type'
4044
LL | type Always = pattern_type!(Option<u32> is Some(_));
4145
| ^^^^^^^^^^^^
4246
|
47+
= note: see issue #123646 <https://github.com/rust-lang/rust/issues/123646> for more information
4348
= help: add `#![feature(core_pattern_type)]` to the crate attributes to enable
4449
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
4550

0 commit comments

Comments
 (0)