@@ -430,19 +430,15 @@ all method invocations using the method syntax become invalid."
430
430
}
431
431
TraitItemAdded {
432
432
defaulted : true , ..
433
- } => {
434
- "Adding a new defaulted trait item is a breaking change in some specific
433
+ } => "Adding a new defaulted trait item is a breaking change in some specific
435
434
situations: The new trait item could cause a name clash with traits
436
435
defined in user code. Because this is a rather special case, this change
437
- is classified as \" technically breaking\" ."
438
- }
436
+ is classified as \" technically breaking\" ." ,
439
437
TraitItemAdded {
440
438
sealed_trait : true , ..
441
- } => {
442
- "Adding a new trait item is a non-breaking change, when user code can't
439
+ } => "Adding a new trait item is a non-breaking change, when user code can't
443
440
provide implementations of the trait, i.e. if the trait is sealed by
444
- inheriting from an unnamable (crate-local) item."
445
- }
441
+ inheriting from an unnamable (crate-local) item." ,
446
442
TraitItemAdded { .. } =>
447
443
// neither defaulted or sealed
448
444
{
@@ -468,30 +464,22 @@ type or lifetime not fulfilling the bound are rendered invalid."
468
464
}
469
465
BoundsLoosened {
470
466
trait_def : true , ..
471
- } => {
472
- "Loosening the bounds of a lifetime or type parameter in a trait
467
+ } => "Loosening the bounds of a lifetime or type parameter in a trait
473
468
definition is a breaking change, because the assumption in user code
474
469
that the bound in question hold is violated, potentially invalidating
475
- trait implementation or usage."
476
- }
470
+ trait implementation or usage." ,
477
471
BoundsLoosened {
478
472
trait_def : false , ..
479
- } => {
480
- "Loosening the bounds of a lifetime or type parameter in a non-trait
473
+ } => "Loosening the bounds of a lifetime or type parameter in a non-trait
481
474
definition is a non-breaking change, because all old references to the
482
- item would remain valid."
483
- }
484
- TraitImplTightened => {
485
- "Effectively removing a trait implementation for a (possibly
475
+ item would remain valid." ,
476
+ TraitImplTightened => "Effectively removing a trait implementation for a (possibly
486
477
parametrized) type is a breaking change, as all old references to trait
487
- methods on the type become invalid."
488
- }
489
- TraitImplLoosened => {
490
- "Effectively adding a trait implementation for a (possibly
478
+ methods on the type become invalid." ,
479
+ TraitImplLoosened => "Effectively adding a trait implementation for a (possibly
491
480
parametrized) type is a breaking change in some specific situations,
492
481
as name clashes with other trait implementations in user code can be
493
- caused."
494
- }
482
+ caused." ,
495
483
AssociatedItemAdded => {
496
484
"Adding a new item to an inherent impl is a breaking change in some
497
485
specific situations, for example if this causes name clashes with a trait
0 commit comments