diff options
| author | Daria Sukhonina <dariasukhonina@gmail.com> | 2024-04-18 15:18:30 +0300 |
|---|---|---|
| committer | Daria Sukhonina <dariasukhonina@gmail.com> | 2024-04-18 15:19:05 +0300 |
| commit | e239e73a77cda38b53e9a7716e01f0c2af995ff5 (patch) | |
| tree | 26e0fd7ccc36edb77eefba48d652168b878c0900 /compiler/rustc_ty_utils | |
| parent | 80c0b7e90fd064ea6c5fe8594b301e0fcc55af68 (diff) | |
| download | rust-e239e73a77cda38b53e9a7716e01f0c2af995ff5.tar.gz rust-e239e73a77cda38b53e9a7716e01f0c2af995ff5.zip | |
Fix disabling the export of noop async_drop_in_place_raw
Diffstat (limited to 'compiler/rustc_ty_utils')
| -rw-r--r-- | compiler/rustc_ty_utils/src/instance.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ty_utils/src/instance.rs b/compiler/rustc_ty_utils/src/instance.rs index 400556a7d6a..c1661fa63a8 100644 --- a/compiler/rustc_ty_utils/src/instance.rs +++ b/compiler/rustc_ty_utils/src/instance.rs @@ -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(..) |
