rust/compiler/rustc_ast/src
bors b95fd857fe Auto merge of #114119 - nnethercote:opt-TokenKind-clone, r=petrochenkov
Optimize `TokenKind::clone`.

`TokenKind` would impl `Copy` if it weren't for
`TokenKind::Interpolated`. This commit makes `clone` reflect that.

r? `@ghost`
2023-07-28 12:30:27 +00:00
..
attr Make TokenTree::uninterpolate take &self and return a Cow. 2023-07-27 11:58:42 +10:00
expand Remember names of cfg-ed out items to mention them in diagnostics 2023-06-01 19:17:19 +02:00
util more clippy::style fixes: 2023-07-23 23:39:04 +02:00
ast.rs Rollup merge of #112508 - compiler-errors:trait-sig-lifetime-sugg-ice, r=cjgillot 2023-07-22 19:57:35 +02:00
ast_traits.rs Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
entry.rs Fixup missing renames from #[main] to #[rustc_main] 2022-06-22 18:24:09 +02:00
format.rs Fix typos in compiler 2023-04-10 22:02:52 +02:00
lib.rs make rustc compilable 2023-04-16 07:25:13 +00:00
mut_visit.rs Syntatically accept become expressions 2023-06-19 12:54:34 +00:00
node_id.rs Various minor Idx-related tweaks 2023-04-16 02:42:50 -07:00
ptr.rs make rustc compilable 2023-04-16 07:25:13 +00:00
token.rs Optimize TokenKind::clone. 2023-07-27 15:05:23 +10:00
tokenstream.rs Remove Iterator impl for TokenTreeCursor. 2023-07-27 11:59:03 +10:00
visit.rs Syntatically accept become expressions 2023-06-19 12:54:34 +00:00