rust/compiler/rustc_expand/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
..
mbe Remove redundant [..]s 2021-12-09 00:01:29 +01:00
mut_visit rustc_ast: Turn MutVisitor::token_visiting_enabled into a constant 2021-10-18 00:23:24 +03:00
parse re-format with new rustfmt 2021-11-30 13:08:41 -05:00
tokenstream Rework SESSION_GLOBALS API to prevent overwriting it 2021-07-08 16:16:28 +02:00
base.rs expand: Turn ast::Crate into a first class expansion target 2021-11-28 15:48:55 +08:00
build.rs Detect bare blocks with type ascription that were meant to be a struct literal 2021-09-03 14:43:04 +00:00
config.rs expand: Remove some unnecessary self mutability 2022-01-07 13:50:03 +08:00
expand.rs expand: Import more AST enums 2022-01-07 14:54:16 +08:00
lib.rs expand: Refactor InvocationCollector visitor for better code reuse 2022-01-07 14:41:22 +08:00
mbe.rs fix few typos 2021-04-19 15:57:08 +03:00
module.rs Remove unnecessary sigils around Ident::as_str() calls. 2021-12-15 17:32:42 +11:00
placeholders.rs expand: Rename some AstFragments to match AST structures 2022-01-07 13:50:03 +08:00
proc_macro.rs proc_macro: Add an expand_expr method to TokenStream 2021-11-12 15:41:40 -05:00
proc_macro_server.rs eplace usages of vec![].into_iter with [].into_iter 2022-01-09 14:09:25 +11:00
tests.rs Rework SESSION_GLOBALS API to prevent overwriting it 2021-07-08 16:16:28 +02:00