From a8a45100a0593ed0c39ebe1b601be765a8f5fd5c Mon Sep 17 00:00:00 2001 From: Michael Goulet Date: Thu, 8 Dec 2022 03:53:35 +0000 Subject: Move some codegen-y methods from rustc_hir_analysis::collect -> rustc_codegen_ssa --- compiler/rustc_codegen_ssa/src/errors.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'compiler/rustc_codegen_ssa/src/errors.rs') 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, +} -- cgit 1.4.1-3-g733a5