about summary refs log tree commit diff
path: root/src/librustdoc/clean/auto_trait.rs
diff options
context:
space:
mode:
authorKyle Matsuda <kyle.yoshio.matsuda@gmail.com>2023-02-07 01:29:48 -0700
committerKyle Matsuda <kyle.yoshio.matsuda@gmail.com>2023-02-16 17:05:56 -0700
commitc183110cc26abb506dba0a4def917735fb6eb6f0 (patch)
tree5f4a6764ed381c957728b9b11341f58eff93686b /src/librustdoc/clean/auto_trait.rs
parentd822b97a27e50f5a091d2918f6ff0ffd2d2827f5 (diff)
downloadrust-c183110cc26abb506dba0a4def917735fb6eb6f0.tar.gz
rust-c183110cc26abb506dba0a4def917735fb6eb6f0.zip
remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata
Diffstat (limited to 'src/librustdoc/clean/auto_trait.rs')
-rw-r--r--src/librustdoc/clean/auto_trait.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/clean/auto_trait.rs b/src/librustdoc/clean/auto_trait.rs
index bfd9d6d68fe..9479b3ee036 100644
--- a/src/librustdoc/clean/auto_trait.rs
+++ b/src/librustdoc/clean/auto_trait.rs
@@ -137,7 +137,7 @@ where
     pub(crate) fn get_auto_trait_impls(&mut self, item_def_id: DefId) -> Vec<Item> {
         let tcx = self.cx.tcx;
         let param_env = tcx.param_env(item_def_id);
-        let ty = tcx.bound_type_of(item_def_id).subst_identity();
+        let ty = tcx.type_of(item_def_id).subst_identity();
         let f = auto_trait::AutoTraitFinder::new(tcx);
 
         debug!("get_auto_trait_impls({:?})", ty);