diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-05-27 02:14:33 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-05-27 02:54:18 +1000 |
| commit | 0f285e346f0432b08d82e85fc51419994b76504b (patch) | |
| tree | 5b51bab83f98a51f3f62532619ad75e36016b749 /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 6973fa08a3a4044c87b9da9e66cb1ca17f89b889 (diff) | |
| download | rust-0f285e346f0432b08d82e85fc51419994b76504b.tar.gz rust-0f285e346f0432b08d82e85fc51419994b76504b.zip | |
Remove the one use of `P<[T]>`.
A `Vec` is fine, the additional word (vector vs. boxed slice) doesn't matter here.
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index 2a7910a6af4..6e134bad7bd 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -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; |
