Skip to content

Commit 73b0c97

Browse files
Automated Code Change
PiperOrigin-RevId: 952503988
1 parent b67d62e commit 73b0c97

6 files changed

Lines changed: 3 additions & 7 deletions

File tree

src/google/protobuf/compiler/rust/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ cc_test(
128128
srcs = ["relative_path_test.cc"],
129129
deps = [
130130
":relative_path",
131+
"@abseil-cpp//absl/strings:string_view",
131132
"@googletest//:gtest",
132133
"@googletest//:gtest_main",
133134
],

src/google/protobuf/compiler/rust/generator.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include "absl/strings/str_cat.h"
2424
#include "absl/strings/str_replace.h"
2525
#include "absl/strings/string_view.h"
26-
#include "absl/strings/strip.h"
2726
#include "absl/types/span.h"
2827
#include "google/protobuf/compiler/code_generator.h"
2928
#include "google/protobuf/compiler/cpp/names.h"

src/google/protobuf/compiler/rust/generator.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <cstdint>
1212
#include <string>
1313

14+
#include "google/protobuf/descriptor.pb.h"
1415
#include "google/protobuf/compiler/code_generator.h"
1516

1617
// Must be included last.

src/google/protobuf/compiler/rust/message.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
#include "absl/log/absl_check.h"
1616
#include "absl/log/absl_log.h"
17-
#include "absl/strings/ascii.h"
18-
#include "absl/strings/str_replace.h"
1917
#include "absl/strings/string_view.h"
2018
#include "google/protobuf/compiler/cpp/helpers.h"
2119
#include "google/protobuf/compiler/cpp/names.h"

src/google/protobuf/compiler/rust/naming_test.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
#include "google/protobuf/compiler/rust/naming.h"
22

33
#include <string>
4-
#include <vector>
54

65
#include <gtest/gtest.h>
7-
#include "absl/container/flat_hash_map.h"
86
#include "google/protobuf/descriptor.h"
9-
#include "google/protobuf/io/zero_copy_stream_impl_lite.h"
107

118
using google::protobuf::compiler::rust::CamelToSnakeCase;
129
using google::protobuf::compiler::rust::RustInternalModuleName;

src/google/protobuf/compiler/rust/relative_path_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
#include "google/protobuf/compiler/rust/relative_path.h"
99

10-
#include <gmock/gmock.h>
1110
#include <gtest/gtest.h>
11+
#include "absl/strings/string_view.h"
1212

1313
namespace google {
1414
namespace protobuf {

0 commit comments

Comments
 (0)