Formatting
This commit is contained in:
parent
575f6098da
commit
a54c8003ab
2 changed files with 14 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
use rustc_errors::fluent;
|
||||
use rustc_errors::DiagnosticBuilder;
|
||||
use rustc_session::SessionDiagnostic;
|
||||
use rustc_errors::fluent;
|
||||
|
||||
pub(crate) enum UnknownCTargetFeature {
|
||||
UnknownFeaturePrefix { feature: String },
|
||||
|
@ -8,7 +8,10 @@ pub(crate) enum UnknownCTargetFeature {
|
|||
}
|
||||
|
||||
impl SessionDiagnostic<'_, ()> for UnknownCTargetFeature {
|
||||
fn into_diagnostic(self, sess: &'_ rustc_session::parse::ParseSess) -> DiagnosticBuilder<'_, ()> {
|
||||
fn into_diagnostic(
|
||||
self,
|
||||
sess: &'_ rustc_session::parse::ParseSess,
|
||||
) -> DiagnosticBuilder<'_, ()> {
|
||||
match self {
|
||||
UnknownCTargetFeature::UnknownFeaturePrefix { feature } => {
|
||||
let mut diag = sess.struct_warn(fluent::codegen_llvm::unknown_ctarget_feature);
|
||||
|
@ -30,4 +33,4 @@ impl SessionDiagnostic<'_, ()> for UnknownCTargetFeature {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue