Skip to content

Commit

Permalink
Rollup merge of rust-lang#102763 - compiler-errors:nits, r=cjgillot
Browse files Browse the repository at this point in the history
Some diagnostic-related nits

1. Use `&mut Diagnostic` instead of `&mut DiagnosticBuilder<'_, T>`
2. Make `diag.span_suggestions` take an `IntoIterator` instead of `Iterator`, just to remove some `.into_iter` calls on the caller.

idk if I should add a lint to make sure people use `&mut Diagnostic` instead of `&mut DiagnosticBuilder<'_, T>` in cases where we're just, e.g., adding subdiagnostics to the diagnostic... maybe a followup.
  • Loading branch information
compiler-errors committed Nov 10, 2022
2 parents 62bd979 + f0a2007 commit bd5c043
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit bd5c043

Please sign in to comment.