mirror of
https://github.com/openharmony/third_party_rust_rust.git
synced 2026-07-19 19:53:38 -04:00
Missing lifetime parameter and formatting
This commit is contained in:
@@ -7,7 +7,7 @@ pub(crate) enum UnknownCTargetFeature<'a> {
|
||||
UnknownFeature { feature: &'a str, rust_feature: Option<&'a str> },
|
||||
}
|
||||
|
||||
impl SessionDiagnostic<'_, ()> for UnknownCTargetFeature {
|
||||
impl SessionDiagnostic<'_, ()> for UnknownCTargetFeature<'_> {
|
||||
fn into_diagnostic(
|
||||
self,
|
||||
sess: &'_ rustc_session::parse::ParseSess,
|
||||
|
||||
@@ -454,10 +454,7 @@ pub(crate) fn global_llvm_features(sess: &Session, diagnostics: bool) -> Vec<Str
|
||||
None
|
||||
}
|
||||
});
|
||||
sess.emit_warning(UnknownCTargetFeature::UnknownFeature {
|
||||
feature,
|
||||
rust_feature,
|
||||
});
|
||||
sess.emit_warning(UnknownCTargetFeature::UnknownFeature { feature, rust_feature });
|
||||
}
|
||||
|
||||
if diagnostics {
|
||||
|
||||
Reference in New Issue
Block a user