We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e807cb3 commit 9568138Copy full SHA for 9568138
compiler/rustc_errors/src/diagnostic.rs
@@ -734,7 +734,7 @@ impl Diagnostic {
734
&mut self,
735
sp: Span,
736
msg: impl Into<SubdiagnosticMessage>,
737
- suggestions: impl Iterator<Item = String>,
+ suggestions: impl IntoIterator<Item = String>,
738
applicability: Applicability,
739
style: SuggestionStyle,
740
) -> &mut Self {
@@ -768,7 +768,7 @@ impl Diagnostic {
768
suggestions: impl IntoIterator<Item = Vec<(Span, String)>>,
769
770
771
- let suggestions: Vec<_> = suggestions.collect();
+ let suggestions: Vec<_> = suggestions.into_iter().collect();
772
debug_assert!(
773
!(suggestions
774
.iter()
0 commit comments