rust/src/librustdoc/formats
Dylan DPC 37ce3321eb
Rollup merge of #84811 - scottmcm:rustdoc-trait-alias-fix, r=jyn514
RustDoc: Fix bounds linking trait.Foo instead of traitalias.Foo

Fixes #84782

The code was assuming `Trait` when adding bounds to the cache, so add a check on the DefId to see what its kind really is.

r? `@jyn514`

Before:
![image](https://user-images.githubusercontent.com/18526288/116775611-6a751e80-aa53-11eb-84d0-ed6b7782be3c.png)

After:
![image](https://user-images.githubusercontent.com/18526288/116802227-d19cdc80-ab00-11eb-8133-7b34dd750da2.png)
2021-05-03 00:32:43 +02:00
..
cache.rs Rollup merge of #84811 - scottmcm:rustdoc-trait-alias-fix, r=jyn514 2021-05-03 00:32:43 +02:00
item_type.rs Fix macro bug in impl From<DefKind> for ItemType 2021-04-23 15:56:50 -04:00
mod.rs Remove cache usage wherever possible 2021-01-27 10:05:05 +01:00
renderer.rs Remove unnecessary item_name parameter to mod_item_in 2021-04-22 19:53:38 -04:00