Include codegen crate name in generated file header
diff --git a/codegen/src/file.rs b/codegen/src/file.rs
index 32bf047..8029afe 100644
--- a/codegen/src/file.rs
+++ b/codegen/src/file.rs
@@ -6,10 +6,9 @@
pub fn write<P: AsRef<Path>>(path: P, content: TokenStream) -> Result<()> {
let mut formatted = Vec::new();
- write!(
- formatted,
- "// THIS FILE IS AUTOMATICALLY GENERATED; DO NOT EDIT\n\n"
- )?;
+ writeln!(formatted, "// This file is @generated by syn-internal-codegen.")?;
+ writeln!(formatted, "// It is not intended for manual editing.")?;
+ writeln!(formatted)?;
let mut config = rustfmt::Config::default();
config.set().emit_mode(rustfmt::EmitMode::Stdout);
diff --git a/src/gen/fold.rs b/src/gen/fold.rs
index ed6b3c0..e7b5964 100644
--- a/src/gen/fold.rs
+++ b/src/gen/fold.rs
@@ -1,4 +1,5 @@
-// THIS FILE IS AUTOMATICALLY GENERATED; DO NOT EDIT
+// This file is @generated by syn-internal-codegen.
+// It is not intended for manual editing.
#![allow(unreachable_code)]
#[cfg(any(feature = "full", feature = "derive"))]
diff --git a/src/gen/visit.rs b/src/gen/visit.rs
index e449a0b..3e43914 100644
--- a/src/gen/visit.rs
+++ b/src/gen/visit.rs
@@ -1,4 +1,5 @@
-// THIS FILE IS AUTOMATICALLY GENERATED; DO NOT EDIT
+// This file is @generated by syn-internal-codegen.
+// It is not intended for manual editing.
#![cfg_attr(feature = "cargo-clippy", allow(trivially_copy_pass_by_ref))]
#[cfg(any(feature = "full", feature = "derive"))]
diff --git a/src/gen/visit_mut.rs b/src/gen/visit_mut.rs
index 399609e..55bae33 100644
--- a/src/gen/visit_mut.rs
+++ b/src/gen/visit_mut.rs
@@ -1,4 +1,5 @@
-// THIS FILE IS AUTOMATICALLY GENERATED; DO NOT EDIT
+// This file is @generated by syn-internal-codegen.
+// It is not intended for manual editing.
#[cfg(any(feature = "full", feature = "derive"))]
use gen::helper::visit_mut::*;