Remove the one use of P<[T]>.

A `Vec` is fine, the additional word (vector vs. boxed slice) doesn't
matter here.
This commit is contained in:
Nicholas Nethercote
2025-05-27 02:14:33 +10:00
parent 6973fa08a3
commit 0f285e346f
2 changed files with 2 additions and 2 deletions

View File

@@ -1119,7 +1119,7 @@ impl<'a> Parser<'a> {
/// Parse the field access used in offset_of, matched by `$(e:expr)+`.
/// Currently returns a list of idents. However, it should be possible in
/// future to also do array indices, which might be arbitrary expressions.
fn parse_floating_field_access(&mut self) -> PResult<'a, P<[Ident]>> {
fn parse_floating_field_access(&mut self) -> PResult<'a, Vec<Ident>> {
let mut fields = Vec::new();
let mut trailing_dot = None;