From ce73df065f89bb5aa17517de16c10f9e4d3abaeb Mon Sep 17 00:00:00 2001 From: Muhammad Mominul Huque Date: Mon, 15 Oct 2018 23:52:11 +0600 Subject: Use CARGO_MANIFEST_DIR for locating the grammar.ron file --- crates/tools/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/tools/src/main.rs') diff --git a/crates/tools/src/main.rs b/crates/tools/src/main.rs index 179c1163f..aa6d964e6 100644 --- a/crates/tools/src/main.rs +++ b/crates/tools/src/main.rs @@ -45,8 +45,8 @@ fn main() -> Result<()> { fn run_gen_command(name: &str, verify: bool) -> Result<()> { match name { "gen-kinds" => { - update(Path::new(SYNTAX_KINDS), &render_template(SYNTAX_KINDS_TEMPLATE, GRAMMAR)?, verify)?; - update(Path::new(AST), &render_template(AST_TEMPLATE, GRAMMAR)?, verify)?; + update(Path::new(SYNTAX_KINDS), &render_template(SYNTAX_KINDS_TEMPLATE)?, verify)?; + update(Path::new(AST), &render_template(AST_TEMPLATE)?, verify)?; }, "gen-tests" => { gen_tests(verify)? -- cgit v1.2.3