diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-05-08 15:53:19 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-04-20 17:48:32 +0000 |
| commit | b275d2c30b6e88cc48747f349f7137076d450658 (patch) | |
| tree | b834a60fd639a6badc5f2838974455658522542b /compiler/rustc_mir_transform/src/generator.rs | |
| parent | 0e017fc94a5b35250fd1b0732e004e0112d09728 (diff) | |
| download | rust-b275d2c30b6e88cc48747f349f7137076d450658.tar.gz rust-b275d2c30b6e88cc48747f349f7137076d450658.zip | |
Remove WithOptconstParam.
Diffstat (limited to 'compiler/rustc_mir_transform/src/generator.rs')
| -rw-r--r-- | compiler/rustc_mir_transform/src/generator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/generator.rs b/compiler/rustc_mir_transform/src/generator.rs index 507e12d7238..5b3a66bc3d2 100644 --- a/compiler/rustc_mir_transform/src/generator.rs +++ b/compiler/rustc_mir_transform/src/generator.rs @@ -1399,7 +1399,7 @@ pub(crate) fn mir_generator_witnesses<'tcx>( ) -> GeneratorLayout<'tcx> { assert!(tcx.sess.opts.unstable_opts.drop_tracking_mir); - let (body, _) = tcx.mir_promoted(ty::WithOptConstParam::unknown(def_id)); + let (body, _) = tcx.mir_promoted(def_id); let body = body.borrow(); let body = &*body; |
