about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-08-31 14:29:51 +0200
committerGitHub <noreply@github.com>2022-08-31 14:29:51 +0200
commit775e96970fa5c4af239becc16c78c8a37e8b25e9 (patch)
tree14f464d8d8fdfc50c6da0033722a469f406c12f7 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent12e4fd0755d7d976d4ee0f2004dc938290752ff7 (diff)
parent477b7ba1657986a31b60ccf149011c037ef649d1 (diff)
downloadrust-775e96970fa5c4af239becc16c78c8a37e8b25e9.tar.gz
rust-775e96970fa5c4af239becc16c78c8a37e8b25e9.zip
Rollup merge of #90946 - GuillaumeGomez:def-id-remove-weird-case, r=Manishearth
Ignore `reference`s in "Type::inner_def_id"

Fixes #90775.

Reopening of #90726.

As discussed on [zulip](https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/rendering.20for.20reference.20primitive.20doc.20page), the reference page shouldn't list these implementations (since they are listed on the types and on the traits in any case). And more generally, you don't implement something on a reference but on something behind a reference. I think it's the important point.

So currently it looks like this:

![Screenshot from 2021-11-16 10-20-41](https://user-images.githubusercontent.com/3050060/141957799-57aeadc5-41f8-45f6-a4a5-33b1eca6a500.png)

With this PR, only the implementations over generics behind a reference are kept.

You can test it [here](https://rustdoc.crud.net/imperio/def-id-remove-weird-case/std/primitive.reference.html).

cc ``@camelid``
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions