diff options
author | Nobel <nobel2073@gmail.com> | 2024-12-23 04:04:44 +0545 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2024-12-23 14:28:42 +0000 |
commit | d28cae596d45eba9212edad25188e3f5139debb0 (patch) | |
tree | af372d5f7f845225860ac74db67eca139bf2087b /gcc/rust/hir | |
parent | b5c354d038f800695a8d730c56c4a4f744134adb (diff) | |
download | gcc-d28cae596d45eba9212edad25188e3f5139debb0.zip gcc-d28cae596d45eba9212edad25188e3f5139debb0.tar.gz gcc-d28cae596d45eba9212edad25188e3f5139debb0.tar.bz2 |
add ptr to int and int to ptr type cast rules
Added rules to allow type casting pointer as integer types (u*,i*)
and integer types to be casted as pointer.
gcc/rust/ChangeLog:
* typecheck/rust-casts.cc (TypeCastRules::cast_rules): Add rule.
gcc/testsuite/ChangeLog:
* rust/compile/ptr_int_cast.rs: New test.
Signed-off-by: Nobel Singh <nobel2073@gmail.com>
Diffstat (limited to 'gcc/rust/hir')
0 files changed, 0 insertions, 0 deletions