about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNoah Lev <camelidcamel@gmail.com>2021-12-03 13:18:52 -0800
committerNoah Lev <camelidcamel@gmail.com>2021-12-03 13:18:52 -0800
commitf2ecfc7e2e4ef3c54363f8f939249932bbb352d4 (patch)
tree0fc76fde09a9654fca9333d5192ae0879d6cd1b7 /src
parentff2439b7b9bafcfdff86b7847128014699df8442 (diff)
downloadrust-f2ecfc7e2e4ef3c54363f8f939249932bbb352d4.tar.gz
rust-f2ecfc7e2e4ef3c54363f8f939249932bbb352d4.zip
rustdoc: Rename bounds to bindings where appropriate
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/clean/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs
index 9c3484b4a31..3267e308710 100644
--- a/src/librustdoc/clean/mod.rs
+++ b/src/librustdoc/clean/mod.rs
@@ -119,7 +119,7 @@ impl Clean<GenericBound> for hir::GenericBound<'_> {
 
 impl Clean<Path> for (ty::TraitRef<'_>, &[TypeBinding]) {
     fn clean(&self, cx: &mut DocContext<'_>) -> Path {
-        let (trait_ref, bounds) = *self;
+        let (trait_ref, bindings) = *self;
         let kind = cx.tcx.def_kind(trait_ref.def_id).into();
         if !matches!(kind, ItemType::Trait | ItemType::TraitAlias) {
             span_bug!(
@@ -129,7 +129,7 @@ impl Clean<Path> for (ty::TraitRef<'_>, &[TypeBinding]) {
             );
         }
         inline::record_extern_fqn(cx, trait_ref.def_id, kind);
-        let path = external_path(cx, trait_ref.def_id, true, bounds.to_vec(), trait_ref.substs);
+        let path = external_path(cx, trait_ref.def_id, true, bindings.to_vec(), trait_ref.substs);
 
         debug!("ty::TraitRef\n  subst: {:?}\n", trait_ref.substs);
 
@@ -145,7 +145,7 @@ impl Clean<Path> for ty::TraitRef<'tcx> {
 
 impl Clean<GenericBound> for (ty::PolyTraitRef<'_>, &[TypeBinding]) {
     fn clean(&self, cx: &mut DocContext<'_>) -> GenericBound {
-        let (poly_trait_ref, bounds) = *self;
+        let (poly_trait_ref, bindings) = *self;
         let poly_trait_ref = poly_trait_ref.lift_to_tcx(cx.tcx).unwrap();
 
         // collect any late bound regions
@@ -164,7 +164,7 @@ impl Clean<GenericBound> for (ty::PolyTraitRef<'_>, &[TypeBinding]) {
 
         GenericBound::TraitBound(
             PolyTrait {
-                trait_: (poly_trait_ref.skip_binder(), bounds).clean(cx),
+                trait_: (poly_trait_ref.skip_binder(), bindings).clean(cx),
                 generic_params: late_bound_regions,
             },
             hir::TraitBoundModifier::None,