1
Fork 0

Change String in structs to &'a str

This commit is contained in:
SLASHLogin 2022-08-25 18:36:15 +02:00
parent 21b04265c1
commit b1647903f8
2 changed files with 6 additions and 6 deletions

View file

@ -436,7 +436,7 @@ pub(crate) fn global_llvm_features(sess: &Session, diagnostics: bool) -> Vec<Str
Some(_) => {
if diagnostics {
sess.emit_warning(UnknownCTargetFeature::UnknownFeaturePrefix {
feature: s.to_string(),
feature: s,
});
}
return None;
@ -455,8 +455,8 @@ pub(crate) fn global_llvm_features(sess: &Session, diagnostics: bool) -> Vec<Str
}
});
sess.emit_warning(UnknownCTargetFeature::UnknownFeature {
feature: feature.to_string(),
rust_feature: rust_feature.map(|f| f.to_string()),
feature,
rust_feature,
});
}