about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-07-15 13:34:33 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2021-07-17 19:41:13 +0200
commitdddaa6d06801955dcbb7b1d1094932383ff36853 (patch)
treed42b0619e6bd3ea848fd8b0e85d4337eb41e5464
parent0f8573e57b62576e4acb8fa0d74346cc82645ee0 (diff)
downloadrust-dddaa6d06801955dcbb7b1d1094932383ff36853.tar.gz
rust-dddaa6d06801955dcbb7b1d1094932383ff36853.zip
Rename expn_info -> expn_data.
-rw-r--r--compiler/rustc_span/src/hygiene.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/compiler/rustc_span/src/hygiene.rs b/compiler/rustc_span/src/hygiene.rs
index b4adf2d46bb..c020375fab0 100644
--- a/compiler/rustc_span/src/hygiene.rs
+++ b/compiler/rustc_span/src/hygiene.rs
@@ -579,19 +579,19 @@ pub fn debug_hygiene_data(verbose: bool) -> String {
         } else {
             let mut s = String::from("");
             s.push_str("Expansions:");
-            let mut debug_expn_data = |(id, expn_info): (&ExpnId, &ExpnData)| {
+            let mut debug_expn_data = |(id, expn_data): (&ExpnId, &ExpnData)| {
                 s.push_str(&format!(
                     "\n{:?}: parent: {:?}, call_site_ctxt: {:?}, def_site_ctxt: {:?}, kind: {:?}",
                     id,
-                    expn_info.parent,
-                    expn_info.call_site.ctxt(),
-                    expn_info.def_site.ctxt(),
-                    expn_info.kind,
+                    expn_data.parent,
+                    expn_data.call_site.ctxt(),
+                    expn_data.def_site.ctxt(),
+                    expn_data.kind,
                 ))
             };
-            data.local_expn_data.iter_enumerated().for_each(|(id, expn_info)| {
-                let expn_info = expn_info.as_ref().expect("no expansion data for an expansion ID");
-                debug_expn_data((&id.to_expn_id(), expn_info))
+            data.local_expn_data.iter_enumerated().for_each(|(id, expn_data)| {
+                let expn_data = expn_data.as_ref().expect("no expansion data for an expansion ID");
+                debug_expn_data((&id.to_expn_id(), expn_data))
             });
             data.foreign_expn_data.iter().for_each(debug_expn_data);
             s.push_str("\n\nSyntaxContexts:");