rebase and review comments
This commit is contained in:
parent
287cd5974c
commit
5d63e10318
24 changed files with 56 additions and 57 deletions
|
@ -612,7 +612,7 @@ impl Diagnostic {
|
|||
pub fn multipart_suggestion_with_style(
|
||||
&mut self,
|
||||
msg: impl Into<SubdiagnosticMessage>,
|
||||
mut suggestion: Vec<(Span, String)>,
|
||||
suggestion: Vec<(Span, String)>,
|
||||
applicability: Applicability,
|
||||
style: SuggestionStyle,
|
||||
) -> &mut Self {
|
||||
|
@ -634,7 +634,6 @@ impl Diagnostic {
|
|||
None,
|
||||
"suggestion must not have overlapping parts",
|
||||
);
|
||||
suggestion.sort_by_key(|(span, _)| (span.lo(), span.hi()));
|
||||
|
||||
self.push_suggestion(CodeSuggestion {
|
||||
substitutions: vec![Substitution { parts }],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue