mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 17:03:35 +00:00
Missing lifetime parameter and formatting
This commit is contained in:
parent
b1647903f8
commit
69d412a073
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user