Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/parser/src/grammar/items/traits.rs')
-rw-r--r--crates/parser/src/grammar/items/traits.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/parser/src/grammar/items/traits.rs b/crates/parser/src/grammar/items/traits.rs
index d6bb3b9b62..c982e2d564 100644
--- a/crates/parser/src/grammar/items/traits.rs
+++ b/crates/parser/src/grammar/items/traits.rs
@@ -2,7 +2,7 @@ use super::*;
// test trait_item
// trait T { fn new() -> Self; }
-pub(super) fn trait_(p: &mut Parser, m: Marker) {
+pub(super) fn trait_(p: &mut Parser<'_>, m: Marker) {
p.bump(T![trait]);
name_r(p, ITEM_RECOVERY_SET);
@@ -44,7 +44,7 @@ pub(super) fn trait_(p: &mut Parser, m: Marker) {
// test impl_item
// impl S {}
-pub(super) fn impl_(p: &mut Parser, m: Marker) {
+pub(super) fn impl_(p: &mut Parser<'_>, m: Marker) {
p.bump(T![impl]);
if p.at(T![<]) && not_a_qualified_path(p) {
generic_params::opt_generic_param_list(p);
@@ -80,7 +80,7 @@ pub(super) fn impl_(p: &mut Parser, m: Marker) {
// fn foo() {}
// fn bar(&self) {}
// }
-pub(crate) fn assoc_item_list(p: &mut Parser) {
+pub(crate) fn assoc_item_list(p: &mut Parser<'_>) {
assert!(p.at(T!['{']));
let m = p.start();
@@ -102,7 +102,7 @@ pub(crate) fn assoc_item_list(p: &mut Parser) {
// test impl_type_params
// impl<const N: u32> Bar<N> {}
-fn not_a_qualified_path(p: &Parser) -> bool {
+fn not_a_qualified_path(p: &Parser<'_>) -> bool {
// There's an ambiguity between generic parameters and qualified paths in impls.
// If we see `<` it may start both, so we have to inspect some following tokens.
// The following combinations can only start generics,
@@ -131,7 +131,7 @@ fn not_a_qualified_path(p: &Parser) -> bool {
// impl Trait1 for T {}
// impl impl NotType {}
// impl Trait2 for impl NotType {}
-pub(crate) fn impl_type(p: &mut Parser) {
+pub(crate) fn impl_type(p: &mut Parser<'_>) {
if p.at(T![impl]) {
p.error("expected trait or type");
return;