diff options
author | bl7awy <mahadelr19@gmail.com> | 2023-02-28 20:53:01 +0300 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-03-01 00:16:04 +0000 |
commit | 193c21c85b4b3f603b1b6280779c758d35570446 (patch) | |
tree | 823d15cfd3a0985477001c472d10cd5f561936f6 /gcc/rust/hir | |
parent | 9284e20b6542bad3ac2330b8ac6d41826d6c893b (diff) | |
download | gcc-193c21c85b4b3f603b1b6280779c758d35570446.zip gcc-193c21c85b4b3f603b1b6280779c758d35570446.tar.gz gcc-193c21c85b4b3f603b1b6280779c758d35570446.tar.bz2 |
typecheck: Fix casting error behind generics
gcc/rust/ChangeLog:
* typecheck/rust-casts.cc (TypeCastRules::cast_rules): Perform destructure on `from` type.
gcc/testsuite/ChangeLog:
* rust/compile/cast_generics.rs: New test.
Signed-off-by: Mahmoud Mohamed <mahadelr19@gmail.com>
Diffstat (limited to 'gcc/rust/hir')
0 files changed, 0 insertions, 0 deletions