From 20ab8841b1cfd7c1d3288bdba4a5b57a12511b49 Mon Sep 17 00:00:00 2001 From: est31 Date: Fri, 25 May 2018 22:37:25 +0200 Subject: [PATCH] Point to the current box syntax tracking issue The issue was used for both box syntax as well as placement new. It got closed due to placement new being unapproved. So a new one got created for box syntax, yet neither the unstable book nor feature_gate.rs got updated. We are doing this now. --- src/doc/unstable-book/src/language-features/box-syntax.md | 4 ++-- src/libsyntax/feature_gate.rs | 2 +- src/test/ui/feature-gate-box-expr.stderr | 2 +- src/test/ui/feature-gate-box_syntax.stderr | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/doc/unstable-book/src/language-features/box-syntax.md b/src/doc/unstable-book/src/language-features/box-syntax.md index 50e59231a4df..414dc48e557d 100644 --- a/src/doc/unstable-book/src/language-features/box-syntax.md +++ b/src/doc/unstable-book/src/language-features/box-syntax.md @@ -1,8 +1,8 @@ # `box_syntax` -The tracking issue for this feature is: [#27779] +The tracking issue for this feature is: [#49733] -[#27779]: https://github.com/rust-lang/rust/issues/27779 +[#49733]: https://github.com/rust-lang/rust/issues/49733 See also [`box_patterns`](language-features/box-patterns.html) diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 3a02646d0af5..08b2e447bba3 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -145,7 +145,7 @@ declare_features! ( // rustc internal (active, rustc_diagnostic_macros, "1.0.0", None, None), (active, rustc_const_unstable, "1.0.0", None, None), - (active, box_syntax, "1.0.0", Some(27779), None), + (active, box_syntax, "1.0.0", Some(49733), None), (active, unboxed_closures, "1.0.0", Some(29625), None), (active, fundamental, "1.0.0", Some(29635), None), diff --git a/src/test/ui/feature-gate-box-expr.stderr b/src/test/ui/feature-gate-box-expr.stderr index 72f2f08b5b8e..7b235da7ed7e 100644 --- a/src/test/ui/feature-gate-box-expr.stderr +++ b/src/test/ui/feature-gate-box-expr.stderr @@ -1,4 +1,4 @@ -error[E0658]: box expression syntax is experimental; you can call `Box::new` instead. (see issue #27779) +error[E0658]: box expression syntax is experimental; you can call `Box::new` instead. (see issue #49733) --> $DIR/feature-gate-box-expr.rs:22:13 | LL | let x = box 'c'; //~ ERROR box expression syntax is experimental diff --git a/src/test/ui/feature-gate-box_syntax.stderr b/src/test/ui/feature-gate-box_syntax.stderr index 7058512417b1..d45dee2970bd 100644 --- a/src/test/ui/feature-gate-box_syntax.stderr +++ b/src/test/ui/feature-gate-box_syntax.stderr @@ -1,4 +1,4 @@ -error[E0658]: box expression syntax is experimental; you can call `Box::new` instead. (see issue #27779) +error[E0658]: box expression syntax is experimental; you can call `Box::new` instead. (see issue #49733) --> $DIR/feature-gate-box_syntax.rs:14:13 | LL | let x = box 3;