@@ -370,6 +370,9 @@ impl<'tcx> ChangeType<'tcx> {
370
370
pub fn to_category ( & self ) -> ChangeCategory {
371
371
// TODO: slightly messy and unreadable.
372
372
match * self {
373
+ //
374
+ // Breaking
375
+ //
373
376
ItemMadePrivate |
374
377
KindDifference |
375
378
StaticMutabilityChanged { now_mut : false } |
@@ -381,8 +384,7 @@ impl<'tcx> ChangeType<'tcx> {
381
384
TypeParameterRemoved { .. } |
382
385
VariantAdded |
383
386
VariantRemoved |
384
- VariantFieldAdded { public : true , .. } |
385
- VariantFieldAdded { public : false , total_public : true , .. } |
387
+ VariantFieldAdded { total_public : true , .. } |
386
388
VariantFieldRemoved { public : true , .. } |
387
389
VariantFieldRemoved { public : false , is_enum : true , .. } |
388
390
VariantStyleChanged { .. } |
@@ -397,12 +399,19 @@ impl<'tcx> ChangeType<'tcx> {
397
399
TraitImplTightened |
398
400
AssociatedItemRemoved |
399
401
Unknown => Breaking ,
402
+ //
403
+ // Technically breaking
404
+ //
400
405
MethodSelfChanged { now_self : true } |
401
406
TraitItemAdded { .. } | // either defaulted or sealed
402
407
BoundsLoosened { trait_def : false , .. } |
403
408
TraitImplLoosened |
404
409
AssociatedItemAdded |
410
+ VariantFieldAdded { public : true , .. } |
405
411
ItemMadePublic => TechnicallyBreaking ,
412
+ //
413
+ // Non breaking
414
+ //
406
415
StaticMutabilityChanged { now_mut : true } |
407
416
VarianceLoosened |
408
417
TypeParameterAdded { defaulted : true } |
0 commit comments