diff options
author | Nobel <nobel2073@gmail.com> | 2024-12-21 23:56:39 +0545 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2025-01-10 09:08:00 +0000 |
commit | c960e034f3d66f88127818cabfd486e68d717872 (patch) | |
tree | 412ff61eb19f882dad0524404ac86618aabdd024 /gcc/rust/rust-lang.cc | |
parent | 806166db9db83bee816d169a13ab9992de9d66a0 (diff) | |
download | gcc-c960e034f3d66f88127818cabfd486e68d717872.zip gcc-c960e034f3d66f88127818cabfd486e68d717872.tar.gz gcc-c960e034f3d66f88127818cabfd486e68d717872.tar.bz2 |
Allow float type to be casted as integer type
gccrs now should be able to cast float types as numeric.
gcc/rust/ChangeLog:
* typecheck/rust-casts.cc (TypeCastRules::cast_rules): Add rule.
gcc/testsuite/ChangeLog:
* rust/compile/cast_float_as_integer.rs: New test.
Signed-off-by: Nobel Singh <nobel2073@gmail.com>
Diffstat (limited to 'gcc/rust/rust-lang.cc')
0 files changed, 0 insertions, 0 deletions