about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-12-10 22:41:28 +0100
committerGitHub <noreply@github.com>2021-12-10 22:41:28 +0100
commit3beeb75ddef7bc1e79fc58b0c232eb5aa1ddf60b (patch)
tree9988fb8d260a0b4b07dd2f847bf90892b7066276 /compiler/rustc_codegen_llvm/src/builder.rs
parent698ea96a8f301779389eb7787862b78f55690c2a (diff)
parentcebd9494bdee15e45303bf9ecf7c77b60a6c15b5 (diff)
downloadrust-3beeb75ddef7bc1e79fc58b0c232eb5aa1ddf60b.tar.gz
rust-3beeb75ddef7bc1e79fc58b0c232eb5aa1ddf60b.zip
Rollup merge of #91709 - juniorbassani:use-from-array-in-set-examples, r=jyn514
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions