aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend
diff options
context:
space:
mode:
authorMatty Kuhn <matty.kuhn.1@gmail.com>2025-04-04 18:09:41 -0600
committerArthur Cohen <arthur.cohen@embecosm.com>2025-04-08 10:17:20 +0200
commita75a697ff0a5bafd23c468940943b80082088dba (patch)
tree32426793754657450a48695ac93b20083f3d33d6 /gcc/rust/backend
parent8885e9e109b664977479b23d8b976fdfaa576665 (diff)
downloadgcc-a75a697ff0a5bafd23c468940943b80082088dba.zip
gcc-a75a697ff0a5bafd23c468940943b80082088dba.tar.gz
gcc-a75a697ff0a5bafd23c468940943b80082088dba.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/backend')
0 files changed, 0 insertions, 0 deletions