Skip to content

Commit 04796af

Browse files
committed
Revert ac1bf46 which ends up disabling rerun-if-changed for src/*.rs
This ran into a known cargo footgun where if you emit rerun-if-changed you are responsible for emitting all the rerun-if-changed directives that otherwise would be implied by cargo.
1 parent b5017c1 commit 04796af

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

lrlex/src/lib/ctbuilder.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,6 @@ where
355355
.lexer_path
356356
.as_ref()
357357
.expect("lexer_path must be specified before processing.");
358-
if std::env::var("OUT_DIR").is_ok() {
359-
println!("cargo:rerun-if-changed={}", lexerp.display());
360-
}
361358
let outp = self
362359
.output_path
363360
.as_ref()

lrpar/src/lib/ctbuilder.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,9 +474,6 @@ where
474474
.grammar_path
475475
.as_ref()
476476
.expect("grammar_path must be specified before processing.");
477-
if std::env::var("OUT_DIR").is_ok() {
478-
println!("cargo:rerun-if-changed={}", grmp.display());
479-
}
480477
let outp = self
481478
.output_path
482479
.as_ref()

0 commit comments

Comments
 (0)