[dropck] Emit Drop Error Codes#4515
Conversation
c3891a7 to
e56a89d
Compare
e56a89d to
6e0c9bc
Compare
|
Hi! while having a look at the changelog, I think it may need some adjustment. For example: doesn't really help in knowing what happened in these files. The names are off, I think. Can you respin the changelog part? I looks like you probably did it during an earlier phase of your dev. |
|
didn't forget you. a little bit busy nowadays |
|
@Islam-Imad I will put the PR in Draft mode for now, and you can mark it as ready once you are ready for a review again :) |
c36e334 to
7493ca2
Compare
added some utilites to catch drop related error codes. gcc/rust/ChangeLog: * Make-lang.in: add rust-drop-check.h * typecheck/rust-hir-type-check-expr.cc (TypeCheckExpr::visit): drop call error * typecheck/rust-hir-type-check-item.cc (TypeCheckItem::visit): emit union and trait errors * typecheck/rust-drop-check.cc: handle semantic drop logic. * typecheck/rust-drop-check.h: handle semantic drop logic. gcc/testsuite/ChangeLog: * rust/compile/dropck-e0040-direct-drop.rs: New test. * rust/compile/dropck-e0184-copy-drop.rs: New test. * rust/compile/dropck-e0740-union.rs: New test. Signed-off-by: Islam-Imad <islamimad404@gmail.com>
7493ca2 to
6dd80a4
Compare
the PR is ready for review. |
emit :