about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorNoah Lev <camelidcamel@gmail.com>2021-08-24 10:15:19 -0700
committerNoah Lev <camelidcamel@gmail.com>2021-09-30 13:52:58 -0700
commit91d3b7201e239c9966d43c0eaf1a4b636b0e06a8 (patch)
tree32ec8b52de84f5e045e6098385d952bc7fee828d /src/test/codegen/src-hash-algorithm
parent4c6385ff935d8121c5cc4c44b62a2b0ae0118a35 (diff)
downloadrust-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')
0 files changed, 0 insertions, 0 deletions