diff --git a/src/google/protobuf/compiler/rust/message.cc b/src/google/protobuf/compiler/rust/message.cc index 23d0cecfae..db9fa85f42 100644 --- a/src/google/protobuf/compiler/rust/message.cc +++ b/src/google/protobuf/compiler/rust/message.cc @@ -261,6 +261,7 @@ void GenerateRs(Context msg) { } }}}, R"rs( + #[allow(non_snake_case)] pub mod $Msg$_ { $nested_msgs$