Change String in structs to &'a str
This commit is contained in:
parent
21b04265c1
commit
b1647903f8
2 changed files with 6 additions and 6 deletions
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue