remove the unused ConstraintCategory::ClosureBounds
This commit is contained in:
parent
50222dba2e
commit
45b2ae935d
2 changed files with 0 additions and 6 deletions
|
@ -50,7 +50,6 @@ impl<'tcx> ConstraintDescription for ConstraintCategory<'tcx> {
|
|||
ConstraintCategory::Cast { is_implicit_coercion: true, .. } => "coercion ",
|
||||
ConstraintCategory::CallArgument(_) => "argument ",
|
||||
ConstraintCategory::TypeAnnotation => "type annotation ",
|
||||
ConstraintCategory::ClosureBounds => "closure body ",
|
||||
ConstraintCategory::SizedBound => "proving this value is `Sized` ",
|
||||
ConstraintCategory::CopyBound => "copying this value ",
|
||||
ConstraintCategory::OpaqueType => "opaque type ",
|
||||
|
|
|
@ -241,11 +241,6 @@ pub enum ConstraintCategory<'tcx> {
|
|||
unsize_to: Option<Ty<'tcx>>,
|
||||
},
|
||||
|
||||
/// A constraint that came from checking the body of a closure.
|
||||
///
|
||||
/// We try to get the category that the closure used when reporting this.
|
||||
ClosureBounds,
|
||||
|
||||
/// Contains the function type if available.
|
||||
CallArgument(#[derive_where(skip)] Option<Ty<'tcx>>),
|
||||
CopyBound,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue