File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
compiler/rustc_errors/src Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -335,6 +335,10 @@ struct FutureIncompatReport {
335335 future_incompat_report : Vec < FutureBreakageItem > ,
336336}
337337
338+ // NOTE: Keep this in sync with the equivalent structs in rustdoc's
339+ // doctest component (as well as cargo).
340+ // We could unify this struct the one in rustdoc but they have different
341+ // ownership semantics, so doing so would create wasteful allocations.
338342#[ derive( Encodable ) ]
339343struct UnusedExterns < ' a , ' b , ' c > {
340344 /// The severity level of the unused dependencies lint
Original file line number Diff line number Diff line change @@ -278,6 +278,10 @@ impl DirState {
278278 }
279279}
280280
281+ // NOTE: Keep this in sync with the equivalent structs in rustc
282+ // and cargo.
283+ // We could unify this struct the one in rustc but they have different
284+ // ownership semantics, so doing so would create wasteful allocations.
281285#[ derive( serde:: Serialize , serde:: Deserialize ) ]
282286struct UnusedExterns {
283287 /// Lint level of the unused_crate_dependencies lint
You can’t perform that action at this time.
0 commit comments