about summary refs log tree commit diff
path: root/compiler/rustc_expand/src/errors.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_expand/src/errors.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_expand/src/errors.rs')
-rw-r--r--compiler/rustc_expand/src/errors.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_expand/src/errors.rs b/compiler/rustc_expand/src/errors.rs
index ec0af67c046..714ba3bf0f4 100644
--- a/compiler/rustc_expand/src/errors.rs
+++ b/compiler/rustc_expand/src/errors.rs
@@ -183,12 +183,12 @@ pub(crate) struct FeatureNotAllowed {
 #[derive(Diagnostic)]
 #[diag(expand_recursion_limit_reached)]
 #[help]
-pub(crate) struct RecursionLimitReached<'a> {
+pub(crate) struct RecursionLimitReached {
     #[primary_span]
     pub span: Span,
     pub descr: String,
     pub suggested_limit: Limit,
-    pub crate_name: &'a str,
+    pub crate_name: Symbol,
 }
 
 #[derive(Diagnostic)]