about summary refs log tree commit diff
path: root/compiler/rustc_borrowck/src/member_constraints.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-07-26 06:19:58 +0000
committerMichael Goulet <michael@errs.io>2022-07-26 06:19:58 +0000
commitd3492ca85205182e30e9baf06e9b1db08e501f56 (patch)
tree9c79d30ab7089fcfa5242b429bd4b6dedfd655ac /compiler/rustc_borrowck/src/member_constraints.rs
parentdaaae25022cedcd7ded230170cdf48cfb799f9a2 (diff)
downloadrust-d3492ca85205182e30e9baf06e9b1db08e501f56.tar.gz
rust-d3492ca85205182e30e9baf06e9b1db08e501f56.zip
Use real opaque type instead of just saying impl Trait
Diffstat (limited to 'compiler/rustc_borrowck/src/member_constraints.rs')
-rw-r--r--compiler/rustc_borrowck/src/member_constraints.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_borrowck/src/member_constraints.rs b/compiler/rustc_borrowck/src/member_constraints.rs
index e91fcf1472d..43253a2aab0 100644
--- a/compiler/rustc_borrowck/src/member_constraints.rs
+++ b/compiler/rustc_borrowck/src/member_constraints.rs
@@ -38,6 +38,8 @@ pub(crate) struct NllMemberConstraint<'tcx> {
     /// The hidden type in which `R0` appears. (Used in error reporting.)
     pub(crate) hidden_ty: Ty<'tcx>,
 
+    pub(crate) key: ty::OpaqueTypeKey<'tcx>,
+
     /// The region `R0`.
     pub(crate) member_region_vid: ty::RegionVid,
 
@@ -90,6 +92,7 @@ impl<'tcx> MemberConstraintSet<'tcx, ty::RegionVid> {
             member_region_vid,
             definition_span: m_c.definition_span,
             hidden_ty: m_c.hidden_ty,
+            key: m_c.key,
             start_index,
             end_index,
         });