about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/passes.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-05-30 00:37:27 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2025-06-20 13:17:39 +1000
commit4a1f445142e2446d8139f91cf85d4e93083b33ef (patch)
treeeaf3124d64058ff93c6a737cea4b02f7b18e384a /compiler/rustc_interface/src/passes.rs
parent42b02019dc9beaffc424719c6afa9c64f1f4e10e (diff)
downloadrust-4a1f445142e2446d8139f91cf85d4e93083b33ef.tar.gz
rust-4a1f445142e2446d8139f91cf85d4e93083b33ef.zip
Use a symbol for `ExpansionConfig::crate_name`.
This avoids some symbol interning and `to_string` conversions.
Diffstat (limited to 'compiler/rustc_interface/src/passes.rs')
-rw-r--r--compiler/rustc_interface/src/passes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs
index 02d1ebdb31a..b2d7383b987 100644
--- a/compiler/rustc_interface/src/passes.rs
+++ b/compiler/rustc_interface/src/passes.rs
@@ -192,7 +192,7 @@ fn configure_and_expand(
         // Create the config for macro expansion
         let recursion_limit = get_recursion_limit(pre_configured_attrs, sess);
         let cfg = rustc_expand::expand::ExpansionConfig {
-            crate_name: crate_name.to_string(),
+            crate_name,
             features,
             recursion_limit,
             trace_mac: sess.opts.unstable_opts.trace_macros,