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
|
@ -2,9 +2,9 @@ use rustc_errors::fluent;
|
|||
use rustc_errors::DiagnosticBuilder;
|
||||
use rustc_session::SessionDiagnostic;
|
||||
|
||||
pub(crate) enum UnknownCTargetFeature {
|
||||
UnknownFeaturePrefix { feature: String },
|
||||
UnknownFeature { feature: String, rust_feature: Option<String> },
|
||||
pub(crate) enum UnknownCTargetFeature<'a> {
|
||||
UnknownFeaturePrefix { feature: &'a str },
|
||||
UnknownFeature { feature: &'a str, rust_feature: Option<&'a str> },
|
||||
}
|
||||
|
||||
impl SessionDiagnostic<'_, ()> for UnknownCTargetFeature {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue