From cc0d6d03f61d19e6d6d7b5137be314d27f7f1d70 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Fri, 17 Jan 2020 14:34:25 -0500 Subject: [PATCH] create a tracking issue and link to it --- .../unstable-book/src/language-features/negative-impls.md | 4 ++-- src/librustc_feature/active.rs | 6 +++--- src/test/ui/feature-gate-negative_impls.stderr | 2 +- .../feature-gates/feature-gate-optin-builtin-traits.stderr | 2 +- src/test/ui/syntax-trait-polarity-feature-gate.stderr | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/doc/unstable-book/src/language-features/negative-impls.md b/src/doc/unstable-book/src/language-features/negative-impls.md index 3cf9351b630..151520f0e4a 100644 --- a/src/doc/unstable-book/src/language-features/negative-impls.md +++ b/src/doc/unstable-book/src/language-features/negative-impls.md @@ -1,8 +1,8 @@ # `negative_impls` -The tracking issue for this feature is [#13231] +The tracking issue for this feature is [#68318]. -[#13231]: https://github.com/rust-lang/rust/issues/13231 +[#68318]: https://github.com/rust-lang/rust/issues/68318 ---- diff --git a/src/librustc_feature/active.rs b/src/librustc_feature/active.rs index 293f86d4597..825323f55bd 100644 --- a/src/librustc_feature/active.rs +++ b/src/librustc_feature/active.rs @@ -152,9 +152,6 @@ declare_features! ( /// Allows features specific to OIBIT (auto traits). (active, optin_builtin_traits, "1.0.0", Some(13231), None), - /// Allow negative trait implementations. - (active, negative_impls, "1.0.0", Some(13231), None), - /// Allows using `box` in patterns (RFC 469). (active, box_patterns, "1.0.0", Some(29641), None), @@ -557,6 +554,9 @@ declare_features! ( // Allows limiting the evaluation steps of const expressions (active, const_eval_limit, "1.43.0", Some(67217), None), + /// Allow negative trait implementations. + (active, negative_impls, "1.43.0", Some(68318), None), + // ------------------------------------------------------------------------- // feature-group-end: actual feature gates // ------------------------------------------------------------------------- diff --git a/src/test/ui/feature-gate-negative_impls.stderr b/src/test/ui/feature-gate-negative_impls.stderr index 922048996bd..b253fbd0da7 100644 --- a/src/test/ui/feature-gate-negative_impls.stderr +++ b/src/test/ui/feature-gate-negative_impls.stderr @@ -4,7 +4,7 @@ error[E0658]: negative trait bounds are not yet fully implemented; use marker ty LL | impl !MyTrait for u32 {} | ^^^^^^^^ | - = note: see issue #13231 for more information + = note: see issue #68318 for more information = help: add `#![feature(negative_impls)]` to the crate attributes to enable error: aborting due to previous error diff --git a/src/test/ui/feature-gates/feature-gate-optin-builtin-traits.stderr b/src/test/ui/feature-gates/feature-gate-optin-builtin-traits.stderr index e9090b78c78..1553d0531dc 100644 --- a/src/test/ui/feature-gates/feature-gate-optin-builtin-traits.stderr +++ b/src/test/ui/feature-gates/feature-gate-optin-builtin-traits.stderr @@ -13,7 +13,7 @@ error[E0658]: negative trait bounds are not yet fully implemented; use marker ty LL | impl !AutoDummyTrait for DummyStruct {} | ^^^^^^^^^^^^^^^ | - = note: see issue #13231 for more information + = note: see issue #68318 for more information = help: add `#![feature(negative_impls)]` to the crate attributes to enable error: aborting due to 2 previous errors diff --git a/src/test/ui/syntax-trait-polarity-feature-gate.stderr b/src/test/ui/syntax-trait-polarity-feature-gate.stderr index 1c37106f13d..3562deecbd5 100644 --- a/src/test/ui/syntax-trait-polarity-feature-gate.stderr +++ b/src/test/ui/syntax-trait-polarity-feature-gate.stderr @@ -4,7 +4,7 @@ error[E0658]: negative trait bounds are not yet fully implemented; use marker ty LL | impl !Send for TestType {} | ^^^^^ | - = note: see issue #13231 for more information + = note: see issue #68318 for more information = help: add `#![feature(negative_impls)]` to the crate attributes to enable error: aborting due to previous error