Skip to content

Commit 8c85c99

Browse files
committed
add a comment about what we can parse now
1 parent dcd70c0 commit 8c85c99

File tree

1 file changed

+2
-0
lines changed
  • compiler/rustc_parse_format/src

1 file changed

+2
-0
lines changed

compiler/rustc_parse_format/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,8 @@ impl<'a> Parser<'a> {
763763
let byte_pos = self.to_span_index(end);
764764
let start = InnerOffset(byte_pos.0 + 1);
765765
let field = self.argument(start);
766+
// We can only parse `foo.bar` field access, any deeper nesting,
767+
// or another type of expression, like method calls, are not supported
766768
if !self.consume('}') {
767769
return;
768770
}

0 commit comments

Comments
 (0)