use create_snapshot_for_diagnostic
instead of clone
This commit is contained in:
parent
7092d42c04
commit
84a13a28b7
2 changed files with 3 additions and 3 deletions
|
@ -123,7 +123,7 @@ impl<'a> ParserAnyMacro<'a> {
|
|||
is_trailing_mac,
|
||||
is_local,
|
||||
} = *self;
|
||||
let snapshot = &mut parser.clone();
|
||||
let snapshot = &mut parser.create_snapshot_for_diagnostic();
|
||||
let fragment = match parse_ast_fragment(parser, kind) {
|
||||
Ok(f) => f,
|
||||
Err(err) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue