From 27ccc95c60d5652d5e7ef0dd7bd50cf221385d00 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 18 Aug 2020 19:31:06 +0200 Subject: Cleanup feature generation --- xtask/src/codegen/gen_parser_tests.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xtask/src/codegen/gen_parser_tests.rs') diff --git a/xtask/src/codegen/gen_parser_tests.rs b/xtask/src/codegen/gen_parser_tests.rs index 2977da2fa..96fdd9216 100644 --- a/xtask/src/codegen/gen_parser_tests.rs +++ b/xtask/src/codegen/gen_parser_tests.rs @@ -8,12 +8,12 @@ use std::{ }; use crate::{ - codegen::{self, extract_comment_blocks, update, Mode}, + codegen::{extract_comment_blocks, update, Mode}, project_root, Result, }; pub fn generate_parser_tests(mode: Mode) -> Result<()> { - let tests = tests_from_dir(&project_root().join(Path::new(codegen::GRAMMAR_DIR)))?; + let tests = tests_from_dir(&project_root().join(Path::new("crates/parser/src/grammar")))?; fn install_tests(tests: &HashMap, into: &str, mode: Mode) -> Result<()> { let tests_dir = project_root().join(into); if !tests_dir.is_dir() { @@ -39,8 +39,8 @@ pub fn generate_parser_tests(mode: Mode) -> Result<()> { } Ok(()) } - install_tests(&tests.ok, codegen::OK_INLINE_TESTS_DIR, mode)?; - install_tests(&tests.err, codegen::ERR_INLINE_TESTS_DIR, mode) + install_tests(&tests.ok, "crates/syntax/test_data/parser/inline/ok", mode)?; + install_tests(&tests.err, "crates/syntax/test_data/parser/inline/err", mode) } #[derive(Debug)] -- cgit v1.2.3