diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-05-11 12:07:14 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-05-12 13:58:43 +0200 |
| commit | e9e1900af7eea8ec67fdc763291a085323b6c7af (patch) | |
| tree | 1555ba17685b26426682b080386d63f8606b6de4 /compiler/rustc_codegen_ssa/src | |
| parent | 829a9d33a9f08ecdf52f95b07da5e355c3d3966d (diff) | |
| download | rust-e9e1900af7eea8ec67fdc763291a085323b6c7af.tar.gz rust-e9e1900af7eea8ec67fdc763291a085323b6c7af.zip | |
Use () for plugin_registrar_fn.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/symbol_export.rs | 4 |
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 b894452250c..7cae637a49d 100644 --- a/compiler/rustc_codegen_ssa/src/back/symbol_export.rs +++ b/compiler/rustc_codegen_ssa/src/back/symbol_export.rs @@ -137,8 +137,8 @@ fn reachable_non_generics_provider(tcx: TyCtxt<'_>, cnum: CrateNum) -> DefIdMap< reachable_non_generics.insert(id, SymbolExportLevel::C); } - if let Some(id) = tcx.plugin_registrar_fn(LOCAL_CRATE) { - reachable_non_generics.insert(id, SymbolExportLevel::C); + if let Some(id) = tcx.plugin_registrar_fn(()) { + reachable_non_generics.insert(id.to_def_id(), SymbolExportLevel::C); } reachable_non_generics |
