rust/compiler/rustc_errors/src
bors 2e2c86eba2 Auto merge of #92070 - rukai:replace_vec_into_iter_with_array_into_iter, r=Mark-Simulacrum
Replace usages of vec![].into_iter with [].into_iter

`[].into_iter` is idiomatic over `vec![].into_iter` because its simpler and faster (unless the vec is optimized away in which case it would be the same)

So we should change all the implementation, documentation and tests to use it.

I skipped:
* `src/tools` - Those are copied in from upstream
* `src/test/ui` - Hard to tell if `vec![].into_iter` was used intentionally or not here and not much benefit to changing it.
*  any case where `vec![].into_iter` was used because we specifically needed a `Vec::IntoIter<T>`
*  any case where it looked like we were intentionally using `vec![].into_iter` to test it.
2022-01-11 14:23:24 +00:00
..
json Rework SESSION_GLOBALS API to prevent overwriting it 2021-07-08 16:16:28 +02:00
annotate_snippet_emitter_writer.rs Don't abort compilation after giving a lint error 2021-11-08 01:22:28 +00:00
diagnostic_builder.rs Auto merge of #87915 - estebank:fancy-spans, r=oli-obk 2021-09-13 16:31:12 +00:00
diagnostic.rs Don't abort compilation after giving a lint error 2021-11-08 01:22:28 +00:00
emitter.rs Rollup merge of #91358 - kd-collective:fix_typo, r=cjgillot 2021-11-30 17:29:10 +09:00
json.rs eplace usages of vec![].into_iter with [].into_iter 2022-01-09 14:09:25 +11:00
lib.rs Stabilize iter::zip. 2021-12-14 18:50:31 -04:00
lock.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
registry.rs Remove (lots of) dead code 2021-03-27 22:16:33 -04:00
snippet.rs Compute most of Public/Exported access level in rustc_resolve 2022-01-09 21:33:14 +00:00
styled_buffer.rs review 2021-04-24 22:37:42 +03:00