1
Fork 0

Fix disabling the export of noop async_drop_in_place_raw

This commit is contained in:
Daria Sukhonina 2024-04-18 15:18:30 +03:00
parent 80c0b7e90f
commit e239e73a77
9 changed files with 53 additions and 30 deletions

View file

@ -57,7 +57,7 @@ fn resolve_instance<'tcx>(
} else if Some(def_id) == tcx.lang_items().async_drop_in_place_fn() {
let ty = args.type_at(0);
if ty.is_async_destructor_noop(tcx, param_env) {
if !ty.is_async_destructor_noop(tcx, param_env) {
match *ty.kind() {
ty::Closure(..)
| ty::CoroutineClosure(..)