@@ -439,13 +439,6 @@ impl RuleOptions {
439
439
..RuleOptions :: STABLE_RUST
440
440
} ;
441
441
442
- /// A backwards-compatible proposal by @dianne that behaves close to the 2024 stateless
443
- /// proposal.
444
- pub const EAT_OUTER_2021 : Self = RuleOptions {
445
- fallback_to_outer : FallbackToOuterBehavior :: EatBoth ,
446
- ..RuleOptions :: STATELESS_2021
447
- } ;
448
-
449
442
/// Purely structural matching, with no match ergonomics.
450
443
pub const STRUCTURAL : Self = RuleOptions {
451
444
inherited_ref_on_ref : InheritedRefOnRefBehavior :: Error ,
@@ -456,14 +449,6 @@ impl RuleOptions {
456
449
..Self :: STATELESS
457
450
} ;
458
451
459
- /// The minimal amout of match ergonomics that's forward-compatible with most proposals.
460
- pub const MIN_ERGONOMICS : Self = RuleOptions {
461
- ref_binding_on_inherited : RefBindingOnInheritedBehavior :: Error ,
462
- mut_binding_on_inherited : MutBindingOnInheritedBehavior :: Error ,
463
- match_constructor_through_ref : true ,
464
- ..Self :: STRUCTURAL
465
- } ;
466
-
467
452
pub const RFC3627_2021 : Self = RuleOptions {
468
453
mut_binding_on_inherited : MutBindingOnInheritedBehavior :: ResetBindingMode ,
469
454
inherited_ref_on_ref : InheritedRefOnRefBehavior :: EatBoth ,
@@ -523,12 +508,17 @@ pub static KNOWN_TY_BASED_BUNDLES: &[BundleDoc<RuleOptions>] = &[
523
508
BundleDoc {
524
509
name : "stateless_2021" ,
525
510
ruleset : RuleOptions :: STATELESS_2021 ,
526
- doc : "The currently-planned version of the `stateless` ruleset for edition 2021. Not actually stateless." ,
511
+ doc : "The currently-planned version of the `stateless` ruleset for edition 2021. \
512
+ Not actually stateless.",
527
513
} ,
528
514
BundleDoc {
529
515
name : "eat_outer_2021" ,
530
- ruleset : RuleOptions :: EAT_OUTER_2021 ,
531
- doc : "A backwards-compatible proposal by @dianne that behaves close to the 2024 stateless proposal." ,
516
+ ruleset : RuleOptions {
517
+ fallback_to_outer : FallbackToOuterBehavior :: EatBoth ,
518
+ ..RuleOptions :: STATELESS_2021
519
+ } ,
520
+ doc : "A backwards-compatible proposal by @dianne that behaves close to the\
521
+ 2024 stateless proposal.",
532
522
} ,
533
523
BundleDoc {
534
524
name : "rfc3627" ,
@@ -552,7 +542,12 @@ pub static KNOWN_TY_BASED_BUNDLES: &[BundleDoc<RuleOptions>] = &[
552
542
} ,
553
543
BundleDoc {
554
544
name : "min_ergonomics" ,
555
- ruleset : RuleOptions :: MIN_ERGONOMICS ,
545
+ ruleset : RuleOptions {
546
+ ref_binding_on_inherited : RefBindingOnInheritedBehavior :: Error ,
547
+ mut_binding_on_inherited : MutBindingOnInheritedBehavior :: Error ,
548
+ match_constructor_through_ref : true ,
549
+ ..RuleOptions :: STRUCTURAL
550
+ } ,
556
551
doc : "The minimal amout of match ergonomics that's forward-compatible with most proposals" ,
557
552
} ,
558
553
BundleDoc {
0 commit comments