diff options
author | Florian Diebold <[email protected]> | 2018-12-30 17:38:44 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2019-01-04 18:15:15 +0000 |
commit | bb029cd29b8496e69ca625fabc3612e4c1fe9142 (patch) | |
tree | 013656405418484f1a397ebe1852e392dca8b003 /crates/ra_syntax/src/grammar/items/traits.rs | |
parent | 0ad13b9477fc6b15cbfbd521a79ea97bc0e79953 (diff) |
Rename traits::impl_item -> impl_block as well, as well as the tests
Diffstat (limited to 'crates/ra_syntax/src/grammar/items/traits.rs')
-rw-r--r-- | crates/ra_syntax/src/grammar/items/traits.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_syntax/src/grammar/items/traits.rs b/crates/ra_syntax/src/grammar/items/traits.rs index d4da8b2f7..0a0621753 100644 --- a/crates/ra_syntax/src/grammar/items/traits.rs +++ b/crates/ra_syntax/src/grammar/items/traits.rs | |||
@@ -40,9 +40,9 @@ pub(crate) fn trait_item_list(p: &mut Parser) { | |||
40 | m.complete(p, ITEM_LIST); | 40 | m.complete(p, ITEM_LIST); |
41 | } | 41 | } |
42 | 42 | ||
43 | // test impl_item | 43 | // test impl_block |
44 | // impl Foo {} | 44 | // impl Foo {} |
45 | pub(super) fn impl_item(p: &mut Parser) { | 45 | pub(super) fn impl_block(p: &mut Parser) { |
46 | assert!(p.at(IMPL_KW)); | 46 | assert!(p.at(IMPL_KW)); |
47 | p.bump(); | 47 | p.bump(); |
48 | if choose_type_params_over_qpath(p) { | 48 | if choose_type_params_over_qpath(p) { |
@@ -52,7 +52,7 @@ pub(super) fn impl_item(p: &mut Parser) { | |||
52 | // TODO: never type | 52 | // TODO: never type |
53 | // impl ! {} | 53 | // impl ! {} |
54 | 54 | ||
55 | // test impl_item_neg | 55 | // test impl_block_neg |
56 | // impl !Send for X {} | 56 | // impl !Send for X {} |
57 | p.eat(EXCL); | 57 | p.eat(EXCL); |
58 | impl_type(p); | 58 | impl_type(p); |