Skip to content

Commit 7485903

Browse files
committed
Add catch and proc macros to the edition (fixes #50443)
1 parent 0bfe307 commit 7485903

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libsyntax/feature_gate.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ declare_features! (
300300
(active, abi_unadjusted, "1.16.0", None, None),
301301

302302
// Procedural macros 2.0.
303-
(active, proc_macro, "1.16.0", Some(38356), None),
303+
(active, proc_macro, "1.16.0", Some(38356), Some(Edition::Edition2018)),
304304

305305
// Declarative macros 2.0 (`macro`).
306306
(active, decl_macro, "1.17.0", Some(39412), None),
@@ -324,7 +324,7 @@ declare_features! (
324324

325325

326326
// Allows the `catch {...}` expression
327-
(active, catch_expr, "1.17.0", Some(31436), None),
327+
(active, catch_expr, "1.17.0", Some(31436), Some(Edition::Edition2018)),
328328

329329
// Used to preserve symbols (see llvm.used)
330330
(active, used, "1.18.0", Some(40289), None),

0 commit comments

Comments
 (0)