diff options
| author | Michael Goulet <michael@errs.io> | 2022-12-08 03:53:35 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-12-13 05:01:36 +0000 |
| commit | a8a45100a0593ed0c39ebe1b601be765a8f5fd5c (patch) | |
| tree | 7b06800a6becb06c06d578732d4b441f8da00de8 /compiler/rustc_codegen_ssa/src/errors.rs | |
| parent | b96d9e0e20adb7716aa32a56fe96fde15c75d517 (diff) | |
| download | rust-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.rs | 7 |
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, +} |
