Skip to content

Commit c11c9ed

Browse files
committed
Temporarily silence a Rust error
The generated Rust code from our proto files triggers a warning in Rust nightly, which we treat as an error: error: custom inner attributes are unstable Error: --> src/../proto/metadata.rs:9:4 | 9 | #![rustfmt::skip] | ^^^^^^^^^^^^^ | = note: `#[deny(soft_unstable)]` on by default = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #64266 <rust-lang/rust#64266> This is already reported in the `rust-protobuf` repo [1] so until it's fixed, we choose to silence this warning to make our builds work. [1]: stepancheg/rust-protobuf#551
1 parent 74084fc commit c11c9ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
unused_results,
4040
variant_size_differences
4141
)]
42+
// FIXME: This must be removed once this is solved:
43+
// https://github.com/stepancheg/rust-protobuf/issues/551
44+
#![allow(soft_unstable)]
4245

4346
pub mod aead;
4447
pub mod cryptors;

0 commit comments

Comments
 (0)