@@ -473,7 +473,7 @@ pub trait Interner: Debug + Copy + Eq + Hash + Sized {
473
473
fn intern_ty ( self , kind : TyKind < Self > ) -> Self :: InternedType ;
474
474
475
475
/// Lookup the `TyKind` from an interned type.
476
- fn ty_data < ' a > ( self , ty : & ' a Self :: InternedType ) -> & ' a TyData < Self > ;
476
+ fn ty_data ( self , ty : & Self :: InternedType ) -> & TyData < Self > ;
477
477
478
478
/// Create an "interned" lifetime from `lifetime`. This is not
479
479
/// normally invoked directly; instead, you invoke
@@ -482,7 +482,7 @@ pub trait Interner: Debug + Copy + Eq + Hash + Sized {
482
482
fn intern_lifetime ( self , lifetime : LifetimeData < Self > ) -> Self :: InternedLifetime ;
483
483
484
484
/// Lookup the `LifetimeData` that was interned to create a `InternedLifetime`.
485
- fn lifetime_data < ' a > ( self , lifetime : & ' a Self :: InternedLifetime ) -> & ' a LifetimeData < Self > ;
485
+ fn lifetime_data ( self , lifetime : & Self :: InternedLifetime ) -> & LifetimeData < Self > ;
486
486
487
487
/// Create an "interned" const from `const`. This is not
488
488
/// normally invoked directly; instead, you invoke
@@ -491,7 +491,7 @@ pub trait Interner: Debug + Copy + Eq + Hash + Sized {
491
491
fn intern_const ( self , constant : ConstData < Self > ) -> Self :: InternedConst ;
492
492
493
493
/// Lookup the `ConstData` that was interned to create a `InternedConst`.
494
- fn const_data < ' a > ( self , constant : & ' a Self :: InternedConst ) -> & ' a ConstData < Self > ;
494
+ fn const_data ( self , constant : & Self :: InternedConst ) -> & ConstData < Self > ;
495
495
496
496
/// Determine whether two concrete const values are equal.
497
497
fn const_eq (
@@ -508,10 +508,7 @@ pub trait Interner: Debug + Copy + Eq + Hash + Sized {
508
508
fn intern_generic_arg ( self , data : GenericArgData < Self > ) -> Self :: InternedGenericArg ;
509
509
510
510
/// Lookup the `LifetimeData` that was interned to create a `InternedLifetime`.
511
- fn generic_arg_data < ' a > (
512
- self ,
513
- lifetime : & ' a Self :: InternedGenericArg ,
514
- ) -> & ' a GenericArgData < Self > ;
511
+ fn generic_arg_data ( self , lifetime : & Self :: InternedGenericArg ) -> & GenericArgData < Self > ;
515
512
516
513
/// Create an "interned" goal from `data`. This is not
517
514
/// normally invoked directly; instead, you invoke
@@ -520,7 +517,7 @@ pub trait Interner: Debug + Copy + Eq + Hash + Sized {
520
517
fn intern_goal ( self , data : GoalData < Self > ) -> Self :: InternedGoal ;
521
518
522
519
/// Lookup the `GoalData` that was interned to create a `InternedGoal`.
523
- fn goal_data < ' a > ( self , goal : & ' a Self :: InternedGoal ) -> & ' a GoalData < Self > ;
520
+ fn goal_data ( self , goal : & Self :: InternedGoal ) -> & GoalData < Self > ;
524
521
525
522
/// Create an "interned" goals from `data`. This is not
526
523
/// normally invoked directly; instead, you invoke
@@ -532,7 +529,7 @@ pub trait Interner: Debug + Copy + Eq + Hash + Sized {
532
529
) -> Result < Self :: InternedGoals , E > ;
533
530
534
531
/// Lookup the `GoalsData` that was interned to create a `InternedGoals`.
535
- fn goals_data < ' a > ( self , goals : & ' a Self :: InternedGoals ) -> & ' a [ Goal < Self > ] ;
532
+ fn goals_data ( self , goals : & Self :: InternedGoals ) -> & [ Goal < Self > ] ;
536
533
537
534
/// Create an "interned" substitution from `data`. This is not
538
535
/// normally invoked directly; instead, you invoke
@@ -544,10 +541,7 @@ pub trait Interner: Debug + Copy + Eq + Hash + Sized {
544
541
) -> Result < Self :: InternedSubstitution , E > ;
545
542
546
543
/// Lookup the `SubstitutionData` that was interned to create a `InternedSubstitution`.
547
- fn substitution_data < ' a > (
548
- self ,
549
- substitution : & ' a Self :: InternedSubstitution ,
550
- ) -> & ' a [ GenericArg < Self > ] ;
544
+ fn substitution_data ( self , substitution : & Self :: InternedSubstitution ) -> & [ GenericArg < Self > ] ;
551
545
552
546
/// Create an "interned" program clause from `data`. This is not
553
547
/// normally invoked directly; instead, you invoke
@@ -556,10 +550,7 @@ pub trait Interner: Debug + Copy + Eq + Hash + Sized {
556
550
fn intern_program_clause ( self , data : ProgramClauseData < Self > ) -> Self :: InternedProgramClause ;
557
551
558
552
/// Lookup the `ProgramClauseData` that was interned to create a `ProgramClause`.
559
- fn program_clause_data < ' a > (
560
- self ,
561
- clause : & ' a Self :: InternedProgramClause ,
562
- ) -> & ' a ProgramClauseData < Self > ;
553
+ fn program_clause_data ( self , clause : & Self :: InternedProgramClause ) -> & ProgramClauseData < Self > ;
563
554
564
555
/// Create an "interned" program clauses from `data`. This is not
565
556
/// normally invoked directly; instead, you invoke
@@ -571,10 +562,8 @@ pub trait Interner: Debug + Copy + Eq + Hash + Sized {
571
562
) -> Result < Self :: InternedProgramClauses , E > ;
572
563
573
564
/// Lookup the `ProgramClauseData` that was interned to create a `ProgramClause`.
574
- fn program_clauses_data < ' a > (
575
- self ,
576
- clauses : & ' a Self :: InternedProgramClauses ,
577
- ) -> & ' a [ ProgramClause < Self > ] ;
565
+ fn program_clauses_data ( self , clauses : & Self :: InternedProgramClauses )
566
+ -> & [ ProgramClause < Self > ] ;
578
567
579
568
/// Create an "interned" quantified where clauses from `data`. This is not
580
569
/// normally invoked directly; instead, you invoke
@@ -587,10 +576,10 @@ pub trait Interner: Debug + Copy + Eq + Hash + Sized {
587
576
588
577
/// Lookup the slice of `QuantifiedWhereClause` that was interned to
589
578
/// create a `QuantifiedWhereClauses`.
590
- fn quantified_where_clauses_data < ' a > (
579
+ fn quantified_where_clauses_data (
591
580
self ,
592
- clauses : & ' a Self :: InternedQuantifiedWhereClauses ,
593
- ) -> & ' a [ QuantifiedWhereClause < Self > ] ;
581
+ clauses : & Self :: InternedQuantifiedWhereClauses ,
582
+ ) -> & [ QuantifiedWhereClause < Self > ] ;
594
583
595
584
/// Create an "interned" parameter kinds from `data`. This is not
596
585
/// normally invoked directly; instead, you invoke
@@ -603,10 +592,10 @@ pub trait Interner: Debug + Copy + Eq + Hash + Sized {
603
592
604
593
/// Lookup the slice of `VariableKinds` that was interned to
605
594
/// create a `VariableKinds`.
606
- fn variable_kinds_data < ' a > (
595
+ fn variable_kinds_data (
607
596
self ,
608
- variable_kinds : & ' a Self :: InternedVariableKinds ,
609
- ) -> & ' a [ VariableKind < Self > ] ;
597
+ variable_kinds : & Self :: InternedVariableKinds ,
598
+ ) -> & [ VariableKind < Self > ] ;
610
599
611
600
/// Create "interned" variable kinds with universe index from `data`. This is not
612
601
/// normally invoked directly; instead, you invoke
@@ -619,10 +608,10 @@ pub trait Interner: Debug + Copy + Eq + Hash + Sized {
619
608
620
609
/// Lookup the slice of `CanonicalVariableKind` that was interned to
621
610
/// create a `CanonicalVariableKinds`.
622
- fn canonical_var_kinds_data < ' a > (
611
+ fn canonical_var_kinds_data (
623
612
self ,
624
- canonical_var_kinds : & ' a Self :: InternedCanonicalVarKinds ,
625
- ) -> & ' a [ CanonicalVarKind < Self > ] ;
613
+ canonical_var_kinds : & Self :: InternedCanonicalVarKinds ,
614
+ ) -> & [ CanonicalVarKind < Self > ] ;
626
615
627
616
/// Create "interned" constraints from `data`. This is not
628
617
/// normally invoked dirctly; instead, you invoke
@@ -635,10 +624,10 @@ pub trait Interner: Debug + Copy + Eq + Hash + Sized {
635
624
636
625
/// Lookup the slice of `Constraint` that was interned to
637
626
/// create a `Constraints`.
638
- fn constraints_data < ' a > (
627
+ fn constraints_data (
639
628
self ,
640
- constraints : & ' a Self :: InternedConstraints ,
641
- ) -> & ' a [ InEnvironment < Constraint < Self > > ] ;
629
+ constraints : & Self :: InternedConstraints ,
630
+ ) -> & [ InEnvironment < Constraint < Self > > ] ;
642
631
643
632
/// Create "interned" variances from `data`. This is not
644
633
/// normally invoked directly; instead, you invoke
@@ -651,7 +640,7 @@ pub trait Interner: Debug + Copy + Eq + Hash + Sized {
651
640
652
641
/// Lookup the slice of `Variance` that was interned to
653
642
/// create a `Variances`.
654
- fn variances_data < ' a > ( self , variances : & ' a Self :: InternedVariances ) -> & ' a [ Variance ] ;
643
+ fn variances_data ( self , variances : & Self :: InternedVariances ) -> & [ Variance ] ;
655
644
}
656
645
657
646
/// Implemented by types that have an associated interner (which
0 commit comments