mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-29 11:51:31 +03:00
3beeb75dde
Replace iterator-based set construction by *Set::From<[T; N]> This uses the array-based construction for `BtreeSet`s and `HashSet`s instead of first creating an iterator. I could also replace the `let mut a = Set::new(); a.insert(...);` fragments if desired.