1
Fork 0

Port diagnostics created by Handler

This commit is contained in:
SLASHLogin 2022-10-30 16:07:04 +01:00
parent 67394e7945
commit 3728e95596
4 changed files with 24 additions and 8 deletions

View file

@ -117,6 +117,17 @@ pub(crate) struct UnknownArchiveKind<'a> {
pub kind: &'a str,
}
#[derive(Diagnostic)]
#[diag(codegen_llvm_dynamic_linking_with_lto)]
#[note]
pub(crate) struct DynamicLinkingWithLTO;
#[derive(Diagnostic)]
#[diag(codegen_llvm_fail_parsing_target_machine_config_to_target_machine)]
pub(crate) struct FailParsingTargetMachineConfigToTargetMachine {
pub error: String,
}
pub(crate) struct TargetFeatureDisableOrEnable<'a> {
pub features: &'a [&'a str],
pub span: Option<Span>,