Skip to content

Commit f0805a4

Browse files
committed
Auto merge of #51066 - est31:master, r=sfackler
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. r? @aidanhs
2 parents 5015fa3 + 20ab884 commit f0805a4

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/doc/unstable-book/src/language-features/box-syntax.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# `box_syntax`
22

3-
The tracking issue for this feature is: [#27779]
3+
The tracking issue for this feature is: [#49733]
44

5-
[#27779]: https://github.com/rust-lang/rust/issues/27779
5+
[#49733]: https://github.com/rust-lang/rust/issues/49733
66

77
See also [`box_patterns`](language-features/box-patterns.html)
88

src/libsyntax/feature_gate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ declare_features! (
145145
// rustc internal
146146
(active, rustc_diagnostic_macros, "1.0.0", None, None),
147147
(active, rustc_const_unstable, "1.0.0", None, None),
148-
(active, box_syntax, "1.0.0", Some(27779), None),
148+
(active, box_syntax, "1.0.0", Some(49733), None),
149149
(active, unboxed_closures, "1.0.0", Some(29625), None),
150150

151151
(active, fundamental, "1.0.0", Some(29635), None),

src/test/ui/feature-gate-box-expr.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0658]: box expression syntax is experimental; you can call `Box::new` instead. (see issue #27779)
1+
error[E0658]: box expression syntax is experimental; you can call `Box::new` instead. (see issue #49733)
22
--> $DIR/feature-gate-box-expr.rs:22:13
33
|
44
LL | let x = box 'c'; //~ ERROR box expression syntax is experimental

src/test/ui/feature-gate-box_syntax.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0658]: box expression syntax is experimental; you can call `Box::new` instead. (see issue #27779)
1+
error[E0658]: box expression syntax is experimental; you can call `Box::new` instead. (see issue #49733)
22
--> $DIR/feature-gate-box_syntax.rs:14:13
33
|
44
LL | let x = box 3;

0 commit comments

Comments
 (0)