]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_plugin/build.rs
Auto merge of #30641 - tsion:match-range, r=eddyb
[rust.git] / src / librustc_plugin / build.rs
index 476425a75c22df73bb61953d0bf6cb2a124130bf..5adde4304f57c9541b56f76523f0be4655863cb1 100644 (file)
@@ -46,10 +46,11 @@ pub fn find_plugin_registrar(diagnostic: &errors::Handler,
             Some(node_id)
         },
         _ => {
-            diagnostic.err("multiple plugin registration functions found");
+            let mut e = diagnostic.struct_err("multiple plugin registration functions found");
             for &(_, span) in &finder.registrars {
-                diagnostic.span_note(span, "one is here");
+                e.span_note(span, "one is here");
             }
+            e.emit();
             diagnostic.abort_if_errors();
             unreachable!();
         }