File tree 3 files changed +5
-5
lines changed
compiler/rustc_errors/src
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ pub struct SuggestionsDisabled;
23
23
/// Simplified version of `FluentArg` that can implement `Encodable` and `Decodable`. Collection of
24
24
/// `DiagnosticArg` are converted to `FluentArgs` (consuming the collection) at the start of
25
25
/// diagnostic emission.
26
- pub type DiagnosticArg < ' iter , ' source > = ( & ' iter DiagnosticArgName , & ' iter DiagnosticArgValue ) ;
26
+ pub type DiagnosticArg < ' iter > = ( & ' iter DiagnosticArgName , & ' iter DiagnosticArgValue ) ;
27
27
28
28
/// Name of a diagnostic argument.
29
29
pub type DiagnosticArgName = Cow < ' static , str > ;
@@ -909,7 +909,7 @@ impl Diagnostic {
909
909
// Exact iteration order of diagnostic arguments shouldn't make a difference to output because
910
910
// they're only used in interpolation.
911
911
#[ allow( rustc:: potential_query_instability) ]
912
- pub fn args ( & self ) -> impl Iterator < Item = DiagnosticArg < ' _ , ' static > > {
912
+ pub fn args ( & self ) -> impl Iterator < Item = DiagnosticArg < ' _ > > {
913
913
self . args . iter ( )
914
914
}
915
915
Original file line number Diff line number Diff line change @@ -628,7 +628,7 @@ impl DiagCtxt {
628
628
pub fn eagerly_translate < ' a > (
629
629
& self ,
630
630
message : DiagnosticMessage ,
631
- args : impl Iterator < Item = DiagnosticArg < ' a , ' static > > ,
631
+ args : impl Iterator < Item = DiagnosticArg < ' a > > ,
632
632
) -> SubdiagnosticMessage {
633
633
SubdiagnosticMessage :: Eager ( Cow :: from ( self . eagerly_translate_to_string ( message, args) ) )
634
634
}
@@ -637,7 +637,7 @@ impl DiagCtxt {
637
637
pub fn eagerly_translate_to_string < ' a > (
638
638
& self ,
639
639
message : DiagnosticMessage ,
640
- args : impl Iterator < Item = DiagnosticArg < ' a , ' static > > ,
640
+ args : impl Iterator < Item = DiagnosticArg < ' a > > ,
641
641
) -> String {
642
642
let inner = self . inner . borrow ( ) ;
643
643
let args = crate :: translation:: to_fluent_args ( args) ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ use std::error::Report;
13
13
/// Typically performed once for each diagnostic at the start of `emit_diagnostic` and then
14
14
/// passed around as a reference thereafter.
15
15
pub fn to_fluent_args < ' iter > (
16
- iter : impl Iterator < Item = DiagnosticArg < ' iter , ' static > > ,
16
+ iter : impl Iterator < Item = DiagnosticArg < ' iter > > ,
17
17
) -> FluentArgs < ' static > {
18
18
let mut args = if let Some ( size) = iter. size_hint ( ) . 1 {
19
19
FluentArgs :: with_capacity ( size)
You can’t perform that action at this time.
0 commit comments