Skip to content

Commit f16a8d0

Browse files
committed
Fix some out-of-date comments.
1 parent 18715c9 commit f16a8d0

File tree

1 file changed

+4
-4
lines changed
  • compiler/rustc_codegen_ssa/src/back

1 file changed

+4
-4
lines changed

compiler/rustc_codegen_ssa/src/back/write.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,9 +1004,9 @@ pub(crate) enum Message<B: WriteBackendMethods> {
10041004
/// process another codegen unit.
10051005
pub struct CguMessage;
10061006

1007-
// A cut-down version of `rustc_errors::Diagnostic` that impls `Send`, which
1007+
// A cut-down version of `rustc_errors::DiagInner` that impls `Send`, which
10081008
// can be used to send diagnostics from codegen threads to the main thread.
1009-
// It's missing the following fields from `rustc_errors::Diagnostic`.
1009+
// It's missing the following fields from `rustc_errors::DiagInner`.
10101010
// - `span`: it doesn't impl `Send`.
10111011
// - `suggestions`: it doesn't impl `Send`, and isn't used for codegen
10121012
// diagnostics.
@@ -1021,8 +1021,8 @@ struct Diagnostic {
10211021
args: DiagArgMap,
10221022
}
10231023

1024-
// A cut-down version of `rustc_errors::SubDiagnostic` that impls `Send`. It's
1025-
// missing the following fields from `rustc_errors::SubDiagnostic`.
1024+
// A cut-down version of `rustc_errors::Subdiag` that impls `Send`. It's
1025+
// missing the following fields from `rustc_errors::Subdiag`.
10261026
// - `span`: it doesn't impl `Send`.
10271027
pub struct Subdiagnostic {
10281028
level: Level,

0 commit comments

Comments
 (0)