about summary refs log tree commit diff
path: root/src/libsyntax_ext
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2018-06-14 12:08:58 +0100
committervarkor <github@varkor.com>2018-06-20 12:23:46 +0100
commitc5f16e0e180f4f76187e55aecb5913a1cf7fab2a (patch)
tree457abe3be0f8a865223cfd1fca80ec5997119824 /src/libsyntax_ext
parent991efa4284c6ee01c36ab24a14b1c7779b92e17e (diff)
downloadrust-c5f16e0e180f4f76187e55aecb5913a1cf7fab2a.tar.gz
rust-c5f16e0e180f4f76187e55aecb5913a1cf7fab2a.zip
Rename ParamBound(s) to GenericBound(s)
Diffstat (limited to 'src/libsyntax_ext')
-rw-r--r--src/libsyntax_ext/deriving/generic/mod.rs2
-rw-r--r--src/libsyntax_ext/deriving/generic/ty.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax_ext/deriving/generic/mod.rs b/src/libsyntax_ext/deriving/generic/mod.rs
index 89b50044129..0922e7cd800 100644
--- a/src/libsyntax_ext/deriving/generic/mod.rs
+++ b/src/libsyntax_ext/deriving/generic/mod.rs
@@ -553,7 +553,7 @@ impl<'a> TraitDef<'a> {
             GenericParamKind::Lifetime { .. } => param.clone(),
             GenericParamKind::Type { .. } => {
                 // I don't think this can be moved out of the loop, since
-                // a ParamBound requires an ast id
+                // a GenericBound requires an ast id
                 let mut bounds: Vec<_> =
                     // extra restrictions on the generics parameters to the
                     // type being derived upon
diff --git a/src/libsyntax_ext/deriving/generic/ty.rs b/src/libsyntax_ext/deriving/generic/ty.rs
index 99b6398160e..edb901e1f3c 100644
--- a/src/libsyntax_ext/deriving/generic/ty.rs
+++ b/src/libsyntax_ext/deriving/generic/ty.rs
@@ -261,7 +261,7 @@ impl<'a> LifetimeBounds<'a> {
             .iter()
             .map(|&(lt, ref bounds)| {
                 let bounds = bounds.iter()
-                    .map(|b| ast::ParamBound::Outlives(cx.lifetime(span, Ident::from_str(b))));
+                    .map(|b| ast::GenericBound::Outlives(cx.lifetime(span, Ident::from_str(b))));
                 cx.lifetime_def(span, Ident::from_str(lt), vec![], bounds.collect())
             })
             .chain(self.bounds