Skip to content

Commit 45b2ae9

Browse files
committed
remove the unused ConstraintCategory::ClosureBounds
1 parent 50222db commit 45b2ae9

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

compiler/rustc_borrowck/src/diagnostics/region_errors.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ impl<'tcx> ConstraintDescription for ConstraintCategory<'tcx> {
5050
ConstraintCategory::Cast { is_implicit_coercion: true, .. } => "coercion ",
5151
ConstraintCategory::CallArgument(_) => "argument ",
5252
ConstraintCategory::TypeAnnotation => "type annotation ",
53-
ConstraintCategory::ClosureBounds => "closure body ",
5453
ConstraintCategory::SizedBound => "proving this value is `Sized` ",
5554
ConstraintCategory::CopyBound => "copying this value ",
5655
ConstraintCategory::OpaqueType => "opaque type ",

compiler/rustc_middle/src/mir/query.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,6 @@ pub enum ConstraintCategory<'tcx> {
241241
unsize_to: Option<Ty<'tcx>>,
242242
},
243243

244-
/// A constraint that came from checking the body of a closure.
245-
///
246-
/// We try to get the category that the closure used when reporting this.
247-
ClosureBounds,
248-
249244
/// Contains the function type if available.
250245
CallArgument(#[derive_where(skip)] Option<Ty<'tcx>>),
251246
CopyBound,

0 commit comments

Comments
 (0)