diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2024-05-19 02:44:42 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-17 16:35:30 +0100 |
commit | 1e430a7957e7a3cf79f6f22f112f3d764706f50f (patch) | |
tree | 7b594bb2b4ad86e5aa786f222f3c3829811cb911 /gcc/rust/ast | |
parent | 813a1e617bdd70d730ef3c9a84780b3cb3a6f28d (diff) | |
download | gcc-1e430a7957e7a3cf79f6f22f112f3d764706f50f.zip gcc-1e430a7957e7a3cf79f6f22f112f3d764706f50f.tar.gz gcc-1e430a7957e7a3cf79f6f22f112f3d764706f50f.tar.bz2 |
gccrs: Add feature gate for box syntax
The box syntax is experimental even though it is used in the standard
library. It should be feature gated to prevent anyone from using it in
stable rust.
gcc/rust/ChangeLog:
* checks/errors/rust-feature-gate.cc (FeatureGate::visit): Allow
visitor recursion in functions. Also add the gate for the box syntax.
* checks/errors/rust-feature-gate.h: Remove several recursion fences
in the feature gate visitor.
* checks/errors/rust-feature.cc (Feature::create): Add a new feature.
(Feature::as_name): Likewise.
* checks/errors/rust-feature.h: Add box_syntax gate.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/ast')
0 files changed, 0 insertions, 0 deletions