Rename has_derived to has_abilities

This commit is contained in:
Ayaz Hafiz 2022-07-14 09:58:18 -04:00
parent a9243720da
commit 0946a7816a
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 3 additions and 3 deletions

View file

@ -966,7 +966,7 @@ fn opaque_signature_with_space_before<'a>(
optional(specialize( optional(specialize(
EExpr::Type, EExpr::Type,
space0_before_e( space0_before_e(
type_annotation::has_derived(min_indent), type_annotation::has_abilities(min_indent),
min_indent, min_indent,
EType::TIndentStart, EType::TIndentStart,
), ),

View file

@ -478,8 +478,8 @@ fn has_clause_chain<'a>(
} }
} }
/// Parse a has-derived clause, e.g. `has [Eq, Hash]`. /// Parse a has-abilities clause, e.g. `has [Eq, Hash]`.
pub fn has_derived<'a>(min_indent: u32) -> impl Parser<'a, Loc<Derived<'a>>, EType<'a>> { pub fn has_abilities<'a>(min_indent: u32) -> impl Parser<'a, Loc<Derived<'a>>, EType<'a>> {
skip_first!( skip_first!(
// Parse "has"; we don't care about this keyword // Parse "has"; we don't care about this keyword
word3(b'h', b'a', b's', EType::THasClause), word3(b'h', b'a', b's', EType::THasClause),