remove the unused ConstraintCategory::ClosureBounds
This commit is contained in:
@@ -50,7 +50,6 @@ impl<'tcx> ConstraintDescription for ConstraintCategory<'tcx> {
|
|||||||
ConstraintCategory::Cast { is_implicit_coercion: true, .. } => "coercion ",
|
ConstraintCategory::Cast { is_implicit_coercion: true, .. } => "coercion ",
|
||||||
ConstraintCategory::CallArgument(_) => "argument ",
|
ConstraintCategory::CallArgument(_) => "argument ",
|
||||||
ConstraintCategory::TypeAnnotation => "type annotation ",
|
ConstraintCategory::TypeAnnotation => "type annotation ",
|
||||||
ConstraintCategory::ClosureBounds => "closure body ",
|
|
||||||
ConstraintCategory::SizedBound => "proving this value is `Sized` ",
|
ConstraintCategory::SizedBound => "proving this value is `Sized` ",
|
||||||
ConstraintCategory::CopyBound => "copying this value ",
|
ConstraintCategory::CopyBound => "copying this value ",
|
||||||
ConstraintCategory::OpaqueType => "opaque type ",
|
ConstraintCategory::OpaqueType => "opaque type ",
|
||||||
|
|||||||
@@ -241,11 +241,6 @@ pub enum ConstraintCategory<'tcx> {
|
|||||||
unsize_to: Option<Ty<'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.
|
/// Contains the function type if available.
|
||||||
CallArgument(#[derive_where(skip)] Option<Ty<'tcx>>),
|
CallArgument(#[derive_where(skip)] Option<Ty<'tcx>>),
|
||||||
CopyBound,
|
CopyBound,
|
||||||
|
|||||||
Reference in New Issue
Block a user