Rename traits::impl_item -> impl_block as well, as well as the tests
This commit is contained in:
parent
0ad13b9477
commit
bb029cd29b
6 changed files with 4 additions and 4 deletions
|
|
@ -151,7 +151,7 @@ pub(super) fn maybe_item(p: &mut Parser, flavor: ItemFlavor) -> MaybeItem {
|
|||
// test unsafe_default_impl
|
||||
// unsafe default impl Foo {}
|
||||
IMPL_KW => {
|
||||
traits::impl_item(p);
|
||||
traits::impl_block(p);
|
||||
IMPL_BLOCK
|
||||
}
|
||||
_ => {
|
||||
|
|
|
|||
|
|
@ -40,9 +40,9 @@ pub(crate) fn trait_item_list(p: &mut Parser) {
|
|||
m.complete(p, ITEM_LIST);
|
||||
}
|
||||
|
||||
// test impl_item
|
||||
// test impl_block
|
||||
// impl Foo {}
|
||||
pub(super) fn impl_item(p: &mut Parser) {
|
||||
pub(super) fn impl_block(p: &mut Parser) {
|
||||
assert!(p.at(IMPL_KW));
|
||||
p.bump();
|
||||
if choose_type_params_over_qpath(p) {
|
||||
|
|
@ -52,7 +52,7 @@ pub(super) fn impl_item(p: &mut Parser) {
|
|||
// TODO: never type
|
||||
// impl ! {}
|
||||
|
||||
// test impl_item_neg
|
||||
// test impl_block_neg
|
||||
// impl !Send for X {}
|
||||
p.eat(EXCL);
|
||||
impl_type(p);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue