Missing lifetime parameter and formatting
This commit is contained in:
parent
b1647903f8
commit
69d412a073
2 changed files with 2 additions and 5 deletions
|
@ -7,7 +7,7 @@ pub(crate) enum UnknownCTargetFeature<'a> {
|
||||||
UnknownFeature { feature: &'a str, rust_feature: Option<&'a str> },
|
UnknownFeature { feature: &'a str, rust_feature: Option<&'a str> },
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SessionDiagnostic<'_, ()> for UnknownCTargetFeature {
|
impl SessionDiagnostic<'_, ()> for UnknownCTargetFeature<'_> {
|
||||||
fn into_diagnostic(
|
fn into_diagnostic(
|
||||||
self,
|
self,
|
||||||
sess: &'_ rustc_session::parse::ParseSess,
|
sess: &'_ rustc_session::parse::ParseSess,
|
||||||
|
|
|
@ -454,10 +454,7 @@ pub(crate) fn global_llvm_features(sess: &Session, diagnostics: bool) -> Vec<Str
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
sess.emit_warning(UnknownCTargetFeature::UnknownFeature {
|
sess.emit_warning(UnknownCTargetFeature::UnknownFeature { feature, rust_feature });
|
||||||
feature,
|
|
||||||
rust_feature,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if diagnostics {
|
if diagnostics {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue