summary refs log tree commit diff
path: root/compiler/rustc_ty_utils/src/layout.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-01-14 14:15:39 +0000
committerbors <bors@rust-lang.org>2025-01-14 14:15:39 +0000
commit8c39ce5b4fb5b61796e5fd8cec56c7b9abd2122b (patch)
treeb593bef3f9b6005a83bff4af678b6aa463254182 /compiler/rustc_ty_utils/src/layout.rs
parentc074d8eee765cfd64e6e143d2894c85c7f3ddc1d (diff)
parented63539282b7c087bfd6ef5e41584d1cf61f13f6 (diff)
downloadrust-8c39ce5b4fb5b61796e5fd8cec56c7b9abd2122b.tar.gz
rust-8c39ce5b4fb5b61796e5fd8cec56c7b9abd2122b.zip
Auto merge of #135278 - tgross35:ignore-std-dep-crates, r=SparrowLii
Exclude dependencies of `std` for diagnostics

Currently crates in the sysroot can show up in diagnostic suggestions, such as in https://github.com/rust-lang/rust/issues/135232. To prevent this, duplicate `all_traits` into `visible_traits` which only shows traits in non-private crates.

Setting `#![feature(rustc_private)]` overrides this and makes items in private crates visible as well, since `rustc_private` enables use of `std`'s private dependencies.

This may be reviewed per-commit.

Fixes: https://github.com/rust-lang/rust/issues/135232
Diffstat (limited to 'compiler/rustc_ty_utils/src/layout.rs')
0 files changed, 0 insertions, 0 deletions