diff options
| author | bors <bors@rust-lang.org> | 2023-12-28 20:41:44 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-12-28 20:41:44 +0000 |
| commit | fb5ed726f72c6d16c788517c60ec00d4564b9348 (patch) | |
| tree | 5c45cd5eb94c4a4812a2701cc557fdbbe797ab26 /compiler/rustc_const_eval/src/transform/validate.rs | |
| parent | 3ee671095499d83ba18d510683fa2a784d7d2ad2 (diff) | |
| parent | e24da8ea197b4b6724aaf7b5a5a2de64bb3c7445 (diff) | |
| download | rust-fb5ed726f72c6d16c788517c60ec00d4564b9348.tar.gz rust-fb5ed726f72c6d16c788517c60ec00d4564b9348.zip | |
Auto merge of #119174 - compiler-errors:movability, r=cjgillot
Remove movability from `TyKind::Coroutine` There's no reason to store movability in the generator struct directly. It is computed from the HIR, and can be pulled into a query to access when necessary.
Diffstat (limited to 'compiler/rustc_const_eval/src/transform/validate.rs')
| -rw-r--r-- | compiler/rustc_const_eval/src/transform/validate.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/transform/validate.rs b/compiler/rustc_const_eval/src/transform/validate.rs index 68ded1d324f..b249ffb84b3 100644 --- a/compiler/rustc_const_eval/src/transform/validate.rs +++ b/compiler/rustc_const_eval/src/transform/validate.rs @@ -694,7 +694,7 @@ impl<'a, 'tcx> Visitor<'tcx> for TypeChecker<'a, 'tcx> { }; check_equal(self, location, f_ty); } - &ty::Coroutine(def_id, args, _) => { + &ty::Coroutine(def_id, args) => { let f_ty = if let Some(var) = parent_ty.variant_index { let gen_body = if def_id == self.body.source.def_id() { self.body |
