diff options
| author | Michael Goulet <michael@errs.io> | 2023-12-21 01:52:10 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-12-28 16:35:01 +0000 |
| commit | eca05c6cb06ca059bf13bd7f2b53066d217edaa2 (patch) | |
| tree | bef50208e63d0c57178323b1b36ebbf0407c14be | |
| parent | 02ed79063171e4214d4139e651b477487c517108 (diff) | |
| download | rust-eca05c6cb06ca059bf13bd7f2b53066d217edaa2.tar.gz rust-eca05c6cb06ca059bf13bd7f2b53066d217edaa2.zip | |
Remove movability from TyKind::Coroutine
| -rw-r--r-- | src/type_of.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/type_of.rs b/src/type_of.rs index 479a814788a..e5c0b2de4ca 100644 --- a/src/type_of.rs +++ b/src/type_of.rs @@ -98,7 +98,7 @@ fn uncached_gcc_type<'gcc, 'tcx>(cx: &CodegenCx<'gcc, 'tcx>, layout: TyAndLayout write!(&mut name, "::{}", def.variant(index).name).unwrap(); } } - if let (&ty::Coroutine(_, _, _), &Variants::Single { index }) = + if let (&ty::Coroutine(_, _), &Variants::Single { index }) = (layout.ty.kind(), &layout.variants) { write!(&mut name, "::{}", ty::CoroutineArgs::variant_name(index)).unwrap(); |
