Skip to content

Conversation

@zerosnacks
Copy link
Member

error: a method with this name may be added to the standard library in the future
   --> crates/fmt/src/state/common.rs:179:28
    |
179 |         if Cursor::new(&s).exactly_one().is_err() {
    |                            ^^^^^^^^^^^
    |
    = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior!
    = note: for more information, see issue #48919 <https://github.com/rust-lang/rust/issues/48919>
    = help: call with fully qualified syntax `itertools::Itertools::exactly_one(...)` to keep using the current method
    = note: `-D unstable-name-collisions` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(unstable_name_collisions)]`
help: add `#![feature(exact_length_collection)]` to the crate attributes to enable `std::iter::Iterator::exactly_one`
   --> crates/fmt/src/lib.rs:5:1
    |
  5 + #![feature(exact_length_collection)]
    |

error: a method with this name may be added to the standard library in the future
   --> crates/fmt/src/state/common.rs:186:43
    |
186 |             debug_assert!(Cursor::new(&s).exactly_one().map(|_| true).unwrap());
    |                                           ^^^^^^^^^^^
    |
    = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior!
    = note: for more information, see issue #48919 <https://github.com/rust-lang/rust/issues/48919>
    = help: call with fully qualified syntax `itertools::Itertools::exactly_one(...)` to keep using the current method
help: add `#![feature(exact_length_collection)]` to the crate attributes to enable `std::iter::Iterator::exactly_one`
   --> crates/fmt/src/lib.rs:5:1
    |
  5 + #![feature(exact_length_collection)]
    |

error: could not compile `forge-fmt` (lib) due to 2 previous errors

To be resolved by: paradigmxyz/solar#606 upstream

@zerosnacks zerosnacks changed the title chore(ci): ignore clippy warning .exactly_one() may be added to the standard library in the future on rustc 1.93.0-nightly chore(ci): ignore clippy error: .exactly_one() may be added to the standard library in the future on rustc 1.93.0-nightly Nov 28, 2025
@zerosnacks zerosnacks marked this pull request as ready for review November 28, 2025 10:52
@zerosnacks zerosnacks enabled auto-merge November 28, 2025 11:05
@zerosnacks zerosnacks changed the title chore(ci): ignore clippy error: .exactly_one() may be added to the standard library in the future on rustc 1.93.0-nightly fix(ci): ignore clippy error: .exactly_one() may be added to the standard library in the future on rustc 1.93.0-nightly Nov 28, 2025
@zerosnacks zerosnacks added this pull request to the merge queue Nov 28, 2025
Merged via the queue into master with commit 0629a18 Nov 28, 2025
15 checks passed
@zerosnacks zerosnacks deleted the zerosnacks/chore-ignore-clippy-warning branch November 28, 2025 12:45
@github-project-automation github-project-automation bot moved this to Done in Foundry Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants