1
Fork 0

Use () for plugin_registrar_fn.

This commit is contained in:
Camille GILLOT 2021-05-11 12:07:14 +02:00
parent 829a9d33a9
commit e9e1900af7
8 changed files with 20 additions and 37 deletions

View file

@ -165,7 +165,7 @@ fn compute_symbol_name(
// FIXME(eddyb) Precompute a custom symbol name based on attributes.
let is_foreign = if let Some(def_id) = def_id.as_local() {
if tcx.plugin_registrar_fn(LOCAL_CRATE) == Some(def_id.to_def_id()) {
if tcx.plugin_registrar_fn(()) == Some(def_id) {
let disambiguator = tcx.sess.local_crate_disambiguator();
return tcx.sess.generate_plugin_registrar_symbol(disambiguator);
}