about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-10-05 02:29:42 +0200
committerGitHub <noreply@github.com>2020-10-05 02:29:42 +0200
commit9dbc9ed870a3956d938c823338ac8943377845e8 (patch)
tree85a064e221ee2a73235ef426815ff9176a0b0aae /compiler/rustc_codegen_llvm/src
parent5fbb41108a14b74645296f64cc78ba05aea9ca18 (diff)
parentd74b8e0505b83c72761987c48f3aa3fbb2656573 (diff)
downloadrust-9dbc9ed870a3956d938c823338ac8943377845e8.tar.gz
rust-9dbc9ed870a3956d938c823338ac8943377845e8.zip
Rollup merge of #77514 - scottmcm:less-once-chain-once, r=estebank
Replace some once(x).chain(once(y)) with [x, y] IntoIter

Now that we have by-value array iterators that are [already used](https://github.com/rust-lang/rust/blob/25c8c53dd994acb3f4f7c02fe6bb46076393f8b0/compiler/rustc_hir/src/def.rs#L305-L307)...

For example,
```diff
-        once(self.type_ns).chain(once(self.value_ns)).chain(once(self.macro_ns)).filter_map(|it| it)
+        IntoIter::new([self.type_ns, self.value_ns, self.macro_ns]).filter_map(|it| it)
```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions