We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcd70c0 commit 8c85c99Copy full SHA for 8c85c99
compiler/rustc_parse_format/src/lib.rs
@@ -763,6 +763,8 @@ impl<'a> Parser<'a> {
763
let byte_pos = self.to_span_index(end);
764
let start = InnerOffset(byte_pos.0 + 1);
765
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
768
if !self.consume('}') {
769
return;
770
}
0 commit comments