We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f1c7aeb + 54331fc commit a9cacc7Copy full SHA for a9cacc7
parser/build.rs
@@ -71,12 +71,13 @@ fn try_lalrpop(source: &str, target: &str) -> anyhow::Result<()> {
71
}
72
73
#[cfg(feature = "lalrpop")]
74
- lalrpop::process_root().expect("running lalrpop failed");
+ {
75
+ lalrpop::process_root().expect("running lalrpop failed");
76
+ Ok(())
77
+ }
78
79
#[cfg(not(feature = "lalrpop"))]
- eprintln!("try: cargo build --manifest-path=parser/Cargo.toml --features=lalrpop");
-
- Ok(())
80
+ panic!("try: cargo build --manifest-path=parser/Cargo.toml --features=lalrpop");
81
82
83
fn sha_equal(expected_sha3_str: &str, actual_sha3: &[u8; 32]) -> bool {
0 commit comments