diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-13 19:57:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-13 19:57:10 +0100 |
| commit | 51375dd7a8a5cd114671da56aee568f281e8f042 (patch) | |
| tree | 6679284c12a574e05898cd1be32a95e52a3f310b /compiler/rustc_codegen_ssa/src/errors.rs | |
| parent | 7357cfbf3d6f0162fbe24fee34e027ecabeb58ca (diff) | |
| parent | a8a45100a0593ed0c39ebe1b601be765a8f5fd5c (diff) | |
| download | rust-51375dd7a8a5cd114671da56aee568f281e8f042.tar.gz rust-51375dd7a8a5cd114671da56aee568f281e8f042.zip | |
Rollup merge of #105438 - compiler-errors:move-methods, r=estebank
Move some codegen-y methods from `rustc_hir_analysis::collect` -> `rustc_codegen_ssa` Unclear if they should live here, but they seem codegen-y enough, and `rustc_hir_analysis::collect` is extremely long, so it should probably lose some methods.
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, +} |
