Skip to content

Commit

Permalink
add a comment about what we can parse now
Browse files Browse the repository at this point in the history
  • Loading branch information
TaKO8Ki committed Aug 4, 2022
1 parent dcd70c0 commit 8c85c99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/rustc_parse_format/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,8 @@ impl<'a> Parser<'a> {
let byte_pos = self.to_span_index(end);
let start = InnerOffset(byte_pos.0 + 1);
let field = self.argument(start);
// We can only parse `foo.bar` field access, any deeper nesting,
// or another type of expression, like method calls, are not supported
if !self.consume('}') {
return;
}
Expand Down

0 comments on commit 8c85c99

Please sign in to comment.