Skip to content

Commit

Permalink
Temporarily silence a Rust error
Browse files Browse the repository at this point in the history
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
  • Loading branch information
apyrgio committed Mar 17, 2021
1 parent 74084fc commit c11c9ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
unused_results,
variant_size_differences
)]
// FIXME: This must be removed once this is solved:
// https://github.com/stepancheg/rust-protobuf/issues/551
#![allow(soft_unstable)]

pub mod aead;
pub mod cryptors;
Expand Down

0 comments on commit c11c9ed

Please sign in to comment.