Fix Rust 1.66.1 opaque-hidden-inferred-bound error
commit6518a0c3c6b1324a4ea668a63301d51b5c8b6017
authorAndres Suarez <asuarez@meta.com>
Mon, 6 Feb 2023 04:43:40 +0000 (5 20:43 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 6 Feb 2023 04:43:40 +0000 (5 20:43 -0800)
tree3e2200d09f9d6da75a18c2e047a61067d2a97868
parentc750e795fe378ccf92356adb23fb06bfd440ae83
Fix Rust 1.66.1 opaque-hidden-inferred-bound error

Summary:
Fixes:

  error: opaque type `impl IntoIterator<Item = hhbc::Entry<hhbc::TypedValue<'arena>, hhbc::TypedValue<'arena>>, IntoIter = impl ExactSizeIterator + 'arena> + 'arena` does not
  satisfy its associated type bounds
     --> hphp/hack/src/hackc/emitter/constant_folder.rs:550:50
      |
  550 | ) -> impl IntoIterator<Item = DictEntry<'arena>, IntoIter = impl ExactSizeIterator + 'arena> + 'arena
      |                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |
      = note: `-D opaque-hidden-inferred-bound` implied by `-D warnings`

  error: aborting due to previous error

This fix is backwards compatible with the current rustc 1.65.0.

Reviewed By: bolinfest

Differential Revision: D43033753

fbshipit-source-id: f5008f69cc992a7a5a17881ba7073a6210a3f9a7
hphp/hack/src/hackc/emitter/constant_folder.rs