aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir
diff options
context:
space:
mode:
authorMatty Kuhn <matty.kuhn.1@gmail.com>2025-04-04 18:09:41 -0600
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2025-04-07 08:27:17 +0000
commit3f2e8aef6f9e70da075261da80fa1400a2341634 (patch)
tree281addc4318a1d4b26b6be78e22779f1a271bbd2 /gcc/rust/hir
parent1d07cf75d5c558728d95a668a06dd7ecb4f5bb47 (diff)
downloadgcc-3f2e8aef6f9e70da075261da80fa1400a2341634.zip
gcc-3f2e8aef6f9e70da075261da80fa1400a2341634.tar.gz
gcc-3f2e8aef6f9e70da075261da80fa1400a2341634.tar.bz2
gccrs: fix ICE segfault with empty feature gate
This patch fixes an issue where an empty feature gate would segfault, instead of reporting a syntax error to the user. gcc/rust/ChangeLog: * ast/rust-ast.h: (AST::Attribute): add empty_input function * checks/errors/rust-feature-gate.cc: (FeatureGate::visit): check for empty feature gate gcc/testsuite/ChangeLog: * rust/compile/feature.rs: add an invalid empty feature to produce an error Signed-off-by: Matty Kuhn <matty.kuhn.1@gmail.com>
Diffstat (limited to 'gcc/rust/hir')
0 files changed, 0 insertions, 0 deletions