about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-10-25 19:51:16 +0200
committerGitHub <noreply@github.com>2023-10-25 19:51:16 +0200
commitb0521fe88e05dfc2776ebb5b98931b2373910629 (patch)
treed178ef86f8cfbf33047002c86ec8d5540ccfffcf /compiler/rustc_codegen_llvm/src
parentbeba52207ee38c2b55d3a2f186ae5187ae1ad341 (diff)
parent268ec72839a2152c012bac9418f2c041e13d1aab (diff)
downloadrust-b0521fe88e05dfc2776ebb5b98931b2373910629.tar.gz
rust-b0521fe88e05dfc2776ebb5b98931b2373910629.zip
Rollup merge of #117173 - oli-obk:gen_fn_split2, r=compiler-errors
Make `Iterator` a lang item

r? `@compiler-errors`

pulled out of https://github.com/rust-lang/rust/pull/116447

We're doing this change on its own, because iterator was the one diagnostic item that was load bearing on us correctly emitting errors about `diagnostic_item` mis-uses. It was used in some diagnostics as an early abort, before the actual checks of the diagnostic, so effectively the compiler was *unconditionally* checking for the iterator diagnostic item, even if it didn't emit any diagnostics. Changing those uses to use the lang item, caused us not to invoke the `all_diagnostic_items` query anymore, which then caused us to miss some issues around diagnostic items until they were actually used.

The reason we keep the diagnostic item around is that clippy uses it a lot and having `Iterator` be a lang item and a diagnostic item at the same time doesn't cost us anything, but makes clippy's internal code simpler
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions