Skip to content

Commit 3b860ca

Browse files
committed
Make the cache constant anonymous.
1 parent a687505 commit 3b860ca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lrpar/src/lib/ctbuilder.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,8 +644,10 @@ where
644644
self.output_file(&grm, &stable, &derived_mod_name, outp, &quote!{
645645
// This declaration can be affected by the pretty printer.
646646
// But we would hope the actual cache string is not.
647-
#[allow(unused)]
648-
const CACHE_INFO: &str = #cache;
647+
//
648+
// This is emitted for the purposes of performing the cache check.
649+
// on the output source, but is not used by generated parser.
650+
const _: &str = #cache;
649651
})?;
650652
let conflicts = if stable.conflicts().is_some() {
651653
Some((grm, sgraph, stable))

0 commit comments

Comments
 (0)