mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
add a comment about what we can parse now
This commit is contained in:
parent
dcd70c0995
commit
8c85c9936f
@ -763,6 +763,8 @@ impl<'a> Parser<'a> {
|
|||||||
let byte_pos = self.to_span_index(end);
|
let byte_pos = self.to_span_index(end);
|
||||||
let start = InnerOffset(byte_pos.0 + 1);
|
let start = InnerOffset(byte_pos.0 + 1);
|
||||||
let field = self.argument(start);
|
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('}') {
|
if !self.consume('}') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user