@@ -595,7 +595,7 @@ impl Diagnostic {
595595 pub fn multipart_suggestion (
596596 & mut self ,
597597 msg : impl Into < SubdiagnosticMessage > ,
598- suggestion : Vec < ( Span , String ) > ,
598+ suggestion : impl IntoIterator < Item = ( Span , String ) > ,
599599 applicability : Applicability ,
600600 ) -> & mut Self {
601601 self . multipart_suggestion_with_style (
@@ -611,7 +611,7 @@ impl Diagnostic {
611611 pub fn multipart_suggestion_verbose (
612612 & mut self ,
613613 msg : impl Into < SubdiagnosticMessage > ,
614- suggestion : Vec < ( Span , String ) > ,
614+ suggestion : impl IntoIterator < Item = ( Span , String ) > ,
615615 applicability : Applicability ,
616616 ) -> & mut Self {
617617 self . multipart_suggestion_with_style (
@@ -625,7 +625,7 @@ impl Diagnostic {
625625 pub fn multipart_suggestion_with_style (
626626 & mut self ,
627627 msg : impl Into < SubdiagnosticMessage > ,
628- suggestion : Vec < ( Span , String ) > ,
628+ suggestion : impl IntoIterator < Item = ( Span , String ) > ,
629629 applicability : Applicability ,
630630 style : SuggestionStyle ,
631631 ) -> & mut Self {
@@ -666,7 +666,7 @@ impl Diagnostic {
666666 pub fn tool_only_multipart_suggestion (
667667 & mut self ,
668668 msg : impl Into < SubdiagnosticMessage > ,
669- suggestion : Vec < ( Span , String ) > ,
669+ suggestion : impl IntoIterator < Item = ( Span , String ) > ,
670670 applicability : Applicability ,
671671 ) -> & mut Self {
672672 self . multipart_suggestion_with_style (
@@ -807,7 +807,7 @@ impl Diagnostic {
807807 pub fn multipart_suggestions (
808808 & mut self ,
809809 msg : impl Into < SubdiagnosticMessage > ,
810- suggestions : impl IntoIterator < Item = Vec < ( Span , String ) > > ,
810+ suggestions : impl IntoIterator < Item = impl IntoIterator < Item = ( Span , String ) > > ,
811811 applicability : Applicability ,
812812 ) -> & mut Self {
813813 let substitutions = suggestions
0 commit comments