Skip to content

Commit 1aa1c99

Browse files
zertoshfacebook-github-bot
authored andcommitted
Allow unused_imports of errors from lib
Summary: This lint started happening with Rust 1.75.0 because of rust-lang/rust#116033 Sometimes `errors` might be empty, sometimes not (I think?). So suppress the lints. Reviewed By: dtolnay Differential Revision: D52958558 fbshipit-source-id: 5240a22e1d17de9f41d34c70d77016a3e3324f66
1 parent 2a58d40 commit 1aa1c99

File tree

35 files changed

+35
-0
lines changed

35 files changed

+35
-0
lines changed

thrift/compiler/generate/templates/rust/lib.rs.mustache

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ include!("{{program:include_src}}");
3333
{{#program:constants?}}
3434
pub use self::consts::*;
3535
{{/program:constants?}}
36+
#[allow(unused_imports)]
3637
pub use self::errors::*;{{!
3738
}}{{#program:types?}}
3839
pub use self::types::*;{{!

thrift/compiler/test/fixtures/adapter/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/basic-annotations/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/basic-enum/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/basic/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/complex-union/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/constants/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/doctext/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/empty-struct/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/enums/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/exceptions/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/inheritance/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/inject_metadata_fields/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/interactions/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/namespace_from_package/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/namespace_from_package_without_module_name/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/optionals/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/params/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/patch/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/refs/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/req-opt/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/rust-annotations/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/rust-default-enum-zero/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/rust-extra-derives/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/rust-include_src/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/rust-newtype-typedef/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/rust-no_serde-derive/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/rust-noserver/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/rust-raw-identifiers/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/rust-request-context/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/rust-skip-none-serialization/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/serialization_field_order/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/stream/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/terse_write/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/compiler/test/fixtures/types/gen-rust/lib.rs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)