about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-06-04 23:42:03 +0200
committerGitHub <noreply@github.com>2022-06-04 23:42:03 +0200
commit8d0de3a8da50c2a0eca8e8ece13b77d712d8652d (patch)
tree72dd2a34c8ed80ae1c3d4577b2436ce227e37b08 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parentc857265b51a14625a36d4b57b3978e3e008e8983 (diff)
parent784eebcc604a10c697f6dce2f82155268333c57c (diff)
downloadrust-8d0de3a8da50c2a0eca8e8ece13b77d712d8652d.tar.gz
rust-8d0de3a8da50c2a0eca8e8ece13b77d712d8652d.zip
Rollup merge of #97735 - jsha:no-foreign-std, r=GuillaumeGomez
Don't generate "Impls on Foreign Types" for std

Hack: many traits and types in std are re-exported from core or alloc. In general, rustdoc is capable of recognizing these implementations as being on local types. However, in at least one case, rustdoc gets confused and labels an implementation as being on a foreign type. To make sure that confusion doesn't pass on to the reader, consider all implementations in std, core, and alloc to be on local types.

Demo: https://rustdoc.crud.net/jsha/no-foreign-std/std/clone/trait.Clone.html
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions