1
Fork 0

use create_snapshot_for_diagnostic instead of clone

This commit is contained in:
Takayuki Maeda 2022-06-12 17:27:36 +09:00
parent 7092d42c04
commit 84a13a28b7
2 changed files with 3 additions and 3 deletions

View file

@ -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) => {