about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/std_example.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-11-09 21:53:34 -0800
committerGitHub <noreply@github.com>2022-11-09 21:53:34 -0800
commite5ecf629dd0e36e0aab9c664c7a3d11d592268c9 (patch)
tree2ff22bd0aadd6db62d7e4ea9255d24092957f02e /compiler/rustc_codegen_gcc/example/std_example.rs
parent5eef9b2c50ddd4e445c10043908f785b08456489 (diff)
parent9568138069cce7915eb35386f8d9e020adcd599b (diff)
downloadrust-e5ecf629dd0e36e0aab9c664c7a3d11d592268c9.tar.gz
rust-e5ecf629dd0e36e0aab9c664c7a3d11d592268c9.zip
Rollup merge of #102763 - compiler-errors:nits, r=cjgillot
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.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions