about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-05-11 12:12:52 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2021-05-12 13:58:43 +0200
commitb7bf467fa3c92fdb520460abbe2568da5cd7afb2 (patch)
treeff2beca6e2fa31dc95895d5e71f81b81899ae9a5 /compiler/rustc_codegen_ssa/src
parente9e1900af7eea8ec67fdc763291a085323b6c7af (diff)
downloadrust-b7bf467fa3c92fdb520460abbe2568da5cd7afb2.tar.gz
rust-b7bf467fa3c92fdb520460abbe2568da5cd7afb2.zip
Use () for proc_macro_decls_static.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/back/symbol_export.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/symbol_export.rs b/compiler/rustc_codegen_ssa/src/back/symbol_export.rs
index 7cae637a49d..1a5afefbb2b 100644
--- a/compiler/rustc_codegen_ssa/src/back/symbol_export.rs
+++ b/compiler/rustc_codegen_ssa/src/back/symbol_export.rs
@@ -133,8 +133,8 @@ fn reachable_non_generics_provider(tcx: TyCtxt<'_>, cnum: CrateNum) -> DefIdMap<
         })
         .collect();
 
-    if let Some(id) = tcx.proc_macro_decls_static(LOCAL_CRATE) {
-        reachable_non_generics.insert(id, SymbolExportLevel::C);
+    if let Some(id) = tcx.proc_macro_decls_static(()) {
+        reachable_non_generics.insert(id.to_def_id(), SymbolExportLevel::C);
     }
 
     if let Some(id) = tcx.plugin_registrar_fn(()) {