aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/rust-hir-dump.cc
diff options
context:
space:
mode:
authorNobel <nobel2073@gmail.com>2024-12-23 04:04:44 +0545
committerPhilip Herron <philip.herron@embecosm.com>2024-12-23 14:28:42 +0000
commitd28cae596d45eba9212edad25188e3f5139debb0 (patch)
treeaf372d5f7f845225860ac74db67eca139bf2087b /gcc/rust/hir/rust-hir-dump.cc
parentb5c354d038f800695a8d730c56c4a4f744134adb (diff)
downloadgcc-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/rust-hir-dump.cc')
0 files changed, 0 insertions, 0 deletions