about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/counters.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-06-13 22:55:46 +0200
committerGitHub <noreply@github.com>2024-06-13 22:55:46 +0200
commit422da40294da073556a9349fc8df47317959c30f (patch)
tree917b336716997352b744d7887a1a93a5a35fcf17 /compiler/rustc_mir_transform/src/coverage/counters.rs
parent4dd8813afd8267f4fa9b8a337db84f50b9b891e4 (diff)
parent5de8e6edfcc747930891a0adc8e90608776dbe54 (diff)
downloadrust-422da40294da073556a9349fc8df47317959c30f.tar.gz
rust-422da40294da073556a9349fc8df47317959c30f.zip
Rollup merge of #126371 - estebank:suggest-core, r=fmease
Tweak output of import suggestions

When both `std::` and `core::` items are available, only suggest the `std::` ones. We ensure that in `no_std` crates we suggest `core::` items.

Ensure that the list of items suggested to be imported are always in the order of local crate items, `std`/`core` items and finally foreign crate items.

Tweak wording of import suggestion: if there are multiple items but they are all of the same kind, we use the kind name and not the generic "items".

Fix #83564.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/counters.rs')
0 files changed, 0 insertions, 0 deletions