[fidlgen_banjo] Disable rustfmt for generated files
We have plans to make rustfmt blocking in presubmit soon, at which point
all checked-in Rust files must either be formatted correctly, or opt out
of rustfmt enforcement.
Bug: 82386
Change-Id: Ie24b3cc1d7e1c1630e6dbd1f92090b111604e251
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/912674
Reviewed-by: Mitchell Kember <mkember@google.com>
Fuchsia-Auto-Submit: Oliver Newman <olivernewman@google.com>
Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
diff --git a/src/devices/tools/fidlgen_banjo/src/backends/templates/rust/header.rs b/src/devices/tools/fidlgen_banjo/src/backends/templates/rust/header.rs
index e6a3fc4..21f2e3d0 100644
--- a/src/devices/tools/fidlgen_banjo/src/backends/templates/rust/header.rs
+++ b/src/devices/tools/fidlgen_banjo/src/backends/templates/rust/header.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the {primary_namespace} banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
{zircon_include}
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/alias.rs b/src/devices/tools/fidlgen_banjo/tests/rust/alias.rs
index fc4235b1..5fc9645 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/alias.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/alias.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.alias banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/alignment.rs b/src/devices/tools/fidlgen_banjo/tests/rust/alignment.rs
index 7f13c6e..32d8701 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/alignment.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/alignment.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.alignment banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/api.rs b/src/devices/tools/fidlgen_banjo/tests/rust/api.rs
index d8bb57d..a9ed859 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/api.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/api.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.api banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
use fuchsia_zircon_types as zircon_types;
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/attributes.rs b/src/devices/tools/fidlgen_banjo/tests/rust/attributes.rs
index bf23746..f2e93fc7 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/attributes.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/attributes.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.attributes banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/binary.rs b/src/devices/tools/fidlgen_banjo/tests/rust/binary.rs
index 33aaca5..ab9faf6 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/binary.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/binary.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.binary banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/bits.rs b/src/devices/tools/fidlgen_banjo/tests/rust/bits.rs
index d6b71f4..aedba2a 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/bits.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/bits.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.bits banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/buffer.rs b/src/devices/tools/fidlgen_banjo/tests/rust/buffer.rs
index 6e69474..c0d9259 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/buffer.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/buffer.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.buffer banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/callback.rs b/src/devices/tools/fidlgen_banjo/tests/rust/callback.rs
index 8f74de6..33efc1a 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/callback.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/callback.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.callback banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
use fuchsia_zircon_types as zircon_types;
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/callback2.rs b/src/devices/tools/fidlgen_banjo/tests/rust/callback2.rs
index e21b61e..1c8b6b1 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/callback2.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/callback2.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.callback2 banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/empty.rs b/src/devices/tools/fidlgen_banjo/tests/rust/empty.rs
index 355c3bf..b553425 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/empty.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/empty.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.empty banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/enums.rs b/src/devices/tools/fidlgen_banjo/tests/rust/enums.rs
index 31cd7896..73433ba5 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/enums.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/enums.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.enums banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/example0.rs b/src/devices/tools/fidlgen_banjo/tests/rust/example0.rs
index 56f69c1..edc1550 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/example0.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/example0.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.example0 banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/example1.rs b/src/devices/tools/fidlgen_banjo/tests/rust/example1.rs
index c8e62ea..4c1b849 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/example1.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/example1.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.example1 banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/example2.rs b/src/devices/tools/fidlgen_banjo/tests/rust/example2.rs
index 8c3b9d1..d0dca30 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/example2.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/example2.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.example2 banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/example3.rs b/src/devices/tools/fidlgen_banjo/tests/rust/example3.rs
index f861a4f..085209e 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/example3.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/example3.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.example3 banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/example4.rs b/src/devices/tools/fidlgen_banjo/tests/rust/example4.rs
index 777927d..ccb2918 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/example4.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/example4.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.example4 banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/example6.rs b/src/devices/tools/fidlgen_banjo/tests/rust/example6.rs
index 88278de..894b860 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/example6.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/example6.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.example6 banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/example7.rs b/src/devices/tools/fidlgen_banjo/tests/rust/example7.rs
index 61423c0..3d2392e 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/example7.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/example7.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.example7 banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/example8.rs b/src/devices/tools/fidlgen_banjo/tests/rust/example8.rs
index 0abd420..7a933a3 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/example8.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/example8.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.example8 banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/example9.rs b/src/devices/tools/fidlgen_banjo/tests/rust/example9.rs
index b191576..d1ba378 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/example9.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/example9.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.example9 banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
use fuchsia_zircon_types as zircon_types;
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/fidlhandle.rs b/src/devices/tools/fidlgen_banjo/tests/rust/fidlhandle.rs
index a74e506..05fe26e 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/fidlhandle.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/fidlhandle.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.fidlhandle banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
use fuchsia_zircon_types as zircon_types;
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/interface.rs b/src/devices/tools/fidlgen_banjo/tests/rust/interface.rs
index 64b9d56..044d4d4 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/interface.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/interface.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.interface banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
use fuchsia_zircon_types as zircon_types;
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/passcallback.rs b/src/devices/tools/fidlgen_banjo/tests/rust/passcallback.rs
index 7e90711..02928833 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/passcallback.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/passcallback.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.passcallback banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
use fuchsia_zircon_types as zircon_types;
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/point.rs b/src/devices/tools/fidlgen_banjo/tests/rust/point.rs
index dd19c5f..f6d9a6b 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/point.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/point.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.point banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/preservenames.rs b/src/devices/tools/fidlgen_banjo/tests/rust/preservenames.rs
index a5f73c8..7915566 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/preservenames.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/preservenames.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.preservenames banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/protocolarray.rs b/src/devices/tools/fidlgen_banjo/tests/rust/protocolarray.rs
index e110c85..3110166 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/protocolarray.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/protocolarray.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.protocolarray banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
use fuchsia_zircon_types as zircon_types;
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/protocolbase.rs b/src/devices/tools/fidlgen_banjo/tests/rust/protocolbase.rs
index 5abdace..7ca74e9 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/protocolbase.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/protocolbase.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.protocolbase banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
use fuchsia_zircon_types as zircon_types;
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/protocolhandle.rs b/src/devices/tools/fidlgen_banjo/tests/rust/protocolhandle.rs
index cfab2ac..5bd179e 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/protocolhandle.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/protocolhandle.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.protocolhandle banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
use fuchsia_zircon_types as zircon_types;
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/protocolothertypes.rs b/src/devices/tools/fidlgen_banjo/tests/rust/protocolothertypes.rs
index 6016482..51640d6 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/protocolothertypes.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/protocolothertypes.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.protocolothertypes banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/protocolprimitive.rs b/src/devices/tools/fidlgen_banjo/tests/rust/protocolprimitive.rs
index 87c5631..708cbd7 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/protocolprimitive.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/protocolprimitive.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.protocolprimitive banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/protocolvector.rs b/src/devices/tools/fidlgen_banjo/tests/rust/protocolvector.rs
index 55a6873..8570f70 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/protocolvector.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/protocolvector.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.protocolvector banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
use fuchsia_zircon_types as zircon_types;
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/references.rs b/src/devices/tools/fidlgen_banjo/tests/rust/references.rs
index ed55f17..7d00740 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/references.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/references.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.references banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/rustderive.rs b/src/devices/tools/fidlgen_banjo/tests/rust/rustderive.rs
index 75361ce..30c8c7a 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/rustderive.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/rustderive.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.rustderive banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/simple.rs b/src/devices/tools/fidlgen_banjo/tests/rust/simple.rs
index 68eb82a..0683f4a 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/simple.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/simple.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.simple banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
use fuchsia_zircon_types as zircon_types;
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/tables.rs b/src/devices/tools/fidlgen_banjo/tests/rust/tables.rs
index 606e8bf..7b083b4 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/tables.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/tables.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.tables banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
use fuchsia_zircon_types as zircon_types;
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/types.rs b/src/devices/tools/fidlgen_banjo/tests/rust/types.rs
index 9e9c7b9..cfe0762 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/types.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/types.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.types banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]
use fuchsia_zircon_types as zircon_types;
diff --git a/src/devices/tools/fidlgen_banjo/tests/rust/view.rs b/src/devices/tools/fidlgen_banjo/tests/rust/view.rs
index b9b355b..8beab26 100644
--- a/src/devices/tools/fidlgen_banjo/tests/rust/view.rs
+++ b/src/devices/tools/fidlgen_banjo/tests/rust/view.rs
@@ -5,6 +5,7 @@
// WARNING: THIS FILE IS MACHINE GENERATED. DO NOT EDIT.
// Generated from the banjo.examples.view banjo file
+#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports, non_camel_case_types)]