@@ -503,7 +503,16 @@ pub static KNOWN_TY_BASED_BUNDLES: &[BundleDoc<RuleOptions>] = &[
503
503
name : "stateless_no_temporaries" ,
504
504
ruleset : RuleOptions :: STATELESS_NO_TEMPORARIES ,
505
505
doc : "A reasonable proposal; like `stateless` but \
506
- forbids `ref` bindings that create temporaries",
506
+ forbids `ref` bindings that create temporaries",
507
+ } ,
508
+ BundleDoc {
509
+ name : "stateless_no_binding_modifiers" ,
510
+ ruleset : RuleOptions {
511
+ ref_binding_on_inherited : RefBindingOnInheritedBehavior :: Error ,
512
+ mut_binding_on_inherited : MutBindingOnInheritedBehavior :: Error ,
513
+ ..RuleOptions :: STATELESS
514
+ } ,
515
+ doc : "Like `stateless` but forbids `ref` and `mut` bindings on inherited references." ,
507
516
} ,
508
517
BundleDoc {
509
518
name : "stateless_2021" ,
@@ -525,6 +534,15 @@ pub static KNOWN_TY_BASED_BUNDLES: &[BundleDoc<RuleOptions>] = &[
525
534
ruleset : RuleOptions :: ERGO2024 ,
526
535
doc : "The accepted RFC3627 behavior" ,
527
536
} ,
537
+ BundleDoc {
538
+ name : "rfc3627_no_binding_modifiers" ,
539
+ ruleset : RuleOptions {
540
+ ref_binding_on_inherited : RefBindingOnInheritedBehavior :: Error ,
541
+ mut_binding_on_inherited : MutBindingOnInheritedBehavior :: Error ,
542
+ ..RuleOptions :: ERGO2024
543
+ } ,
544
+ doc : "Like RFC3627 but forbids `ref` and `mut` bindings on inherited references." ,
545
+ } ,
528
546
BundleDoc {
529
547
name : "rfc3627_2021" ,
530
548
ruleset : RuleOptions :: RFC3627_2021 ,
0 commit comments