Use a Field
in ConstraintCategory::ClosureUpvar
This commit is contained in:
parent
5569757491
commit
f41722a2ad
3 changed files with 19 additions and 11 deletions
|
@ -341,7 +341,7 @@ pub enum ConstraintCategory {
|
|||
/// like `Foo { field: my_val }`)
|
||||
Usage,
|
||||
OpaqueType,
|
||||
ClosureUpvar(hir::HirId),
|
||||
ClosureUpvar(Field),
|
||||
|
||||
/// A constraint from a user-written predicate
|
||||
/// with the provided span, written on the item
|
||||
|
@ -363,7 +363,7 @@ pub enum ConstraintCategory {
|
|||
#[derive(TyEncodable, TyDecodable, HashStable)]
|
||||
pub enum ReturnConstraint {
|
||||
Normal,
|
||||
ClosureUpvar(hir::HirId),
|
||||
ClosureUpvar(Field),
|
||||
}
|
||||
|
||||
/// The subject of a `ClosureOutlivesRequirement` -- that is, the thing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue