mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
add a comment about what we can parse now
This commit is contained in:
@@ -763,6 +763,8 @@ fn suggest_positional_arg_instead_of_captured_arg(&mut self, arg: Argument<'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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user