diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-10-05 02:29:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-05 02:29:42 +0200 |
| commit | 9dbc9ed870a3956d938c823338ac8943377845e8 (patch) | |
| tree | 85a064e221ee2a73235ef426815ff9176a0b0aae /compiler/rustc_codegen_llvm/src | |
| parent | 5fbb41108a14b74645296f64cc78ba05aea9ca18 (diff) | |
| parent | d74b8e0505b83c72761987c48f3aa3fbb2656573 (diff) | |
| download | rust-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
