about summary refs log tree commit diff
path: root/src/libsyntax_ext/plugin_macro_defs.rs
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-08-11 02:20:18 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-08-15 20:39:26 +0300
commit6cb28b6617e25b74389f1cee2ec0335c2ccfb865 (patch)
tree907989a12ba0e76bb06749599e45a61d8c7e4b3b /src/libsyntax_ext/plugin_macro_defs.rs
parent67d6ce42063732d7c7b12d94f872dcafb5efb607 (diff)
downloadrust-6cb28b6617e25b74389f1cee2ec0335c2ccfb865.tar.gz
rust-6cb28b6617e25b74389f1cee2ec0335c2ccfb865.zip
`Ident::with_empty_ctxt` -> `Ident::with_dummy_span`
`Ident` has had a full span rather than just a `SyntaxContext` for a long time now.
Diffstat (limited to 'src/libsyntax_ext/plugin_macro_defs.rs')
-rw-r--r--src/libsyntax_ext/plugin_macro_defs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax_ext/plugin_macro_defs.rs b/src/libsyntax_ext/plugin_macro_defs.rs
index a725f5e46ad..15737314b22 100644
--- a/src/libsyntax_ext/plugin_macro_defs.rs
+++ b/src/libsyntax_ext/plugin_macro_defs.rs
@@ -48,7 +48,7 @@ pub fn inject(
             [sym::rustc_attrs][..].into(),
         ));
         for (name, ext) in named_exts {
-            resolver.register_builtin_macro(Ident::with_empty_ctxt(name), ext);
+            resolver.register_builtin_macro(Ident::with_dummy_span(name), ext);
             extra_items.push(plugin_macro_def(name, span));
         }
         // The `macro_rules` items must be inserted before any other items.