about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/errors.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-12-08 03:53:35 +0000
committerMichael Goulet <michael@errs.io>2022-12-13 05:01:36 +0000
commita8a45100a0593ed0c39ebe1b601be765a8f5fd5c (patch)
tree7b06800a6becb06c06d578732d4b441f8da00de8 /compiler/rustc_codegen_ssa/src/errors.rs
parentb96d9e0e20adb7716aa32a56fe96fde15c75d517 (diff)
downloadrust-a8a45100a0593ed0c39ebe1b601be765a8f5fd5c.tar.gz
rust-a8a45100a0593ed0c39ebe1b601be765a8f5fd5c.zip
Move some codegen-y methods from rustc_hir_analysis::collect -> rustc_codegen_ssa
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/errors.rs')
-rw-r--r--compiler/rustc_codegen_ssa/src/errors.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/errors.rs b/compiler/rustc_codegen_ssa/src/errors.rs
index e3b6fbf1bc7..0620000201f 100644
--- a/compiler/rustc_codegen_ssa/src/errors.rs
+++ b/compiler/rustc_codegen_ssa/src/errors.rs
@@ -548,3 +548,10 @@ pub struct ArchiveBuildFailure {
 pub struct UnknownArchiveKind<'a> {
     pub kind: &'a str,
 }
+
+#[derive(Diagnostic)]
+#[diag(codegen_ssa_expected_used_symbol)]
+pub struct ExpectedUsedSymbol {
+    #[primary_span]
+    pub span: Span,
+}