about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2025-01-14 06:44:20 +0000
committerTrevor Gross <tmgross@umich.edu>2025-01-14 08:51:19 +0000
commited63539282b7c087bfd6ef5e41584d1cf61f13f6 (patch)
tree3f43fcfad7af88aa4b5e1e53b758b8c6dd8f1e22 /compiler/rustc_codegen_gcc/src
parent2da9accab989b8640c7b345371b08886e9332f7e (diff)
downloadrust-ed63539282b7c087bfd6ef5e41584d1cf61f13f6.tar.gz
rust-ed63539282b7c087bfd6ef5e41584d1cf61f13f6.zip
Mark dependencies of the standard library as private by default
In order to avoid diagnostics suggesting stdlib-private dependencies,
make everything that is a direct dependency of any `std` crates private
by default. Note that this will be overridden, if the same crate is
public elsewhere in the crate graph then that overrides the private
default.

It may also be feasible to do this in the library crate, marking `std`'s
dependencies private via Cargo. However, given that the feature is still
rather unstable, doing this within the compiler seems more
straightforward.

Fixes: https://github.com/rust-lang/rust/issues/135232 [1]
Diffstat (limited to 'compiler/rustc_codegen_gcc/src')
0 files changed, 0 insertions, 0 deletions