about summary refs log tree commit diff
path: root/src/libsyntax/ast.rs
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2018-06-14 11:25:14 +0100
committervarkor <github@varkor.com>2018-06-20 12:23:23 +0100
commit7de6ed06a528db8f34ca3e75ded9d77ab9ba8b9a (patch)
tree5144b7b2af8a4e1476fb04d2abe58fdfaf4fb63b /src/libsyntax/ast.rs
parent8bc3a35576dd4e2f02b9d34fe5ed241288b5bfbe (diff)
downloadrust-7de6ed06a528db8f34ca3e75ded9d77ab9ba8b9a.tar.gz
rust-7de6ed06a528db8f34ca3e75ded9d77ab9ba8b9a.zip
Rename TraitTyParamBound to ParamBound::Trait
Diffstat (limited to 'src/libsyntax/ast.rs')
-rw-r--r--src/libsyntax/ast.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index 389afa96ea0..6fe90025ff8 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -283,14 +283,14 @@ pub enum TraitBoundModifier {
 /// detects Copy, Send and Sync.
 #[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]
 pub enum ParamBound {
-    TraitTyParamBound(PolyTraitRef, TraitBoundModifier),
+    Trait(PolyTraitRef, TraitBoundModifier),
     Outlives(Lifetime)
 }
 
 impl ParamBound {
     pub fn span(&self) -> Span {
         match self {
-            &TraitTyParamBound(ref t, ..) => t.span,
+            &Trait(ref t, ..) => t.span,
             &Outlives(ref l) => l.ident.span,
         }
     }
@@ -930,7 +930,7 @@ impl Expr {
     fn to_bound(&self) -> Option<ParamBound> {
         match &self.node {
             ExprKind::Path(None, path) =>
-                Some(TraitTyParamBound(PolyTraitRef::new(Vec::new(), path.clone(), self.span),
+                Some(Trait(PolyTraitRef::new(Vec::new(), path.clone(), self.span),
                                        TraitBoundModifier::None)),
             _ => None,
         }