Skip to content

Commit 69d412a

Browse files
committed
Missing lifetime parameter and formatting
1 parent b164790 commit 69d412a

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

compiler/rustc_codegen_llvm/src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub(crate) enum UnknownCTargetFeature<'a> {
77
UnknownFeature { feature: &'a str, rust_feature: Option<&'a str> },
88
}
99

10-
impl SessionDiagnostic<'_, ()> for UnknownCTargetFeature {
10+
impl SessionDiagnostic<'_, ()> for UnknownCTargetFeature<'_> {
1111
fn into_diagnostic(
1212
self,
1313
sess: &'_ rustc_session::parse::ParseSess,

compiler/rustc_codegen_llvm/src/llvm_util.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -454,10 +454,7 @@ pub(crate) fn global_llvm_features(sess: &Session, diagnostics: bool) -> Vec<Str
454454
None
455455
}
456456
});
457-
sess.emit_warning(UnknownCTargetFeature::UnknownFeature {
458-
feature,
459-
rust_feature,
460-
});
457+
sess.emit_warning(UnknownCTargetFeature::UnknownFeature { feature, rust_feature });
461458
}
462459

463460
if diagnostics {

0 commit comments

Comments
 (0)