File tree 2 files changed +0
-6
lines changed
rustc_borrowck/src/diagnostics
2 files changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ impl<'tcx> ConstraintDescription for ConstraintCategory<'tcx> {
50
50
ConstraintCategory :: Cast { is_implicit_coercion : true , .. } => "coercion " ,
51
51
ConstraintCategory :: CallArgument ( _) => "argument " ,
52
52
ConstraintCategory :: TypeAnnotation => "type annotation " ,
53
- ConstraintCategory :: ClosureBounds => "closure body " ,
54
53
ConstraintCategory :: SizedBound => "proving this value is `Sized` " ,
55
54
ConstraintCategory :: CopyBound => "copying this value " ,
56
55
ConstraintCategory :: OpaqueType => "opaque type " ,
Original file line number Diff line number Diff line change @@ -241,11 +241,6 @@ pub enum ConstraintCategory<'tcx> {
241
241
unsize_to : Option < Ty < ' tcx > > ,
242
242
} ,
243
243
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
-
249
244
/// Contains the function type if available.
250
245
CallArgument ( #[ derive_where( skip) ] Option < Ty < ' tcx > > ) ,
251
246
CopyBound ,
You can’t perform that action at this time.
0 commit comments