about summary refs log tree commit diff
path: root/src/librustdoc/html/render
diff options
context:
space:
mode:
authorNoah Lev <camelidcamel@gmail.com>2021-08-28 20:46:53 -0700
committerNoah Lev <camelidcamel@gmail.com>2021-10-02 15:57:57 -0700
commit962e45144390d3f8b7482d5dfbc3d739881f514e (patch)
tree0c335cc133ee22a6a22f99dd0a9cbc5504365f5c /src/librustdoc/html/render
parent82b52e1951622062ce26a185dca58a8b472b4ec8 (diff)
downloadrust-962e45144390d3f8b7482d5dfbc3d739881f514e.tar.gz
rust-962e45144390d3f8b7482d5dfbc3d739881f514e.zip
Replace all uses of `path.res.def_id()` with `path.def_id()`
Diffstat (limited to 'src/librustdoc/html/render')
-rw-r--r--src/librustdoc/html/render/cache.rs2
-rw-r--r--src/librustdoc/html/render/mod.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/render/cache.rs b/src/librustdoc/html/render/cache.rs
index 7336b8b41ac..9c05c80d55d 100644
--- a/src/librustdoc/html/render/cache.rs
+++ b/src/librustdoc/html/render/cache.rs
@@ -322,7 +322,7 @@ crate fn get_real_types<'tcx>(
         if let Some(bound) = generics.params.iter().find(|g| g.is_type() && g.name == arg_s) {
             for bound in bound.get_bounds().unwrap_or(&[]) {
                 if let Some(path) = bound.get_trait_path() {
-                    let ty = Type::ResolvedPath { did: path.res.def_id(), path };
+                    let ty = Type::ResolvedPath { did: path.def_id(), path };
                     let adds = get_real_types(generics, &ty, tcx, recurse + 1, res);
                     nb_added += adds;
                     if adds == 0 && !ty.is_full_generic() {
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs
index e936750c6d3..6b213da50a7 100644
--- a/src/librustdoc/html/render/mod.rs
+++ b/src/librustdoc/html/render/mod.rs
@@ -2389,7 +2389,7 @@ fn collect_paths_for_type(first_ty: clean::Type, cache: &Cache) -> Vec<String> {
             }
             clean::Type::QPath { self_type, trait_, .. } => {
                 work.push_back(*self_type);
-                process_path(trait_.res.def_id());
+                process_path(trait_.def_id());
             }
             _ => {}
         }