about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-02-05 18:27:06 +0000
committerbors <bors@rust-lang.org>2022-02-05 18:27:06 +0000
commit88fb06a1f331926bccb448acdb52966fd1ec8a92 (patch)
treeb22d7f3ae052860d29a30ee334f22121234062a0 /compiler/rustc_codegen_gcc
parent291bf94cfd6456602d67f0e3be109bcd8c125b1a (diff)
parentafc0030ed3cf2ddaac52b637eeb1e629f8f39800 (diff)
downloadrust-88fb06a1f331926bccb448acdb52966fd1ec8a92.tar.gz
rust-88fb06a1f331926bccb448acdb52966fd1ec8a92.zip
Auto merge of #93539 - petrochenkov:doclink, r=camelid,michaelwoerister
rustdoc: Collect traits in scope for foreign inherent impls

Inherent impls can be inlined for variety of reasons (impls of reexported types, impls available through `Deref`, impls inlined for unclear reasons like in https://github.com/rust-lang/rust/pull/88679#issuecomment-1023929480).
If an impl is inlined, then doc links in its comments are resolved and we may need the set of traits that are in scope at that impl's definition point.
So in this PR we simply collect traits in scope for *all* inherent impls from other crates if their `Self` type is public, which is very similar for the strategy for trait impls previously used in https://github.com/rust-lang/rust/pull/88679.

Fixes https://github.com/rust-lang/rust/issues/93476
Fixes https://github.com/rust-lang/rust/pull/88679#issuecomment-1026520300
Fixes https://github.com/rust-lang/rust/pull/88679#issuecomment-1023929480
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions