diff options
| author | Noah Lev <camelidcamel@gmail.com> | 2021-11-24 12:27:37 -0800 |
|---|---|---|
| committer | Noah Lev <camelidcamel@gmail.com> | 2021-11-25 12:08:05 -0800 |
| commit | d81deb33fa8e9f03006b637fd0c035dc7acc5343 (patch) | |
| tree | 30221794a3a99eaf49f63148f3be006652a1a657 /src/librustdoc/html/render/cache.rs | |
| parent | 8adb0b6d6c264facc6e213ad06a25194e7591682 (diff) | |
| download | rust-d81deb33fa8e9f03006b637fd0c035dc7acc5343.tar.gz rust-d81deb33fa8e9f03006b637fd0c035dc7acc5343.zip | |
Stop re-exporting `Type::ResolvedPath`
I would like to rename it to `Type::Path`, but then it can't be re-exported since the name would conflict with the `Path` struct. Usually enum variants are referred to using their qualified names in Rust (and parts of rustdoc already do that with `clean::Type`), so this is also more consistent with the language.
Diffstat (limited to 'src/librustdoc/html/render/cache.rs')
| -rw-r--r-- | src/librustdoc/html/render/cache.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/cache.rs b/src/librustdoc/html/render/cache.rs index c114edf1e70..ffa5ec8a3ee 100644 --- a/src/librustdoc/html/render/cache.rs +++ b/src/librustdoc/html/render/cache.rs @@ -218,7 +218,7 @@ fn get_index_type(clean_type: &clean::Type, generics: Vec<TypeWithKind>) -> Rend fn get_index_type_name(clean_type: &clean::Type, accept_generic: bool) -> Option<Symbol> { match *clean_type { - clean::ResolvedPath { ref path, .. } => { + clean::Type::ResolvedPath { ref path, .. } => { let path_segment = path.segments.last().unwrap(); Some(path_segment.name) } |
