diff options
| author | Noah Lev <camelidcamel@gmail.com> | 2021-08-24 10:15:19 -0700 |
|---|---|---|
| committer | Noah Lev <camelidcamel@gmail.com> | 2021-09-30 13:52:58 -0700 |
| commit | 91d3b7201e239c9966d43c0eaf1a4b636b0e06a8 (patch) | |
| tree | 32ec8b52de84f5e045e6098385d952bc7fee828d /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | 4c6385ff935d8121c5cc4c44b62a2b0ae0118a35 (diff) | |
| download | rust-91d3b7201e239c9966d43c0eaf1a4b636b0e06a8.tar.gz rust-91d3b7201e239c9966d43c0eaf1a4b636b0e06a8.zip | |
Use `Path` instead of `Type` in `PolyTrait`
The change to `impl Clean<Path> for hir::TraitRef<'_>` was necessary to fix a test failure for `src/test/rustdoc/trait-alias-mention.rs`. Here's why: The old code path was through `impl Clean<Type> for hir::TraitRef<'_>`, which called `resolve_type`, which in turn called `register_res`. Now, because `PolyTrait` uses a `Path` instead of a `Type`, the impl of `Clean<Path>` was being run, which did not call `register_res`, causing the trait alias to not be recorded in the `external_paths` cache.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
