]> git.ipfire.org Git - thirdparty/gcc.git/commit
Evaluate the enum's discriminant in a const context
authorRyutaro Okada <1015ryu88@gmail.com>
Sun, 30 Mar 2025 16:28:41 +0000 (09:28 -0700)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Mon, 31 Mar 2025 14:55:15 +0000 (14:55 +0000)
commitb8ef598308e7bd08fb40651bf4c17490ccbb855f
tree76981e7659378c46880f435710315ea88b1fe2a1
parent765121736dfe3f5b319bbe9837880deda326394e
Evaluate the enum's discriminant in a const context

gcc/rust/ChangeLog:

* backend/rust-compile-resolve-path.cc: Evaluate the enum's discriminant in a const context

gcc/testsuite/ChangeLog:

* rust/compile/enum_discriminant1.rs: New test.

Signed-off-by: Ryutaro Okada <1015ryu88@gmail.com>
gcc/rust/backend/rust-compile-resolve-path.cc
gcc/testsuite/rust/compile/enum_discriminant1.rs [new file with mode: 0644]