@@ -595,7 +595,7 @@ impl Diagnostic {
595
595
pub fn multipart_suggestion (
596
596
& mut self ,
597
597
msg : impl Into < SubdiagnosticMessage > ,
598
- suggestion : Vec < ( Span , String ) > ,
598
+ suggestion : impl IntoIterator < Item = ( Span , String ) > ,
599
599
applicability : Applicability ,
600
600
) -> & mut Self {
601
601
self . multipart_suggestion_with_style (
@@ -611,7 +611,7 @@ impl Diagnostic {
611
611
pub fn multipart_suggestion_verbose (
612
612
& mut self ,
613
613
msg : impl Into < SubdiagnosticMessage > ,
614
- suggestion : Vec < ( Span , String ) > ,
614
+ suggestion : impl IntoIterator < Item = ( Span , String ) > ,
615
615
applicability : Applicability ,
616
616
) -> & mut Self {
617
617
self . multipart_suggestion_with_style (
@@ -625,7 +625,7 @@ impl Diagnostic {
625
625
pub fn multipart_suggestion_with_style (
626
626
& mut self ,
627
627
msg : impl Into < SubdiagnosticMessage > ,
628
- suggestion : Vec < ( Span , String ) > ,
628
+ suggestion : impl IntoIterator < Item = ( Span , String ) > ,
629
629
applicability : Applicability ,
630
630
style : SuggestionStyle ,
631
631
) -> & mut Self {
@@ -666,7 +666,7 @@ impl Diagnostic {
666
666
pub fn tool_only_multipart_suggestion (
667
667
& mut self ,
668
668
msg : impl Into < SubdiagnosticMessage > ,
669
- suggestion : Vec < ( Span , String ) > ,
669
+ suggestion : impl IntoIterator < Item = ( Span , String ) > ,
670
670
applicability : Applicability ,
671
671
) -> & mut Self {
672
672
self . multipart_suggestion_with_style (
@@ -807,7 +807,7 @@ impl Diagnostic {
807
807
pub fn multipart_suggestions (
808
808
& mut self ,
809
809
msg : impl Into < SubdiagnosticMessage > ,
810
- suggestions : impl IntoIterator < Item = Vec < ( Span , String ) > > ,
810
+ suggestions : impl IntoIterator < Item = impl IntoIterator < Item = ( Span , String ) > > ,
811
811
applicability : Applicability ,
812
812
) -> & mut Self {
813
813
let substitutions = suggestions
0 commit comments