]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_passes/src/errors.rs
Rollup merge of #99787 - aDotInTheVoid:rdj-dyn, r=camelid,notriddle,GuillaumeGomez
[rust.git] / compiler / rustc_passes / src / errors.rs
index 5feb0e2956b74fa55b24e1b0ee8fb7871a35cb78..cd465380867cf5c348b64f9c6e7f745b69fdde97 100644 (file)
@@ -551,6 +551,13 @@ pub struct ConstTrait {
     pub attr_span: Span,
 }
 
+#[derive(SessionDiagnostic)]
+#[error(passes::link_ordinal)]
+pub struct LinkOrdinal {
+    #[primary_span]
+    pub attr_span: Span,
+}
+
 #[derive(SessionDiagnostic)]
 #[error(passes::stability_promotable)]
 pub struct StabilityPromotable {