rust-analyzer/crates/syntax/src
bors 062822ce91 Auto merge of #17641 - nyurik:optimize-refs, r=Veykril
Avoid ref when using format! in compiler

Clean up a few minor refs in `format!` macro, as it has a performance cost. Apparently the compiler is unable to inline `format!("{}", &variable)`, and does a run-time double-reference instead (format macro already does one level referencing). Inlining format args prevents accidental `&` misuse.

See https://github.com/rust-lang/rust-clippy/issues/10851
2024-07-20 06:40:27 +00:00
..
ast Avoid ref when using format! in compiler 2024-07-19 14:41:59 -04:00
parsing Fix edition used for include macro parsing 2024-07-19 20:29:53 +02:00
validation Implement unsafe attribute parsing 2024-05-06 12:11:29 +02:00
algo.rs Avoid ref when using format! in compiler 2024-07-19 14:41:59 -04:00
ast.rs HasGenericArgs syntax trait 2024-07-07 11:18:28 +02:00
fuzz.rs internal: Thread edition through to parsing/tt-to-syntax-tree routines for macros 2024-04-14 16:02:38 +02:00
hacks.rs internal: Thread edition through to parsing/tt-to-syntax-tree routines for macros 2024-04-14 16:02:38 +02:00
lib.rs Encode edition within FileId in the hir layer 2024-07-18 08:49:10 +02:00
parsing.rs Fix edition used for include macro parsing 2024-07-19 20:29:53 +02:00
ptr.rs internal: Thread edition through to parsing/tt-to-syntax-tree routines for macros 2024-04-14 16:02:38 +02:00
syntax_error.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
syntax_node.rs ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
ted.rs ⬆️ rust-analyzer 2023-01-09 10:36:22 -08:00
tests.rs internal: Thread edition through to parsing/tt-to-syntax-tree routines for macros 2024-04-14 16:02:38 +02:00
token_text.rs Merge commit '457b966b171b09a7e57acb710fbca29a4b3526f0' into sync-from-ra 2023-12-11 11:16:01 +02:00
utils.rs Merge commit '21b06c1beb9bb59369ffd652f5d617bcf6952e05' into sync-from-ra 2023-12-18 09:21:55 +02:00
validation.rs chore: Prefer tracing span shorthand macros 2024-06-06 16:52:25 -07:00