File tree 2 files changed +8
-0
lines changed
compiler/rustc_errors/src
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -335,6 +335,10 @@ struct FutureIncompatReport {
335
335
future_incompat_report : Vec < FutureBreakageItem > ,
336
336
}
337
337
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.
338
342
#[ derive( Encodable ) ]
339
343
struct UnusedExterns < ' a , ' b , ' c > {
340
344
/// The severity level of the unused dependencies lint
Original file line number Diff line number Diff line change @@ -278,6 +278,10 @@ impl DirState {
278
278
}
279
279
}
280
280
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.
281
285
#[ derive( serde:: Serialize , serde:: Deserialize ) ]
282
286
struct UnusedExterns {
283
287
/// Lint level of the unused_crate_dependencies lint
You can’t perform that action at this time.
0 commit comments