1
Fork 0

remove the unused ConstraintCategory::ClosureBounds

This commit is contained in:
dianne 2024-12-19 11:12:31 -08:00
parent 50222dba2e
commit 45b2ae935d
2 changed files with 0 additions and 6 deletions

View file

@ -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 ",

View file

@ -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,