diff options
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast.rs | 6 |
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)`. |
