about summary refs log tree commit diff
path: root/compiler/rustc_parse_format
diff options
context:
space:
mode:
authorTakayuki Maeda <takoyaki0316@gmail.com>2022-08-04 20:43:35 +0900
committerTakayuki Maeda <takoyaki0316@gmail.com>2022-08-04 20:43:35 +0900
commit8c85c9936f6bc28b6e8e31bed8f4b1bd95c7e836 (patch)
treed98c46604007ccabefc1972098268ca420c1104b /compiler/rustc_parse_format
parentdcd70c0995a6773ba3f78c072a899c62329f6a41 (diff)
downloadrust-8c85c9936f6bc28b6e8e31bed8f4b1bd95c7e836.tar.gz
rust-8c85c9936f6bc28b6e8e31bed8f4b1bd95c7e836.zip
add a comment about what we can parse now
Diffstat (limited to 'compiler/rustc_parse_format')
-rw-r--r--compiler/rustc_parse_format/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_parse_format/src/lib.rs b/compiler/rustc_parse_format/src/lib.rs
index c98c8cae378..4890fade50f 100644
--- a/compiler/rustc_parse_format/src/lib.rs
+++ b/compiler/rustc_parse_format/src/lib.rs
@@ -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;
             }