Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/syntax/src/parsing.rs')
| -rw-r--r-- | crates/syntax/src/parsing.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/syntax/src/parsing.rs b/crates/syntax/src/parsing.rs index 9e286edc5f..249c81a1f3 100644 --- a/crates/syntax/src/parsing.rs +++ b/crates/syntax/src/parsing.rs @@ -13,7 +13,7 @@ pub(crate) fn parse_text(text: &str, edition: parser::Edition) -> (GreenNode, Ve let _p = tracing::info_span!("parse_text").entered(); let lexed = parser::LexedStr::new(edition, text); let parser_input = lexed.to_input(edition); - let parser_output = parser::TopEntryPoint::SourceFile.parse(&parser_input, edition); + let parser_output = parser::TopEntryPoint::SourceFile.parse(&parser_input); let (node, errors, _eof) = build_tree(lexed, parser_output); (node, errors) } @@ -26,7 +26,7 @@ pub(crate) fn parse_text_at( let _p = tracing::info_span!("parse_text_at").entered(); let lexed = parser::LexedStr::new(edition, text); let parser_input = lexed.to_input(edition); - let parser_output = entry.parse(&parser_input, edition); + let parser_output = entry.parse(&parser_input); let (node, errors, _eof) = build_tree(lexed, parser_output); (node, errors) } |