Skip to content

opaque_hidden_inferred_bound warning when compiling with rust 1.66 #15627

Closed
@tjni

Description

@tjni

A note for the community

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Problem

When compiling using Rust 1.66, I see the following error:

error: opaque type `impl warp::Filter + Clone + warp::filter::FilterBase<Extract = impl Reply, Error = Infallible>` does not satisfy its associated type bounds
  --> src/sources/aws_kinesis_firehose/filters.rs:31:18
   |
31 | ) -> impl Filter<Extract = impl warp::Reply, Error = Infallible> + Clone {
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
  ::: /private/tmp/nix-build-vector-0.26.0.drv-0/vector-0.26.0-vendor.tar.gz/warp/src/filter/mod.rs:40:19
   |
40 |     type Extract: Tuple; // + Send;
   |                   ----- this associated type bound is unsatisfied for `impl Reply`
   |
note: the lint level is defined here
  --> src/lib.rs:7:9
   |
7  | #![deny(warnings)]
   |         ^^^^^^^^
   = note: `#[deny(opaque_hidden_inferred_bound)]` implied by `#[deny(warnings)]`
help: add this bound
   |
31 | ) -> impl Filter<Extract = impl warp::Reply + warp::generic::Tuple, Error = Infallible> + Clone {
   |                                             ++++++++++++++++++++++

This looks like a new lint that was introduced in rust-lang/rust#102568.

Configuration

No response

Version

0.26.0

Debug Output

No response

Example Data

No response

Additional Context

No response

References

No response

Metadata

Metadata

Assignees

Labels

type: bugA code related bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions