Add notes to keep the UnusedExterns structs synced up
This commit is contained in:
parent
d8c9a28703
commit
d018ef180d
2 changed files with 8 additions and 0 deletions
|
@ -335,6 +335,10 @@ struct FutureIncompatReport {
|
||||||
future_incompat_report: Vec<FutureBreakageItem>,
|
future_incompat_report: Vec<FutureBreakageItem>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NOTE: Keep this in sync with the equivalent structs in rustdoc's
|
||||||
|
// doctest component (as well as cargo).
|
||||||
|
// We could unify this struct the one in rustdoc but they have different
|
||||||
|
// ownership semantics, so doing so would create wasteful allocations.
|
||||||
#[derive(Encodable)]
|
#[derive(Encodable)]
|
||||||
struct UnusedExterns<'a, 'b, 'c> {
|
struct UnusedExterns<'a, 'b, 'c> {
|
||||||
/// The severity level of the unused dependencies lint
|
/// The severity level of the unused dependencies lint
|
||||||
|
|
|
@ -278,6 +278,10 @@ impl DirState {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NOTE: Keep this in sync with the equivalent structs in rustc
|
||||||
|
// and cargo.
|
||||||
|
// We could unify this struct the one in rustc but they have different
|
||||||
|
// ownership semantics, so doing so would create wasteful allocations.
|
||||||
#[derive(serde::Serialize, serde::Deserialize)]
|
#[derive(serde::Serialize, serde::Deserialize)]
|
||||||
struct UnusedExterns {
|
struct UnusedExterns {
|
||||||
/// Lint level of the unused_crate_dependencies lint
|
/// Lint level of the unused_crate_dependencies lint
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue