about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2016-03-06 15:54:44 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2016-05-28 19:58:06 +0300
commitae999e9c8f063eb62c867eafdd86729acd798044 (patch)
tree4fc064afae4cd2069529bc2a828c9fd74db82468 /src/libsyntax
parentcf4682069468f231e6153b9fc910e0c720c71ecb (diff)
downloadrust-ae999e9c8f063eb62c867eafdd86729acd798044.tar.gz
rust-ae999e9c8f063eb62c867eafdd86729acd798044.zip
Address review comments
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ast.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index be8d296dab0..488d8ed2e5e 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -635,8 +635,10 @@ pub enum PatKind {
     /// Such pattern can be resolved to a unit struct/variant or a constant.
     Path(Path),
 
-    /// A path pattern written in qualified form, i.e. `<T as Trait>::CONST` or `<T>::CONST`.
-    /// Such patterns can only refer to associated constants at the moment.
+    /// An associated const named using the qualified path `<T>::CONST` or
+    /// `<T as Trait>::CONST`. Associated consts from inherent impls can be
+    /// referred to as simply `T::CONST`, in which case they will end up as
+    /// PatKind::Path, and the resolver will have to sort that out.
     QPath(QSelf, Path),
 
     /// A tuple pattern `(a, b)`.