Simplify UnusedExterns
lifetimes.
In practice, 'a and 'b and 'c are always the same. This change makes `UnusedExterns` more like `ArtifactNotification`, which uses a single lifetime 'a in multiple ways.
This commit is contained in:
parent
c1f01638af
commit
869bd03a04
1 changed files with 3 additions and 3 deletions
|
@ -162,7 +162,7 @@ enum EmitTyped<'a> {
|
||||||
Diagnostic(Diagnostic),
|
Diagnostic(Diagnostic),
|
||||||
Artifact(ArtifactNotification<'a>),
|
Artifact(ArtifactNotification<'a>),
|
||||||
FutureIncompat(FutureIncompatReport<'a>),
|
FutureIncompat(FutureIncompatReport<'a>),
|
||||||
UnusedExtern(UnusedExterns<'a, 'a, 'a>),
|
UnusedExtern(UnusedExterns<'a>),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Translate for JsonEmitter {
|
impl Translate for JsonEmitter {
|
||||||
|
@ -332,11 +332,11 @@ struct FutureIncompatReport<'a> {
|
||||||
// We could unify this struct the one in rustdoc but they have different
|
// We could unify this struct the one in rustdoc but they have different
|
||||||
// ownership semantics, so doing so would create wasteful allocations.
|
// ownership semantics, so doing so would create wasteful allocations.
|
||||||
#[derive(Serialize)]
|
#[derive(Serialize)]
|
||||||
struct UnusedExterns<'a, 'b, 'c> {
|
struct UnusedExterns<'a> {
|
||||||
/// The severity level of the unused dependencies lint
|
/// The severity level of the unused dependencies lint
|
||||||
lint_level: &'a str,
|
lint_level: &'a str,
|
||||||
/// List of unused externs by their names.
|
/// List of unused externs by their names.
|
||||||
unused_extern_names: &'b [&'c str],
|
unused_extern_names: &'a [&'a str],
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Diagnostic {
|
impl Diagnostic {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue