]> git.ipfire.org Git - thirdparty/gcc.git/commit
nr2.0: Only insert derive macros if they exist
authorArthur Cohen <arthur.cohen@embecosm.com>
Wed, 9 Apr 2025 12:48:55 +0000 (14:48 +0200)
committerCohenArthur <arthur.cohen@embecosm.com>
Mon, 14 Apr 2025 12:35:00 +0000 (12:35 +0000)
commit5bd41f967706556524cd1de172d03e7351402405
treef6ae51e37b3f3a2ffdbbfaa62814f32d9a54e738
parent43b413664f9a482eb9cb44d2842d613c2a0a4b69
nr2.0: Only insert derive macros if they exist

This causes an assertion failure when compiling core with nr2.0, but should
probably be improved. I'm not sure how this code enables built-in derive
macros to be resolved so this is a temporary fix.

gcc/rust/ChangeLog:

* resolve/rust-early-name-resolver-2.0.cc (Early::visit_attributes): Remove assertion.
gcc/rust/resolve/rust-early-name-resolver-2.0.cc